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

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.2.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