Items of the list-view can have subitems. The
wItem property allows you to get the caption of the specified item or one of its subitems.
|A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
|Default value: 0
The property is applied to the following objects:
The property has the following parameters:
Specifies the desired item. You can enter the item’s index (from 0) or its caption. 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.
The index of the desired subitem or its mask (for more information using masks, see Remarks). Subitems are indexed from 1: the first subitem has the index of 1, the second subitem - 2, and so on. The last subitem’s index is
To get the caption of a list view item, not a subitem, leave the SubItem value default.
The caption of the specified item or subitem.
The Item and SubItem parameter values can contain regular expressions or wildcards -- * and ?. The asterisk (*) corresponds to the string of any length, the question mark (?) - to any single character. You can use regular expressions and wildcards to indicate variable parts of item and subitem captions. For example, you could use them to get the full caption of a subitem specified by its mask.
If you use Python or DelphiScript, you should enclose the parameters of the
wItem property in square brackets:
To view an example that demonstrates how to use the
wItem property, see Checking List View Items' State in Desktop Windows Applications.