Skip to main content

TcxCustomCheckListBox.ItemRect(Integer) Method

Returns the rectangle surrounding the specified item.

Declaration

function ItemRect(Index: Integer): TRect;

Parameters

Name Type
Index Integer

Returns

Type
TRect

Remarks

This function returns the coordinates (starting position and size) of an item. The item is referenced by the Index parameter and this specifies the item’s zero-based index (see the Items property). If the parameter value is negative or exceeds the last available item index, an empty rectangle is returned (i.e. all coordinates are zeros).

ItemRect is mostly used internally, for instance, by the ItemAtPos method.

See Also