[]
A helper class for creating GraphicsPath objects.
public class PathBuilder
Public Class PathBuilder
| Name | Description |
|---|---|
| PathBuilder() | Initializes a new instance of the PathBuilder class. |
| Name | Description |
|---|---|
| FigureHasSegments | Gets a value indicating if the active figure contains one or more segments. |
| FigureStarted | Gets a value indicating if there is an active figure to update. |
| Figures | Gets the list of figures to be converted to a path. |
| Name | Description |
|---|---|
| AddArc(ArcSegment) | Adds a single arc to the path geometry. |
| AddCubicBezier(PointF, PointF, PointF) | Creates a cubic Bezier curve and adds it to the figure. |
| AddCubicBeziers(params PointF[]) | Creates a sequence of cubic Bezier curves and adds them to the figure. |
| AddFigure(IFigure) | Adds an existing figure to the path. |
| AddFigures(params IFigure[]) | Adds one or several existing figures to the path. |
| AddLine(PointF) | Creates a line segment between the current point and the specified end point and adds it to the figure. |
| AddLine(float, float) | Creates a line segment between the current point and the specified end point and adds it to the figure. |
| AddLines(params PointF[]) | Creates a sequence of lines using the specified points and adds them to the figure. |
| AddQuadraticBezier(PointF, PointF) | Creates a quadratic Bezier curve and adds it to the figure. |
| AddQuadraticBeziers(params PointF[]) | Creates a sequence of quadratic Bezier curves and adds them to the figure. |
| BeginFigure(PointF) | Starts a new figure at the specified point. |
| BeginFigure(float, float) | Starts a new figure at the specified point. |
| CancelFigure() | Discards the active figure. |
| Clear() | Clears the list of figures and all pending changes. |
| EndFigure(bool) | Ends the current figure; optionally, closes it. |
| ToPath(FillMode) | Creates a GraphicsPath from the current set of figures. |
| ToPath(FillMode, Matrix3x2) | Creates a GraphicsPath from the current set of figures. |