API:Vcl.ComCtrls.TListView.OnGetSubItemImage

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnGetSubItemImage;

C++

__property OnGetSubItemImage;

Properties

Type Visibility Source Unit Parent
event published
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TListView

Description

Occurs when a subitem is about to be displayed in the column of a list view control.

Vcl.ComCtrls.TListView.OnGetSubItemImage inherits from Vcl.ComCtrls.TCustomListView.OnGetSubItemImage. All content below this line refers to Vcl.ComCtrls.TCustomListView.OnGetSubItemImage.

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.

See Also