Class PathFigure

GoDiagram®
v10.0.11
by Northwoods Software®

A PathFigure represents a section of a Geometry. It is a single connected series of two-dimensional geometric PathSegments.

Inheritance
PathFigure
Namespace: Northwoods.Go
Assembly: Northwoods.GoDiagram.WinForms.dll
Syntax
public class PathFigure
Remarks

The Figures property is a list of PathFigures.

PathFigures are drawn with the Stroke and other stroke properties. Filled PathFigures are painted with the Fill.

A PathFigure must not be modified once its containing Geometry has been assigned to a Shape.

Constructors

PathFigure(double, double, bool, bool)

Constructs an empty figure. The optional arguments specify the starting point of the figure. You'll want to add a new instance of a PathFigure to the Figures list of a Geometry.

Declaration
public PathFigure(double sx = 0, double sy = 0, bool filled = true, bool shadowed = true)
Parameters
Type Name Description
double sx

optional: the X coordinate of the start point (default is zero).

double sy

optional: the Y coordinate of the start point (default is zero).

bool filled

optional: whether the figure is filled (default is true).

bool shadowed

optional: whether the figure may be drawn with a shadow (default is true).

Properties

IsFilled

Gets or sets whether this PathFigure is drawn filled. The default value is true.

Declaration
public bool IsFilled { get; set; }
Property Value
Type Description
bool

IsShadowed

Gets or sets whether this PathFigure will render a shadow if one is defined. This is used for turning off shadows on specific subpaths. The default value is true.

Declaration
public bool IsShadowed { get; set; }
Property Value
Type Description
bool

Segments

Gets or sets the List of PathSegments that define this PathFigure.

Declaration
public IList<PathSegment> Segments { get; set; }
Property Value
Type Description
IList<PathSegment>

StartX

Gets or sets the starting point X coordinate of the PathFigure. The default value is zero.

Declaration
public double StartX { get; set; }
Property Value
Type Description
double

StartY

Gets or sets the starting point Y coordinate of the PathFigure. The default value is zero.

Declaration
public double StartY { get; set; }
Property Value
Type Description
double

Methods

Add(PathSegment)

Add a PathSegment to the Segments list.

Declaration
public PathFigure Add(PathSegment segment)
Parameters
Type Name Description
PathSegment segment

a newly allocated unshared PathSegment that will become owned by this PathFigure

Returns
Type Description
PathFigure

Copy()

Create a copy of this PathFigure, with the same values and segments.

Declaration
public PathFigure Copy()
Returns
Type Description
PathFigure