Specifies the index of the selected item.
|componentObj||One of the user forms components and objects listed in the Applies To section|
This property applies to the following components and objects:
ItemIndex property to obtain or specify the index of the item currently selected in the component. Setting the property value changes the selection.
An integer value that specifies the index of the currently selected item. The index of the first item is 0, the index of the second item is 1 and so on. To get the total number of items, use the
The default value is -1; it means that no item is selected.
TcxListBox components that support multiple selection (that is, whose
MultiSelect property is True), the
ItemIndex property specifies the index of the item that was focused last, whether is was selected or unselected. In this case, setting the
ItemIndex property does not change the selection. To get or set selected items in a multi-selectable
TcxListBox component, use the