Vcl.ComCtrls.TListItem.StateIndex
Delphi
property StateIndex: TImageIndex index 2 read GetImage write SetImage;
C++
__property System::Uitypes::TImageIndex StateIndex = {read=GetImage, write=SetImage, index=2, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TListItem |
Description
Specifies which image from the StateImages image list to display for the item.
Set StateIndex to associate the list item with one of the images in the StateImages property of the list view, where 0 specifies the first image. Change StateIndex to display a different image when the state of the item changes.
The state image appears to the left of the normal list item.