wExpanded Property (Specific to PropertyGrid Controls)

Applies to TestComplete 14.72, last modified on April 22, 2021

Description

Use the PropertyGridControlItem.wExpanded property to determine whether a certain grid item is expanded or collapsed.

Declaration

TestObj.wExpanded(Item)

Read-Only Property Boolean
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.

Parameters

The property has the following parameter:

Item

Specifies the index or caption of the desired item.

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

True, if the specified item is expanded, otherwise - False. The property also returns True if the given item does not have child items (that is, non-expandable one).

Remarks

If the specified item is not found, the property returns False and posts an error message to the test log.

To expand and collapse grid items, use the Expand and Collapse actions. You can also expand and collapse items using the DblClickLabel action.

See Also

Collapse Action (Specific to PropertyGrid Controls)
Expand Action (Specific to PropertyGrid Controls)
DblClickLabel Action (Specific to PropertyGrid Controls)

Highlight search results