Vcl.ComCtrls.TListItem.DisplayRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DisplayRect(Code: TDisplayCode): TRect;

C++

System::Types::TRect __fastcall DisplayRect(TDisplayCode Code);

Properties

Type Visibility Source Unit Parent
function public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TListItem

Description

Returns the bounding rectangle of the list item.

Use DisplayRect to get the coordinates of the list item in the client coordinates of the containing listview. The Code parameter specifies what part of the item the bounding rectangle surrounds. These are the possible values for the Code parameter.



Value Meaning

drBounds

Returns the bounding rectangle of the entire list item, including the icon and label.

drIcon

Returns the bounding rectangle of the icon or small icon.

drLabel

Returns the bounding rectangle of the item text.

drSelectBounds

Returns the union of the icon and label rectangles, but excludes columns in report view.



See Also