Muokkaa

Jaa


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);
protected override System.Windows.Media.GeometryHitTestResult HitTestCore (System.Windows.Media.GeometryHitTestParameters hitTestParameters);
override this.HitTestCore : System.Windows.Media.GeometryHitTestParameters -> System.Windows.Media.GeometryHitTestResult
Protected Overrides Function HitTestCore (hitTestParameters As GeometryHitTestParameters) As GeometryHitTestResult

Parameters

hitTestParameters
GeometryHitTestParameters

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

Returns

A value of type GeometryHitTestResult.

Applies to

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);
protected override System.Windows.Media.HitTestResult HitTestCore (System.Windows.Media.PointHitTestParameters hitTestParameters);
override this.HitTestCore : System.Windows.Media.PointHitTestParameters -> System.Windows.Media.HitTestResult
Protected Overrides Function HitTestCore (hitTestParameters As PointHitTestParameters) As HitTestResult

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