wItems Property (Specific to PropertyGrid Controls)

Applies to TestComplete 15.63, last modified on April 23, 2024

Description

The wItems property returns a PropertyGridControlItem object that corresponds to child items of the specified item.

Declaration

TestObj.wItems(Item)

Read-Only Property A PropertyGridControlItem object
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

This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Parameters

The property has the following parameter:

Item

Specifies the index or caption of the item whose child items you want to obtain.

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

A PropertyGridControlItem object that provides scripting access to child items of the specified item.

Remarks

To determine the number of child items, use the wItemCount property of the returned PropertyGridControlItem object.

Example

To view an example that demonstrates how to use the wItems property, see Accessing Items in Microsoft PropertyGrid.

See Also

wItemCount Property (Specific to PropertyGrid Controls)

Highlight search results