Back to DOM
PathCommandsTypeEnum
Definition
- Namespace
- DOM.Enums
- Assembly
- DOM.dll
Specifies the type of a path-drawing command.
Remarks
Used by when building a vector . The values mirror the SVG path command vocabulary. PathCommands.commandsType Path
Examples
csharp
1// 1. Move the pen
2var cmd = new PathCommands { commandsType = PathCommandsType.MoveTo };
3
csharp
1// 2. Draw a line
2var cmd = new PathCommands { commandsType = PathCommandsType.LineTo };
3
csharp
1// 3. Draw a cubic curve
2var cmd = new PathCommands { commandsType = PathCommandsType.CurveTo };
3
csharp
1// 4. Close the path
2var cmd = new PathCommands { commandsType = PathCommandsType.ClosePath };
3
Fields
ClosePath
Close the current path.
CurveTo
Draw a cubic Bézier curve.
EllipticalArcTo
Draw an elliptical arc.
HorizontalLineTo
Draw a horizontal line.
LineTo
Draw a straight line to a new point.
MoveTo
Move the pen to a new point without drawing.
QuadraticBezierCurveTo
Draw a quadratic Bézier curve.
SmoothCurveTo
Draw a smooth cubic Bézier curve.
SmoothQuadraticBezierCurveTo
Draw a smooth quadratic Bézier curve.
VerticalLineTo
Draw a vertical line.