Vcl.ListActns.TVirtualListAction.ItemIndex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ItemIndex: Integer read FItemIndex write SetItemIndex default -1;

C++

__property ItemIndex = {default=-1};

Properties

Type Visibility Source Unit Parent
property published
Vcl.ListActns.pas
Vcl.ListActns.hpp
Vcl.ListActns TVirtualListAction

Description

Specifies the index of the selected item.

Vcl.ListActns.TVirtualListAction.ItemIndex inherits from Vcl.ListActns.TCustomListAction.ItemIndex. All content below this line refers to Vcl.ListActns.TCustomListAction.ItemIndex.

Specifies the index of the selected item.

ItemIndex represents the index of the selected item in all client controls that descend from TCustomListControl. Setting ItemIndex causes these clients to change their selection. When the user updates the selection using one of these clients, TCustomListAction automatically updates the others so that they select the same item.

Note: List actions do not supply ItemIndex to all clients. The ItemIndex property controls only the ItemIndex property of clients that descend from TCustomListControl.

See Also