wItemList Property

Applies to TestComplete 15.69, last modified on November 13, 2024

Description

The wItemList property returns a string holding all item captions of the list control as ComboBox, ListBox, etc. The captions are separated by characters specified by the wListSeparator property.

Declaration

TestObj.wItemList

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

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.

Property Value

A string holding all item captions.

Remarks

For WPF Controls: If a control uses data binding for its items, the wItemList property may fail to get captions of the control’s items and will return empty strings instead. To get the item captions, you can use the control’s native properties.

Example

To view an example that demonstrates how to use the wItemList property, see

See Also

Getting Combo Box Items in Desktop Windows Applications
Getting Several List Box Items in Desktop Windows Applications

Highlight search results