Class PathGeometry
Represents a complex shape that may be composed of arcs, curves, ellipses, lines, and rectangles.
Inherited Members
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public sealed class PathGeometry : Geometry, IDependencyObject
Constructors
| Improve this Doc View SourcePathGeometry()
Initializes a new instance of the PathGeometry class.
Declaration
public PathGeometry()
PathGeometry(IEnumerable<PathFigure>)
Initializes a new instance of the PathGeometry class with the specified Figures.
Declaration
public PathGeometry(IEnumerable<PathFigure> figures)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<PathFigure> | figures | The Figures of the PathGeometry which describes the contents of the Path. |
Fields
| Improve this Doc View SourceFiguresProperty
Identifies the Figures dependency property.
Declaration
public static readonly DependencyProperty FiguresProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FillRuleProperty
Identifies the FillRule dependency property.
Declaration
public static readonly DependencyProperty FillRuleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceFigures
Gets or sets the collection of PathFigure objects that describe the contents of a path.
Declaration
public PathFigureCollection Figures { get; set; }
Property Value
Type | Description |
---|---|
PathFigureCollection | A collection of PathFigure objects that describe the contents of a path. Each individual PathFigure describes a shape. |
FillRule
Gets or sets a value that determines how the intersecting areas contained in the PathGeometry are combined.
Declaration
public FillRule FillRule { get; set; }
Property Value
Type | Description |
---|---|
FillRule | A FillRule enumeration value that indicates how the intersecting areas of the PathGeometry are combined. The default is EvenOdd. |
Methods
| Improve this Doc View SourceToString()
Returns a string representation of this PathGeometry.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string representation of this PathGeometry. |