Class PathFigure
Represents a subsection of a geometry, a single connected series of two-dimensional geometric segments.
Inherited Members
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public sealed class PathFigure : DependencyObject, IDependencyObject
Constructors
| Improve this Doc View SourcePathFigure()
Initializes a new instance of the PathFigure class.
Declaration
public PathFigure()
Fields
| Improve this Doc View SourceIsClosedProperty
Identifies the IsClosed dependency property.
Declaration
public static readonly DependencyProperty IsClosedProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsFilledProperty
Identifies the IsFilled dependency property.
Declaration
public static readonly DependencyProperty IsFilledProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
SegmentsProperty
Identifies the Segments dependency property.
Declaration
public static readonly DependencyProperty SegmentsProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
StartPointProperty
Identifies the StartPoint dependency property.
Declaration
public static readonly DependencyProperty StartPointProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceIsClosed
Gets or sets a value that indicates whether this figure's first and last segments are connected.
Declaration
public bool IsClosed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the first and last segments of the figure are connected; otherwise, false. The default is false. |
IsFilled
Gets or sets a value that indicates whether the contained area of this PathFigure is to be used for hit-testing, rendering, and clipping.
Declaration
public bool IsFilled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the contained area of this PathFigure is to be used for hit-testing, rendering, and clipping; otherwise, false. The default is true. |
Segments
Gets or sets the collection of segments that define the shape of this PathFigure object.
Declaration
public PathSegmentCollection Segments { get; set; }
Property Value
Type | Description |
---|---|
PathSegmentCollection | The collection of segments that define the shape of this PathFigure object. The default is an empty collection. |
StartPoint
Gets or sets the Point where the PathFigure begins.
Declaration
public Point StartPoint { get; set; }
Property Value
Type | Description |
---|---|
Point | The Point where the PathFigure begins. The default is a Point with value 0,0. |