Class PathGeometry
Represents a complex shape that may be composed of arcs, curves, ellipses, lines, and rectangles.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public sealed class PathGeometry : Geometry
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.
Declaration
public PathGeometry(IEnumerable<PathFigure> figures)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<PathFigure> | figures | A collection of figures |
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 |
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 |
Methods
| Improve this Doc View SourceDefineInCanvas(Path, Object, Double, Double, Double, Double, Double, Double, Size)
Applies FillStyle, StrokeStyle + Adds the figures to the canvas' context, then calls the Fill method.
Declaration
protected override void DefineInCanvas(Path path, object canvasDomElement, double horizontalMultiplicator, double verticalMultiplicator, double xOffsetToApplyBeforeMultiplication, double yOffsetToApplyBeforeMultiplication, double xOffsetToApplyAfterMultiplication, double yOffsetToApplyAfterMultiplication, Size shapeActualSize)
Parameters
Type | Name | Description |
---|---|---|
Path | path | |
System.Object | canvasDomElement | |
System.Double | horizontalMultiplicator | |
System.Double | verticalMultiplicator | |
System.Double | xOffsetToApplyBeforeMultiplication | |
System.Double | yOffsetToApplyBeforeMultiplication | |
System.Double | xOffsetToApplyAfterMultiplication | |
System.Double | yOffsetToApplyAfterMultiplication | |
Size | shapeActualSize |
Overrides
| Improve this Doc View SourceGetMinMaxXY(ref Double, ref Double, ref Double, ref Double)
Declaration
protected override void GetMinMaxXY(ref double minX, ref double maxX, ref double minY, ref double maxY)
Parameters
Type | Name | Description |
---|---|---|
System.Double | minX | |
System.Double | maxX | |
System.Double | minY | |
System.Double | maxY |