PathBuilder Class

PathBuilder class

Builder class for creating SVG path data strings.

public class PathBuilder

Constructors

NameDescription
PathBuilder()The default constructor.

Methods

NameDescription
A(double, double, double, bool, bool, double, double)Adds an ‘Elliptical Arc Curve’ command to the path data.
AddPathSegment(string)Adds a custom path segment to the path data.
Ar(double, double, double, bool, bool, double, double)Adds a relative ‘Elliptical Arc Curve’ command to the path data.
Build()Builds the path data string.
C(double, double, double, double, double, double)Adds a ‘Cubic Bezier Curve’ command to the path data.
Cr(double, double, double, double, double, double)Adds a relative ‘Cubic Bezier Curve’ command to the path data.
H(double)Adds a ‘Horizontal Line To’ command to the path data.
Hr(double)Adds a relative ‘Horizontal Line To’ command to the path data.
L(double, double)Adds a ‘Line To’ command to the path data.
Lr(double, double)Adds a relative ‘Line To’ command to the path data.
M(double, double)Adds a ‘Move To’ command to the path data.
Mr(double, double)Adds a relative ‘Move To’ command to the path data.
Q(double, double, double, double)Adds a ‘Quadratic Bezier Curve’ command to the path data.
Qr(double, double, double, double)Adds a relative ‘Quadratic Bezier Curve’ command to the path data.
S(double, double, double, double)Adds a ‘Smooth Cubic Bezier Curve To’ command to the path data.
Sr(double, double, double, double)Adds a relative ‘Smooth Cubic Bezier Curve To’ command to the path data.
T(double, double)Adds a ‘Smooth Quadratic Bezier Curve To’ command to the path data.
Tr(double, double)Adds a relative ‘Smooth Quadratic Bezier Curve To’ command to the path data.
V(double)Adds a ‘Vertical Line To’ command to the path data.
Vr(double)Adds a relative ‘Vertical Line To’ command to the path data.
Z()Adds a ‘Close Path’ command to the path data.

See Also