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

TcxCustomCheckListBox.ItemRect(Integer) Method

Returns the rectangle surrounding the specified item.

#Declaration

Delphi
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