GeometryHitTestResult GeometryHitTestResult GeometryHitTestResult GeometryHitTestResult Class

定义

返回命中测试的结果,该测试使用 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
继承
GeometryHitTestResultGeometryHitTestResultGeometryHitTestResultGeometryHitTestResult

注解

还可以通过使用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(Visual, IntersectionDetail) GeometryHitTestResult(Visual, IntersectionDetail) GeometryHitTestResult(Visual, IntersectionDetail)

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

属性

IntersectionDetail IntersectionDetail IntersectionDetail IntersectionDetail

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

VisualHit VisualHit VisualHit VisualHit

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

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于