Show: Delphi C++
Display Preferences

Vcl.ComCtrls.TListItem.ImageIndex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ImageIndex: TImageIndex index 0 read FImageIndex write SetImage;

C++

__property System::Uitypes::TImageIndex ImageIndex = {read=FImageIndex, 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


Personal tools
In Other Languages
Previous Versions
Assistance