Performs a hit test on the design surface.
Declaration
DesignPanelHitTestResult HitTest(Point mousePosition, bool testAdorners, bool testDesignSurface, HitTestType hitTestType)
Parameters
Type |
Name |
Description |
System.Windows.Point |
mousePosition |
|
System.Boolean |
testAdorners |
|
System.Boolean |
testDesignSurface |
|
HitTestType |
hitTestType |
|
Returns
Performs a hit test on the design surface, raising callback
for each match.
Hit testing continues while the callback returns true.
Declaration
void HitTest(Point mousePosition, bool testAdorners, bool testDesignSurface, Predicate<DesignPanelHitTestResult> callback, HitTestType hitTestType)
Parameters
Type |
Name |
Description |
System.Windows.Point |
mousePosition |
|
System.Boolean |
testAdorners |
|
System.Boolean |
testDesignSurface |
|
System.Predicate<DesignPanelHitTestResult> |
callback |
|
HitTestType |
hitTestType |
|