Vcl.ComCtrls.TCustomListView.OnGetSubItemImage
Delphi
property OnGetSubItemImage: TLVSubItemImageEvent read FOnGetSubItemImage write FOnGetSubItemImage;
C++
__property TLVSubItemImageEvent OnGetSubItemImage = {read=FOnGetSubItemImage, write=FOnGetSubItemImage};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomListView |
Description
Occurs when a subitem is about to be displayed in the column of a list view control.
Use OnGetSubItemImage to dynamically assign an image to a subitem before it is displayed in the column of a list view control. This event overrides the value specified by the list item's SubItemImages property.
Note: OnGetSubItemImage only occurs if the list view's ViewStyle property is
vsReport
and the current list item's SubItems property contains subitems.
OnGetSubItemImage is an event handler of type Vcl.ComCtrls.TLVSubItemImageEvent.