StringFormat Class

Encapsulates text layout information (such as alignment, orientation and tab stops) display manipulations (such as ellipsis insertion and national digit substitution) and OpenType features. This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  System.DrawingStringFormat

Namespace:  System.Drawing
Assembly:  Aspose.Drawing (in Aspose.Drawing.dll) Version: 20.8.0.0 (20.8.0)
Syntax
C#
public sealed class StringFormat : IDisposable

The StringFormat type exposes the following members.

Constructors
  NameDescription
Public methodStringFormat
Initializes a new instance of the StringFormat class.
Public methodStringFormat(StringFormat)
Initializes a new instance of the StringFormat class from the specified existing StringFormat object.
Public methodStringFormat(StringFormatFlags)
Initializes a new instance of the StringFormat class with the specified StringFormatFlags enumeration.
Public methodStringFormat(StringFormatFlags, Int32)
Initializes a new instance of the StringFormat class with the specified StringFormatFlags enumeration and language.
Properties
  NameDescription
Public propertyAlignment
Gets or sets text alignment information on the vertical plane.
Public propertyDigitSubstitutionLanguage
Gets the language that is used when local digits are substituted for western digits.
Public propertyDigitSubstitutionMethod
Gets the method to be used for digit substitution.
Public propertyFormatFlags
Gets or sets a StringFormatFlags enumeration that contains formatting information.
Public propertyStatic memberGenericDefault
Gets a generic default StringFormat object.
Public propertyStatic memberGenericTypographic
Gets a generic typographic StringFormat object.
Public propertyHotkeyPrefix
Gets or sets the HotkeyPrefix object for this StringFormat object.
Public propertyLineAlignment
Gets or sets the line alignment on the horizontal plane.
Public propertyTrimming
Gets or sets the StringTrimming enumeration for this StringFormat object.
Methods
  NameDescription
Public methodClone
Creates an exact copy of this StringFormat object.
Public methodDispose
Releases all resources used by this StringFormat object.
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetTabStops
Gets the tab stops for this StringFormat object.
Public methodGetType (Inherited from Object.)
Public methodSetDigitSubstitution
Specifies the language and method to be used when local digits are substituted for western digits.
Public methodSetMeasurableCharacterRanges
Specifies an array of CharacterRange structures that represent the ranges of characters measured by a call to the MeasureCharacterRanges method.
Public methodSetTabStops
Sets tab stops for this StringFormat object.
Public methodToString (Inherited from Object.)
See Also