Description
Use the PropertyGridControlItem.wLabel
property to get the text displayed in the label of the specified grid item.
Declaration
TestObj.wLabel(Item)
Read-Only Property | String |
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section | |||
Item | [in] | Required | Variant |
Applies To
The property is applied to the following objects:
Developer Express PropertyGridControl, MFC PropertyGrid, Microsoft PropertyGrid, PropertyGridControlItem
View Mode
To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
Parameters
The property has the following parameter:
Item
Specifies the index of the item, whose caption you want to get, or its caption's mask.
The index is zero-based, that is, the index of the first item is 0. The index of the last item is wItemCount - 1
.
The caption can contain asterisk (*) or question mark (?) wildcards or regular expressions. The asterisk corresponds to a string of any length (including an empty string), the question mark corresponds to any single character (including none). To specify more complicated parts of a caption, use regular expressions.
The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting.
Property Value
The string holding the text of the grid item's label. If the specified item was not found, wLabel
returns the null value (Empty
in VBScript, nil
in DelphiScript, None
in Python, null
in JavaScript, JScript, C++Script and C#Script) and TestComplete posts an error message to the test log.
Example
To view an example that demonstrates how to use the wLabel
property, see Iterating Through Items in Microsoft PropertyGrid.
See Also
wItemCount Property (Specific to PropertyGrid Controls)
wValue Property (Specific to PropertyGrid Controls)