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

TdxNavBarViewInfo.GetViewInfoAtDragPosition(TPoint,TdxNavBarGroupViewInfo,TdxNavBarLinkViewInfo,TdxNavBarLinkViewInfo) Method

Returns the index the dragged link will have if it is dropped.

#Declaration

Delphi
function GetViewInfoAtDragPosition(const pt: TPoint; var ItemGroup: TdxNavBarGroupViewInfo; var Item1: TdxNavBarLinkViewInfo; var Item2: TdxNavBarLinkViewInfo): Integer; virtual;

#Parameters

Name Type
pt TPoint
ItemGroup TdxNavBarGroupViewInfo
Item1 TdxNavBarLinkViewInfo
Item2 TdxNavBarLinkViewInfo

#Returns

Type
Integer

#Remarks

This function is used internally to handle drag & drop operations. The pt parameter specifies point at which the link is currently located. The function returns the index that link will have if it is dropped. This function also initializes the ItemGroup parameter with the target group. The Item1 and Item2 objects are initialized with ViewInfo information for links that will be located before and after the dropped one.

If the link located at the specified point cannot be dropped, the function returns -1.

See Also