Skip to main content

GeometryHitTestResult Class

Definition​

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia

Returns the results of a hit test that uses a Avalonia.Media.Geometry as a hit test parameter.

public class GeometryHitTestResult

Inheritance: object -> GeometryHitTestResult

Implements: IEquatable<GeometryHitTestResult>

Constructors​

NameDescription
GeometryHitTestResultReturns the results of a hit test that uses a Avalonia.Media.Geometry as a hit test parameter.

GeometryHitTestResult Constructor​

Returns the results of a hit test that uses a Avalonia.Media.Geometry as a hit test parameter.

public GeometryHitTestResult(Avalonia.Visual VisualHit, Avalonia.Media.IntersectionResult IntersectionResult)

Parameters​

VisualHit Avalonia.Visual

Gets the Avalonia.Visual that is returned from a hit test result.

IntersectionResult Avalonia.Media.IntersectionResult

Gets the Avalonia.Media.GeometryHitTestResult.IntersectionResult value of the hit test.

Methods​

NameDescription
<Clone>$No summary available.
DeconstructNo summary available.
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ToStringNo summary available.

<Clone>$ Method​

public Avalonia.Media.GeometryHitTestResult <Clone>$()

Returns​

Avalonia.Media.GeometryHitTestResult

Deconstruct Method​

public void Deconstruct(Avalonia.Visual& VisualHit, Avalonia.Media.IntersectionResult& IntersectionResult)

Parameters​

VisualHit Avalonia.Visual&

IntersectionResult Avalonia.Media.IntersectionResult&

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Media.GeometryHitTestResult other)
Parameters​

other Avalonia.Media.GeometryHitTestResult

Returns​

bool

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetHashCode Method​

public int GetHashCode()

Returns​

int

ToString Method​

public string ToString()

Returns​

string

Properties​

NameDescription
IntersectionResultGets the Avalonia.Media.GeometryHitTestResult.IntersectionResult value of the hit test.
VisualHitGets the Avalonia.Visual that is returned from a hit test result.

IntersectionResult Property​

Gets the Avalonia.Media.GeometryHitTestResult.IntersectionResult value of the hit test.

public Avalonia.Media.IntersectionResult IntersectionResult { get; set; }

VisualHit Property​

Gets the Avalonia.Visual that is returned from a hit test result.

public Avalonia.Visual VisualHit { get; set; }