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.GetLinkViewInfoAtSelectedPos(TPoint) Method

Returns ViewInfo information for the link whose caption or image is located under the specified point.

#Declaration

Delphi
function GetLinkViewInfoAtSelectedPos(const pt: TPoint): TdxNavBarLinkViewInfo; virtual;

#Parameters

Name Type
pt TPoint

#Returns

Type
TdxNavBarLinkViewInfo

#Remarks

This function determines whether the specified point is over a link image or a link caption. If so, the corresponding link’s ViewInfo information object is returned. Otherwise, the GetSelectedLinkViewInfoAtPos function returns nil. The tested point is specified by the pt parameter.

The GetLinkViewInfoAtPos and GetSelectedLinkViewInfoAtPos functions are not identical, since the point can be located over the link’s bounding rectangle, but outside its caption and image rectangles.

See Also