Class DrawStringCommand
Draws a string with the specified font, brush, layout rectangle, and format.
Inherited Members
Namespace: DRIT.Drawing.Vector.Commands
Assembly: DRIT.Drawing.dll
Syntax
public sealed class DrawStringCommand : DrawingCommand
Constructors
DrawStringCommand(string, Font, Brush, RectangleF, StringFormat?)
Initializes a new DrawStringCommand, cloning the font, brush, and format.
Declaration
public DrawStringCommand(string text, Font font, Brush brush, RectangleF layoutRect, StringFormat? format)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | |
| Font | font | |
| Brush | brush | |
| RectangleF | layoutRect | |
| StringFormat | format |
Properties
Brush
Gets the brush.
Declaration
public Brush Brush { get; }
Property Value
| Type | Description |
|---|---|
| Brush |
Font
Gets the font.
Declaration
public Font Font { get; }
Property Value
| Type | Description |
|---|---|
| Font |
Format
Gets the string format, or null.
Declaration
public StringFormat? Format { get; }
Property Value
| Type | Description |
|---|---|
| StringFormat |
LayoutRect
Gets the layout rectangle.
Declaration
public RectangleF LayoutRect { get; }
Property Value
| Type | Description |
|---|---|
| RectangleF |
Text
Gets the text to draw.
Declaration
public string Text { get; }
Property Value
| Type | Description |
|---|---|
| string |
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. |