Skip to main content

TcxMCListBox.ItemRect(Integer) Method

Gets the bounding rectangle of the specified item.

Declaration

function ItemRect(Index: Integer): TRect;

Parameters

Name Type
Index Integer

Returns

Type
TRect

Remarks

The ItemRect method is used to obtain the bounding rectangle of the specified item. The item is specified by its index via the Index parameter. Note that items are zero-based indexed. The index of the last available item is the Items.Count property value decremented by one. If a value outside the allowed range is specified as the Index parameter, an empty rectangle (with all dimensions set to zero) is returned.

Most commonly, you will have no need to use the ItemRect method in applications. To determine the item located at the specified point, use the ItemAtPos method.

See Also