ContainerVisual::HitTest Method (Point)

 

Returns the top-most visual object of a hit test by specifying a Point.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public:
HitTestResult^ HitTest(
	Point point
)

Parameters

point
Type: System.Windows::Point

The point value to hit test.

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.

The following example shows how to retrieve the HitTestResult return value from the HitTest method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: