WizardControl.CalcHitInfo(Point) Method

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

Namespace: DevExpress.XtraWizard

Assembly: DevExpress.XtraWizard.v20.1.dll

Declaration

public virtual WizardHitInfo CalcHitInfo(
    Point pt
)
Public Overridable Function CalcHitInfo(
    pt As Point
) As WizardHitInfo

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