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 Xtra |
#Returns
Type | Description |
---|---|
Wizard |
A Wizard |
#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.
}