GeometryHitTestResult Class

Definition

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

Remarks

还可以通过使用 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.

Constructors

GeometryHitTestResult(Visual, IntersectionDetail)

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

Properties

IntersectionDetail

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

VisualHit

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

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

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

(Inherited from Object)
GetType()

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

(Inherited from Object)
MemberwiseClone()

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

(Inherited from Object)
ToString()

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

(Inherited from Object)

Applies to