Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxMCListBox.ItemRect(Integer) Method

Gets the bounding rectangle of the specified item.

#Declaration

Delphi
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