DXGraphicsPath Class
Defines a series of connected lines and curves.
Namespace: DevExpress.Drawing
Assembly: DevExpress.Drawing.v24.2.dll
NuGet Package: DevExpress.Drawing
Declaration
Related API Members
The following members return DXGraphicsPath objects:
Remarks
A DXGraphicsPath
object may be composed of any number of figures (subpaths). Each figure is either composed of a sequence of connected lines and curves or a geometric shape primitive. The starting point of a figure is the first point in the sequence of connected lines and curves. The ending point is the last point in the sequence. The starting and ending points of a geometric shape primitive are defined by the primitive specification.
A figure that consists of a sequence of connected lines and curves is an open figure, unless it is closed explicitly. Call the CloseFigure() method to close the current figure by connecting a line from the ending point to the starting point. A figure that consists of a geometric shape primitive is a closed figure.
A new figure is implicitly started when a path is created or when a figure is closed. Call the StartFigure() method to create a new figure.
When a geometric shape primitive is added to a path, it adds a figure containing the geometric shape, and also implicitly starts a new figure. There is always a current figure in a path. When lines and curves are added to a path, an implicit line is added as needed to connect the ending point of the current figure to the starting point of the new lines and curves to form a sequence of connected lines and curves.