UIElement.HitTestCore UIElement.HitTestCore UIElement.HitTestCore UIElement.HitTestCore Method

定义

实现 HitTestCore(GeometryHitTestParameters) 以提供基元素命中测试行为。Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior.

重载

HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters)

实现 HitTestCore(GeometryHitTestParameters) 以提供基元素命中测试行为(返回 GeometryHitTestResult)。Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior (returning GeometryHitTestResult).

HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters)

实现 HitTestCore(PointHitTestParameters) 以提供基元素命中测试行为(返回 HitTestResult)。Implements HitTestCore(PointHitTestParameters) to supply base element hit testing behavior (returning HitTestResult).

HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters) HitTestCore(GeometryHitTestParameters)

实现 HitTestCore(GeometryHitTestParameters) 以提供基元素命中测试行为(返回 GeometryHitTestResult)。Implements HitTestCore(GeometryHitTestParameters) to supply base element hit testing behavior (returning GeometryHitTestResult).

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

参数

hitTestParameters
GeometryHitTestParameters GeometryHitTestParameters GeometryHitTestParameters GeometryHitTestParameters

描述要执行的命中测试,包括初始命中点。Describes the hit test to perform, including the initial hit point.

返回

测试结果,包括计算的几何图形。Results of the test, including the evaluated geometry.

注解

有关如何在其他派生Visual.HitTestCore类中重写此方法的信息, 请参阅原始虚拟方法。See the original virtual method Visual.HitTestCore for information on overriding this method in further derived classes. 请注意, 有几个TextBlock特定的控件 (例如) 具有不同的实现, 这会重写此实现。Note that several specific controls (TextBlock, for example) do have distinct implementations, which override this one.

此方法不应从应用程序代码中调用。This method is not intended to be called from your application code. 此方法支持由输入系统的各个方面公开的内部命中测试行为 (例如, 鼠标指针是否位于元素上)。This method supports internal hit testing behaviors that are exposed by various aspects of the input system (whether the mouse pointer is over an element, for example).

HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters) HitTestCore(PointHitTestParameters)

实现 HitTestCore(PointHitTestParameters) 以提供基元素命中测试行为(返回 HitTestResult)。Implements HitTestCore(PointHitTestParameters) to supply base element hit testing behavior (returning HitTestResult).

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

参数

hitTestParameters
PointHitTestParameters PointHitTestParameters PointHitTestParameters PointHitTestParameters

描述要执行的命中测试,包括初始命中点。Describes the hit test to perform, including the initial hit point.

返回

包括计算的点的测试结果。Results of the test, including the evaluated point.

注解

有关如何在其他派生Visual.HitTestCore类中重写此方法的信息, 请参阅原始虚拟方法。See the original virtual method Visual.HitTestCore for information on overriding this method in further derived classes. 请注意, 有几个TextBlock特定的控件 (例如) 具有不同的实现, HitTestCore这些实现由UIElement定义。Note that several specific controls (TextBlock, for example) do have distinct implementations, which override HitTestCore as defined by UIElement.

此方法不应从应用程序代码中调用。This method is not intended to be called from your application code. 此方法支持由输入系统的各个方面公开的内部命中测试行为 (例如, 鼠标指针是否位于元素上)。This method supports internal hit testing behaviors that are exposed by various aspects of the input system (whether the mouse pointer is over an element, for example).

适用于