Summary
Defines the platform-specific interface for a
Geometry
.
- Namespace
- Avalonia
.Platform - Implementing Types
graph BT
Type["IGeometryImpl"]
class Type type-node
Implementing0["IStreamGeometryImpl"]-.->Type
click Implementing0 "/api/Avalonia.Platform/IStreamGeometryImpl"
Implementing1["ITransformedGeometryImpl"]-.->Type
click Implementing1 "/api/Avalonia.Platform/ITransformedGeometryImpl"
Syntax
public interface IGeometryImpl
Properties
Name | Value | Summary |
---|---|---|
Bounds | Rect |
Gets the geometry's bounding rectangle.
|
ContourLength | double |
Gets the geometry's total length as if all its contours are placed
in a straight line.
|
Methods
Name | Value | Summary |
---|---|---|
FillContains |
bool |
Indicates whether the geometry's fill contains the specified point.
|
GetRenderBounds |
Rect |
Gets the geometry's bounding rectangle with the specified pen.
|
Intersect |
IGeometryImpl |
Intersects the geometry with another geometry.
|
StrokeContains |
bool |
Indicates whether the geometry's stroke contains the specified point.
|
Try |
bool |
Attempts to get the corresponding point and
tangent from the specified distance along the
contour of the geometry.
|
Try |
bool |
Attempts to get the corresponding point at the
specified distance
|
TryGetSegment |
bool |
Attempts to get the corresponding path segment
given by the two distances specified.
Imagine it like snipping a part of the current
geometry.
|
WithTransform |
I |
Makes a clone of the geometry with the specified transform.
|