Vcl.StdCtrls.TCustomListBox.ItemRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ItemRect(Index: Integer): TRect;

C++

System::Types::TRect __fastcall ItemRect(int Index);

Properties

Type Visibility Source Unit Parent
function public
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomListBox

Description

Returns the rectangle that surrounds the item specified in the Item parameter.

Use ItemRect to get the coordinates of a particular item in the list box. For example, ItemRect is used internally by the ItemAtPos method.

The Item parameter is the ItemIndex of the item whose position is queried.

See Also

Code Examples