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

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 19.9
Syntax
public sealed class StringFormat : DisposableObject

The StringFormat type exposes the following members.

Constructors
  NameDescription
Public methodStringFormat
Initializes a new StringFormat object.
Public methodStringFormat(StringFormat)
Initializes a new StringFormat object from the specified existing StringFormat object.
Public methodStringFormat(StringFormatFlags)
Initializes a new StringFormat object with the specified StringFormatFlags enumeration and language.
Properties
  NameDescription
Public propertyAlignment
Gets or sets text alignment information on the vertical plane.
Public propertyDigitSubstitutionLanguage
Gets or sets the language that is used when local digits are substituted for western digits.
Public propertyDigitSubstitutionMethod
Gets or sets the method to be used for digit substitution.
Public propertyDisposed
Gets a value indicating whether this instance is disposed.
(Inherited from DisposableObject.)
Public propertyFirstTabOffset
Gets the number of spaces between the beginning of a line of text and the first tab stop.
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 propertyTabStops
Gets an array of distances between tab stops in the units specified by the PageUnit property.
Public propertyTrimming
Gets or sets the StringTrimming enumeration for this StringFormat object.
Methods
  NameDescription
Public methodDeepClone
Creates a deep clone of this StringFormat object.
Public methodCode exampleDispose
Disposes the current instance.
(Inherited from DisposableObject.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodSetTabStops
Sets tab stops for this StringFormat object.
Public methodToString
Converts this StringFormat object to a human-readable string.
(Overrides ObjectToString.)
See Also