Class EmfSetTextAlign

Class EmfSetTextAlign

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

The EMR_SETTEXTALIGN record specifies text alignment.

public sealed class EmfSetTextAlign : EmfStateRecordType
   {
       public EmfSetTextAlign(EmfAlignment alignment, int angle)
       {
           Alignment = alignment;
           Angle = angle;
       }
       public EmfAlignment Alignment { get; }
       public int Angle { get; }
   }

Inheritance

object MetaObject EmfRecord EmfStateRecordType EmfSetTextAlign

Inherited Members

EmfRecord.Type , EmfRecord.Size , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Remarks

The EMR_SMALLTEXTOUT, EMR_EXTTEXTOUTA, and EMR_EXTTEXTOUTW records use textalignment values to position a string of text on the output medium. The values specify therelationship between a reference point and a rectangle that bounds the text. The reference point iseither the current position or a point passed to a text output record.The rectangle that bounds the text is formed by the character cells in the text string.

Constructors

EmfSetTextAlign(EmfRecord)

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

public EmfSetTextAlign(EmfRecord source)
   {
      base.StartRecord();
      this.SetInt32(0, (int)source.Type);
      int iOffset = this.GetOffset();
      byte[] abData = new byte[16];
      source.CopyTo(abData, 0);
      this.WriteBytes(abData, iOffset + 4);
      base.EndRecord(16);
   }

Parameters

source EmfRecord

The source.

EmfSetTextAlign()

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

public EmfSetTextAlign()
   {
   }

Properties

TextAlignmentMode

Gets or sets a 32-bit unsigned integer that specifies text alignment byusing a mask of text alignment flags. These are either Aspose.Imaging.FileFormats.Wmf.Consts.WmfTextAlignmentModeFlags([MS-WMF] section 2.1.2.3) for text with a horizontal baseline, or Aspose.Imaging.FileFormats.Wmf.Consts.WmfVerticalTextAlignmentModeFlags([MS-WMF] section 2.1.2.4) for text with a verticalbaseline. Only one value can be chosen from those that affect horizontal and verticalalignment.

public int TextAlignmentMode
    {
        get;
        set;
    }

Property Value

int

 English