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

WizardControl.CalcHitInfo(Point) Method

Returns information about the visual elements located at the specified point.

Namespace: DevExpress.XtraWizard

Assembly: DevExpress.XtraWizard.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

public virtual WizardHitInfo CalcHitInfo(
    Point pt
)

#Parameters

Name Type Description
pt Point

A Point structure that specifies the test point coordinates relative to the XtraWizard control’s top-left corner.

#Returns

Type Description
WizardHitInfo

A WizardHitInfo object that contains information about the visual elements located at the specified point.

#Remarks

Use the CalcHitInfo method to determine which element is located at a specified point. For instance, this can be used when handling the XtraWizard’s Click event to determine which element (Back, Next, Help or Cancel button, page, etc.) was clicked. In this instance, you should pass the mouse pointer’s coordinates as the method’s parameter.

using DevExpress.XtraWizard;
...

WizardHitInfo hi = wizardControl1.CalcHitInfo(wizardControl1.PointToClient(MousePosition));
if (hi.HitTest == WizardHitTest.PageClient) {
    // Do something.
}
See Also