Viewport3DVisual.HitTest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the topmost visual object of a hit test.
Overloads
HitTest(HitTestFilterCallback, HitTestResultCallback, HitTestParameters) |
Initiate a hit test on the Viewport3DVisual by using the HitTestFilterCallback and HitTestResultCallback objects. |
HitTest(Point) |
Returns the top-most visual object of a hit test performed at a specified Point. |
HitTest(HitTestFilterCallback, HitTestResultCallback, HitTestParameters)
Initiate a hit test on the Viewport3DVisual by using the HitTestFilterCallback and HitTestResultCallback objects.
public:
void HitTest(System::Windows::Media::HitTestFilterCallback ^ filterCallback, System::Windows::Media::HitTestResultCallback ^ resultCallback, System::Windows::Media::HitTestParameters ^ hitTestParameters);
public void HitTest (System.Windows.Media.HitTestFilterCallback filterCallback, System.Windows.Media.HitTestResultCallback resultCallback, System.Windows.Media.HitTestParameters hitTestParameters);
override this.HitTest : System.Windows.Media.HitTestFilterCallback * System.Windows.Media.HitTestResultCallback * System.Windows.Media.HitTestParameters -> unit
member this.HitTest : System.Windows.Media.HitTestFilterCallback * System.Windows.Media.HitTestResultCallback * System.Windows.Media.HitTestParameters -> unit
Public Sub HitTest (filterCallback As HitTestFilterCallback, resultCallback As HitTestResultCallback, hitTestParameters As HitTestParameters)
Parameters
- filterCallback
- HitTestFilterCallback
Value of type HitTestFilterCallback.
- resultCallback
- HitTestResultCallback
Value of type HitTestResultCallback.
- hitTestParameters
- HitTestParameters
Value of type HitTestParameters.
Remarks
The filterCallback
parameter can be null, in which case, it is ignored. If filterCallback
is not a null reference (Nothing
in Visual Basic), it is invoked before resultCallback
.
Applies to
HitTest(Point)
Returns the top-most visual object of a hit test performed at a specified Point.
public:
System::Windows::Media::HitTestResult ^ HitTest(System::Windows::Point point);
public System.Windows.Media.HitTestResult HitTest (System.Windows.Point point);
override this.HitTest : System.Windows.Point -> System.Windows.Media.HitTestResult
member this.HitTest : System.Windows.Point -> System.Windows.Media.HitTestResult
Public Function HitTest (point As Point) As HitTestResult
Parameters
- point
- Point
Point against which to hit test.
Returns
The hit test result of the visual returned as a HitTestResult type.