Vcl.ComCtrls.TCustomListView.DrawItem
Delphi
procedure DrawItem(Item: TListItem; Rect: TRect; State: TOwnerDrawState); virtual;
C++
virtual void __fastcall DrawItem(TListItem* Item, const System::Types::TRect &Rect, Winapi::Windows::TOwnerDrawState State);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomListView |
Description
Draw item event dispatcher.
DrawItem generates an OnDrawItem event if there is an OnDrawItem event handler. Otherwise, it paints the text of the list view item. This method is only called if the OwnerDraw property is true.