Skip to main content

TcxListBox.ItemRect(Integer) Method

Gets the bounds of the specified item.

Declaration

function ItemRect(Index: Integer): TRect;

Parameters

Name Type
Index Integer

Returns

Type
TRect

Remarks

Use the ItemRect method to determine the bounding rectangle of the specified item. The item is specified by its zero-based index via the Index parameter. If the parameter value is negative or exceeds the last available item index, an empty rectangle is returned (all coordinates are zeros).

See Also