Vcl.ComCtrls.TListItem.ImageIndex
Delphi
property ImageIndex: TImageIndex index 0 read GetImage write SetImage;
C++
__property System::Uitypes::TImageIndex ImageIndex = {read=GetImage, write=SetImage, index=0, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TListItem |
Description
Determines which image is displayed as the icon for the list item.
Set ImageIndex to associate the list item with one of the images in the LargeImages or SmallImages property of the list view. If the ViewStyle of the list view is vsIcon, ImageIndex is the index of the image in the LargeImages property of the list view, where 0 specifies the first image. If the ViewStyle of the list view is vsSmallIcon, vsList, or vsReport, ImageIndex is the index of the image in the SmallImages property of the list view.
See Also
Code Examples