Class EmfPlusDrawString

Class EmfPlusDrawString

Namespace: Aspose.Imaging.FileFormats.Emf.EmfPlus.Records
Assembly: Aspose.Imaging.dll (25.7.0)

The EmfPlusDrawString record specifies text output with string formatting

public sealed class EmfPlusDrawString : EmfPlusDrawingRecordType
{
    public EmfPlusRectF rect;
    public string text;
    public EmfPlusFont font;
    public short underlineStyle;
    public short strikeoutStyle;
    public byte italic;
    public short weight;
    public ushort charSet;
    public ushort outputPrecision;
    public EmfPlusColor color;
}

Inheritance

object MetaObject EmfPlusRecord EmfPlusDrawingRecordType EmfPlusDrawString

Inherited Members

EmfPlusRecord.Type , EmfPlusRecord.Flags , EmfPlusRecord.Size , EmfPlusRecord.DataSize , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

EmfPlusDrawString(EmfPlusRecord)

Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.EmfPlus.Records.EmfPlusDrawString class.

public EmfPlusDrawString(EmfPlusRecord source)
   {
   }

Parameters

source EmfPlusRecord

The source.

Properties

BrushId

Gets or sets the brush identifierA 32-bit unsigned integer that specifies the brush, the content of whichis determined by the S bit in the Flags field. This definition is usedto paint the foreground text color; that is, just the glyphs themselves.

public int BrushId
   {
      get;
      set;
   }

Property Value

int

FormatId

Gets or sets the format identifierA 32-bit unsigned integer that specifies the index of an optionalEmfPlusStringFormat object (section 2.2.1.9) in the EMF+ Object Table.This object specifies text layout information and display manipulationsto be applied to a string

public int FormatId
   {
      get;
      set;
   }

Property Value

int

IsColor

Gets or sets a value indicating whether this instance is color.If set, BrushId specifies a color as an EmfPlusARGB object (section 2.2.2.1).If clear, BrushId contains the index of an EmfPlusBrush object(section 2.2.1.1) in the EMF+ Object Table.

public bool IsColor
{
    get;
    set;
}

Property Value

bool

LayoutRect

Gets or sets the layout rectAn EmfPlusRectF object (section 2.2.2.39) that defines the bounding areaof the destination that will receive the string

public RectangleF LayoutRect
   {
      get;
      set;
   }

Property Value

RectangleF

Length

Gets or sets the length32-bit unsigned integer that specifies the number of characters in the string.

public int Length
   {
      get;
      set;
   }

Property Value

int

ObjectId

Gets or sets the object identifier.The index of an EmfPlusFont object (section 2.2.1.3) in the EMF+Object Table to render the text. The value MUST be zero to 63, inclusive.

public byte ObjectId
    {
        get;
        set;
    }

Property Value

byte

StringData

Gets or sets the string dataAn array of 16-bit Unicode characters that specifies the string to be drawn

public string StringData
    {
        get;
        set;
    }

Property Value

string

 English