NavigationPane.CalcHitInfo(Point) Method
In This Article
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
#Parameters
Name | Type | Description |
---|---|---|
pt | Point | A Point structure that is the Navigation |
#Returns
Type | Description |
---|---|
DevExpress. |
A |
#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