VisualTreeHelper::HitTest Method (Visual^, Point)
.NET Framework (current version)
Namespace:
System.Windows.Media
Assembly: PresentationCore (in PresentationCore.dll)
Return to top
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- reference
-
Type:
System.Windows.Media::Visual^
The Visual to hit test.
- point
-
Type:
System.Windows::Point
The point value to hit test against.
Return Value
Type: System.Windows.Media::HitTestResult^The hit test result of the Visual, returned as a HitTestResult type.
The VisualHit property of the return value represents the Visual object that was hit.
Note |
|---|
It is possible for a hit test that starts in a 2D visual tree to return RayHitTestResult, which is a 3D hit test result object. Hit testing that starts in a 2D visual tree seamlessly extends into any defined 3D visual tree. |
.NET Framework
Available since 3.0
Available since 3.0
Show:
