Skip to main content
All docs
V25.1
  • Bar

    BarManager.GetLinkAt(Point) Method

    Returns the bar item link at the specified screen coordinates.

    Namespace: DevExpress.XtraBars

    Assembly: DevExpress.XtraBars.v25.1.dll

    NuGet Package: DevExpress.Win.Navigation

    Declaration

    public virtual BarItemLink GetLinkAt(
        Point screenPoint
    )

    Parameters

    Name Type Description
    screenPoint Point

    Screen coordinates.

    Returns

    Type Description
    BarItemLink

    The bar item link at the specified screen coordinates.

    Remarks

    The following code snippet handles the ItemClick event to obtain the clicked bar item link:

    barManager1.ItemClick += (sender, e) => {
        BarItemLink itemLink = barManager1.GetLinkAt(Cursor.Position);
        Debug.WriteLine(itemLink.Caption);
    };
    
    See Also