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

TCustomdxBarControl.GetItemRect(TdxBarItemControl) Method

Returns the ‘full’ rectangle occupied by an item control on the current bar control.

#Declaration

Delphi
function GetItemRect(Item: TdxBarItemControl): TRect;

#Parameters

Name Type
Item TdxBarItemControl

#Returns

Type
TRect

#Remarks

The GetItemRect function is called when processing drag-and-drop events. The ‘full’ rectangle includes an item control’s rectangle and the area surrounding it. The following image describes the meaning of ‘full’ rectangle:

The resulting rectangle is specified in the bar control’s coordinates. The Item parameter specifies the item control. When nil is passed as this parameter, the GetItemRect function returns an empty rectangle.

See Also