Class EmfPlusStringFormat

Class EmfPlusStringFormat

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

The EmfPlusStringFormat object specifies text layout,display manipulations, and language identification

public sealed class EmfPlusStringFormat : EmfPlusGraphicsObjectType
   {
   }
Here is an example of a property and method that could be added to the `EmfPlusStringFormat` class:
public string Text { get; set; }
public EmfPlusFont EmfFont { get; set; }
public float HorizontalAlignment { get; set; }
public float VerticalAlignment { get; set; }
public void Draw(Graphics g)
{
}

Inheritance

object MetaObject EmfPlusObject EmfPlusGraphicsObjectType EmfPlusStringFormat

Inherited Members

EmfPlusGraphicsObjectType.Version , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

EmfPlusStringFormat()

public EmfPlusStringFormat()
   {
   }

Properties

DigitLanguage

Gets or sets an EmfPlusLanguageIdentifier object that specifies thelanguage to use for numeric digits in the string.For example, if this string contains Arabic digits,this field MUST contain a language identifier thatspecifies an Arabic language

public EmfPlusLanguageIdentifierType DigitLanguage
   {
      get;
      set;
   }

Property Value

EmfPlusLanguageIdentifierType

DigitSubstitution

Gets or sets a 32-bit unsigned integer that specifies how to substitutenumeric digits in the string according to a locale or language.This value MUST be defined in the StringDigitSubstitutionenumeration (section 2.1.1.30).

public EmfPlusStringDigitSubstitution DigitSubstitution
   {
      get;
      set;
   }

Property Value

EmfPlusStringDigitSubstitution

FirstTabOffset

Gets or sets a 32-bit floating-point value that specifies the numberof spaces between the beginning of a text line andthe first tab stop

public float FirstTabOffset
   {
      get;
      set;
   }

Property Value

float

HotkeyPrefix

Gets or sets a 32-bit signed integer that specifies the type ofprocessing that is performed on a string when a keyboardshortcut prefix (that is, an ampersand) is encountered.Basically, this field specifies whether to displaykeyboard shortcut prefixes that relate to text.The value MUST be defined in the HotkeyPrefixenumeration (section 2.1.1.14).

public EmfPlusHotkeyPrefix HotkeyPrefix
   {
      get;
      set;
   }

Property Value

EmfPlusHotkeyPrefix

Language

Gets or sets an EmfPlusLanguageIdentifier object (section 2.2.2.23)that specifies the language to use for the string

public EmfPlusLanguageIdentifierType language
   {
      get;
      set;
   }

Property Value

EmfPlusLanguageIdentifierType

LeadingMargin

Gets or sets a 32-bit floating-point value that specifies the lengthof the space to add to the starting position of a string.The default is 1/6 inch; for typographic fonts, thedefault value is 0.

public float LeadingMargin
    {
        get;
        set;
    }

Property Value

float

LineAlign

Gets or sets a 32-bit unsigned integer that specifies how toalign the string vertically in the layout rectangle.This value MUST be defined in the StringAlignment enumeration.

public EmfPlusStringAlignment LineAlign
   {
      get;
      set;
   }

Property Value

EmfPlusStringAlignment

RangeCount

Gets or sets a 32-bit signed integer that specifies the number of EmfPlusCharacterRangeobjects (section 2.2.2.8) defined in the StringFormatData field.

public int RangeCount
   {
      get;
      set;
   }

Property Value

int

StringAlignment

Gets or sets a 32-bit unsigned integer that specifies how toalign the string horizontally in the layout rectangle.This value MUST be defined in the StringAlignmentenumeration (section 2.1.1.29).

public EmfPlusStringAlignment StringAlignment
   {
      get;
      set;
   }

Property Value

EmfPlusStringAlignment

StringFormatData

Gets or sets an EmfPlusStringFormatData object (section 2.2.2.44)that specifies optional text layout data.

public EmfPlusStringFormatData StringFormatData
   {
      get;
      set;
   }

Property Value

EmfPlusStringFormatData

StringFormatFlags

Gets or sets a 32-bit unsigned integer that specifies text layoutoptions for formatting, clipping and font handling.This value MUST be composed of StringFormat flags(section 2.1.2.8).

public EmfPlusStringFormatFlags StringFormatFlags
    {
        get;
        set;
    }

Property Value

EmfPlusStringFormatFlags

TabstopCount

Gets or sets a 32-bit signed integer that specifies the number of tab stopsdefined in the StringFormatData field.

public int TabstopCount
{
    get;
    set;
}

Property Value

int

Tracking

Gets or sets a 32-bit floating-point value that specifies the ratioof the horizontal space allotted to each character ina specified string to the font-defined width of thecharacter. Large values for this property specify amplespace between characters; values less than 1 can producecharacter overlap. The default is 1.03; for typographicfonts, the default value is 1.00.

public float Tracking
   {
      get;
      set;
   }

Property Value

float

TrailingMargin

Gets or sets a 32-bit floating-point value that specifies the lengthof the space to leave following a string. The defaultis 1/6 inch; for typographic fonts, the default value is 0.

public float TrailingMargin
   {
      get;
      set;
   }

Property Value

float

Trimming

Gets or sets specifies how to trim characters from a string that istoo large to fit into a layout rectangle. This valueMUST be defined in the StringTrimming enumeration (section 2.1.1.31).

public EmfPlusStringTrimming Trimming
    {
        get;
        set;
    }

Property Value

EmfPlusStringTrimming

 English