Table of Contents

Class PathFigure

Namespace
Northwoods.Go
Assembly
Northwoods.GoDiagram.WinForms.dll

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

public class PathFigure
Inheritance
PathFigure
Inherited Members

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.

public PathFigure(double sx = 0, double sy = 0, bool filled = true, bool shadowed = true)

Parameters

sx double

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

sy double

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

filled bool

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

shadowed bool

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.

public bool IsFilled { get; set; }

Property Value

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.

public bool IsShadowed { get; set; }

Property Value

bool

Segments

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

public IList<PathSegment> Segments { get; set; }

Property Value

IList<PathSegment>

StartX

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

public double StartX { get; set; }

Property Value

double

StartY

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

public double StartY { get; set; }

Property Value

double

Methods

Add(PathSegment)

Add a PathSegment to the Segments list.

public PathFigure Add(PathSegment segment)

Parameters

segment PathSegment

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

Returns

PathFigure

Copy()

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

public PathFigure Copy()

Returns

PathFigure