GeometryHitTestResult 类

定义

返回命中测试的结果,该测试使用 Geometry 作为命中测试参数。Returns the results of a hit test that uses a Geometry as a hit test parameter.

public ref class GeometryHitTestResult : System::Windows::Media::HitTestResult
public class GeometryHitTestResult : System.Windows.Media.HitTestResult
type GeometryHitTestResult = class
    inherit HitTestResult
Public Class GeometryHitTestResult
Inherits HitTestResult
继承
GeometryHitTestResult

注解

还可以通过使用Point作为命中测试参数来对视觉对象执行命中测试, 并将结果PointHitTestResult作为返回。You can also perform a hit test on a visual object by using a Point as a hit test parameter, and return the result as a PointHitTestResult.

构造函数

GeometryHitTestResult(Visual, IntersectionDetail)

使用指定的可视对象和 GeometryHitTestResult 值初始化 IntersectionDetail 类的新实例。Initializes a new instance of the GeometryHitTestResult class by using a specified visual object and IntersectionDetail value.

属性

IntersectionDetail

获取命中测试的 IntersectionDetail 值。Gets the IntersectionDetail value of the hit test.

VisualHit

获取从命中测试结果返回的视觉对象。Gets the visual object that is returned from a hit test result.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于