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

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

#Declaration

Delphi
function GetLinkAtSelectedPos(const pt: TPoint): TdxNavBarItemLink; virtual;

#Parameters

Name Type
pt TPoint

#Returns

Type
TdxNavBarItemLink

#Remarks

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

The GetLinkAtPos and GetSelectedLinkAtPos 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