Skip to main content

PathGeometry Class

Definition​

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia
public class PathGeometry

Inheritance: object -> AvaloniaObject -> Geometry -> StreamGeometry -> PathGeometry

Constructors​

NameDescription
PathGeometryInitializes a new instance of the Avalonia.Media.PathGeometry class.

PathGeometry Constructor​

Initializes a new instance of the Avalonia.Media.PathGeometry class.

public PathGeometry()

Methods​

NameDescription
Bind (8 overloads)Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject.
CheckAccessReturns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject.
ClearValue (4 overloads)Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject.
CloneClones the geometry. Inherited from StreamGeometry.
CoerceValueCoerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject.
CombineCombines the two geometries using the specified Avalonia.Media.GeometryCombineMode and applies the specified transform to the resulting geometry. Inherited from Geometry.
EqualsCompares two objects using reference equality. Inherited from AvaloniaObject.
FillContainsIndicates whether the geometry's fill contains the specified point. Inherited from Geometry.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetRenderBoundsGets the geometry's bounding rectangle with the specified pen. Inherited from Geometry.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
GetWidenedGeometryGets a Avalonia.Media.Geometry that is the shape defined by the stroke on the Geometry produced by the specified Pen. Inherited from Geometry.
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject.
OpenOpens the geometry to start defining it. Inherited from StreamGeometry.
ParseParses the specified path data to a Avalonia.Media.PathGeometry.
SetCurrentValue (2 overloads)Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject.
SetValue (3 overloads)Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
StrokeContainsIndicates whether the geometry's stroke contains the specified point. Inherited from Geometry.
ToStringNo summary available.
TryGetPointAndTangentAtDistanceInherited from Geometry.
TryGetPointAtDistanceInherited from Geometry.
TryGetSegmentInherited from Geometry.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

Parse Method​

Parses the specified path data to a Avalonia.Media.PathGeometry.

public Avalonia.Media.PathGeometry Parse(string pathData)

Parameters​

pathData string

The s.

Returns​

Avalonia.Media.PathGeometry

ToString Method​

public string ToString()

Returns​

string

Properties​

NameDescription
BoundsGets the geometry's bounding rectangle. Inherited from Geometry.
ContourLengthGets the geometry's total length as if all its contours are placed in a straight line. Inherited from Geometry.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
FiguresGets or sets the figures.
FillRuleGets or sets the fill rule.
ItemInherited from AvaloniaObject.
TransformGets or sets a transform to apply to the geometry. Inherited from Geometry.

Figures Property​

Gets or sets the figures.

public Avalonia.Media.PathFigures Figures { get; set; }

Value​

The figures.

FillRule Property​

Gets or sets the fill rule.

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

Value​

The fill rule.

Fields​

FiguresProperty Field​

Defines the Avalonia.Media.PathGeometry.Figures property.

public Avalonia.DirectProperty<TOwner,TValue><Avalonia.Media.PathGeometry, Avalonia.Media.PathFigures> FiguresProperty

FillRuleProperty Field​

Defines the Avalonia.Media.PathGeometry.FillRule property.

public Avalonia.StyledProperty<TValue><Avalonia.Media.FillRule> FillRuleProperty

Events​

NameDescription
ChangedRaised when the geometry changes. Inherited from Geometry.
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.