Class DrawPathCommand
Draws (strokes) a graphics path with the specified pen.
Inherited Members
Namespace: DRIT.Drawing.Vector.Commands
Assembly: DRIT.Drawing.dll
Syntax
public sealed class DrawPathCommand : DrawingCommand
Constructors
DrawPathCommand(Pen, GraphicsPath)
Initializes a new DrawPathCommand, cloning the pen and path.
Declaration
public DrawPathCommand(Pen pen, GraphicsPath path)
Parameters
| Type | Name | Description |
|---|---|---|
| Pen | pen | The pen to stroke with. |
| GraphicsPath | path | The path to draw. |
Properties
Path
Gets the path to draw.
Declaration
public GraphicsPath Path { get; }
Property Value
| Type | Description |
|---|---|
| GraphicsPath |
Pen
Gets the pen used to stroke the path.
Declaration
public Pen Pen { get; }
Property Value
| Type | Description |
|---|---|
| Pen |
Methods
Clone()
Creates a deep copy of this command.
Declaration
public override DrawingCommand Clone()
Returns
| Type | Description |
|---|---|
| DrawingCommand | A new DrawingCommand with the same state. |