• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class DrawStringCommand

Draws a string with the specified font, brush, layout rectangle, and format.

Inheritance
object
DrawingCommand
DrawStringCommand
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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.

Overrides
DrawingCommand.Clone()
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX