編輯

共用方式為


HostVisual.HitTestCore Method

Definition

Implements base hit testing behavior.

Overloads

HitTestCore(GeometryHitTestParameters)

Implements HitTestCore(GeometryHitTestParameters) to supply base hit testing behavior (returning GeometryHitTestParameters).

HitTestCore(PointHitTestParameters)

Implements HitTestCore(PointHitTestParameters) to supply base hit testing behavior (returning PointHitTestParameters).

HitTestCore(GeometryHitTestParameters)

Implements HitTestCore(GeometryHitTestParameters) to supply base hit testing behavior (returning GeometryHitTestParameters).

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.

Returns

Returns a value of type GeometryHitTestResult. The VisualHit property contains the visual that was hit.

Remarks

HostVisual never reports itself as being hit. To change this behavior, create a class derived from HostVisual and override the HitTestCore methods.

Applies to

HitTestCore(PointHitTestParameters)

Implements HitTestCore(PointHitTestParameters) to supply base hit testing behavior (returning PointHitTestParameters).

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.

Returns

Returns a value of type HitTestResult. The VisualHit property contains the visual object that was hit.

Remarks

HostVisual never reports itself as being hit. To change this behavior, create a class derived from HostVisual and override the HitTestCore methods.

Applies to