wLabel Property (Specific to PropertyGrid Controls)

Applies to TestComplete 15.61, last modified on February 27, 2024


Use the PropertyGridControlItem.wLabel property to get the text displayed in the label of the specified grid 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:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.


The property has the following parameter:


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.


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)

Highlight search results