Skip to main content

NavigationPane.CalcHitInfo(Point) Method

Returns the information for the navigation page that is located at the target coordinates.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public INavigationPageBase CalcHitInfo(
    Point pt
)

Parameters

Name Type Description
pt Point

A Point structure that is the NavigationPane coordinates for which page information should be returned.

Returns

Type Description
DevExpress.XtraBars.Navigation.INavigationPageBase

A DevExpress.XtraBars.Navigation.INavigationPageBase object that contains information about the NavigationPane page located at the target coordinates.

Remarks

The following example demonstrates how to use the CalcHitInfo method to obtain information about the navigation page located at the mouse pointer position:

private void navigationPane1_MouseClick(object sender, MouseEventArgs e) {
    var pageInfo = navigationPane1.CalcHitInfo(Cursor.Position);
    if (pageInfo != null)
        MessageBox.Show(String.Format("You clicked within the '{0}' page.", pageInfo.PageText), "Information", MessageBoxButtons.OK);
}
See Also