Table of Contents

Constructor ShapePathCommand

Namespace
DocWright.Dom
Assembly
DocWright.Dom.dll

ShapePathCommand(ShapePathVerb, params ShapePoint[])

Initializes a command whose points are all literal coordinates.

public ShapePathCommand(ShapePathVerb verb, params ShapePoint[] points)

Parameters

verb ShapePathVerb

The drawing verb.

points ShapePoint[]

The points the verb consumes.

ShapePathCommand(ShapePathVerb, ShapePoint[], string?[])

Initializes a command whose points may be written as guide expressions.

public ShapePathCommand(ShapePathVerb verb, ShapePoint[] points, string?[] pointExpressions)

Parameters

verb ShapePathVerb

The drawing verb.

points ShapePoint[]

The points the verb consumes, holding literals where known.

pointExpressions string[]

The unevaluated coordinate tokens, two per point — the x of point i at index 2i and its y at 2i + 1. A null entry means the matching coordinate in points is already the literal value.