Edit

Share via


DrawingVisual.HitTestCore Method

Definition

HitTestCore determines whether the bounds of the visual object has been hit.

Overloads

HitTestCore(GeometryHitTestParameters)

Determines whether a geometry value is within the bounds of the visual object.

HitTestCore(PointHitTestParameters)

Determines whether a point coordinate value is within the bounds of the DrawingVisual object.

HitTestCore(GeometryHitTestParameters)

Determines whether a geometry value is within the bounds of the visual object.

protected override System.Windows.Media.GeometryHitTestResult HitTestCore(System.Windows.Media.GeometryHitTestParameters hitTestParameters);

Parameters

hitTestParameters
GeometryHitTestParameters

A value of type GeometryHitTestParameters that specifies the Geometry to hit test against.

Returns

A value of type GeometryHitTestResult.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

HitTestCore(PointHitTestParameters)

Determines whether a point coordinate value is within the bounds of the DrawingVisual object.

protected override System.Windows.Media.HitTestResult HitTestCore(System.Windows.Media.PointHitTestParameters hitTestParameters);

Parameters

hitTestParameters
PointHitTestParameters

A value of type PointHitTestParameters that specifies the Point to hit test against.

Returns

A value of type HitTestResult, representing the Visual returned from a hit test.

Remarks

The VisualHit property of the return value represents the visual object that was hit.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10