## 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.

```csharp
public sealed class StringFormat : DisposableObject
```

## Constructors

| Name | Description |
| --- | --- |
| [StringFormat](stringformat/#constructor)() | Initializes a new `StringFormat` object. |
| [StringFormat](stringformat/#constructor_1)(StringFormat) | Initializes a new `StringFormat` object from the specified existing `StringFormat` object. |
| [StringFormat](stringformat/#constructor_2)(StringFormatFlags) | Initializes a new `StringFormat` object with the specified [`StringFormatFlags`](../stringformatflags/) enumeration and language. |

## Properties

| Name | Description |
| --- | --- |
| static [GenericDefault](../../aspose.imaging/stringformat/genericdefault/) { get; } | Gets a generic default `StringFormat` object. |
| static [GenericTypographic](../../aspose.imaging/stringformat/generictypographic/) { get; } | Gets a generic typographic `StringFormat` object. |
| [Alignment](../../aspose.imaging/stringformat/alignment/) { get; set; } | Gets or sets text alignment information on the vertical plane. |
| [CustomCharIdent](../../aspose.imaging/stringformat/customcharident/) { get; set; } | Gets or sets the custom character ident. |
| [DigitSubstitutionLanguage](../../aspose.imaging/stringformat/digitsubstitutionlanguage/) { get; set; } | Gets or sets the language that is used when local digits are substituted for western digits. |
| [DigitSubstitutionMethod](../../aspose.imaging/stringformat/digitsubstitutionmethod/) { get; set; } | Gets or sets the method to be used for digit substitution. |
| [Disposed](../../aspose.imaging/disposableobject/disposed/) { get; } | Gets a value indicating whether this instance is disposed. |
| [FirstTabOffset](../../aspose.imaging/stringformat/firsttaboffset/) { get; } | Gets the number of spaces between the beginning of a line of text and the first tab stop. |
| [FormatFlags](../../aspose.imaging/stringformat/formatflags/) { get; set; } | Gets or sets a [`StringFormatFlags`](../stringformatflags/) enumeration that contains formatting information. |
| [HotkeyPrefix](../../aspose.imaging/stringformat/hotkeyprefix/) { get; set; } | Gets or sets the [`HotkeyPrefix`](../hotkeyprefix/) object for this `StringFormat` object. |
| [LineAlignment](../../aspose.imaging/stringformat/linealignment/) { get; set; } | Gets or sets the line alignment on the horizontal plane. |
| [TabStops](../../aspose.imaging/stringformat/tabstops/) { get; } | Gets an array of distances between tab stops in the units specified by the [`PageUnit`](../graphics/pageunit/) property. |
| [Trimming](../../aspose.imaging/stringformat/trimming/) { get; set; } | Gets or sets the [`StringTrimming`](../stringtrimming/) enumeration for this `StringFormat` object. |

## Methods

| Name | Description |
| --- | --- |
| [DeepClone](../../aspose.imaging/stringformat/deepclone/)() | Creates a deep clone of this `StringFormat` object. |
| [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. |
| override [Equals](../../aspose.imaging/stringformat/equals/)(object) | Check if objects are equal. |
| override [GetHashCode](../../aspose.imaging/stringformat/gethashcode/)() | Get hash code of the current object. |
| [SetTabStops](../../aspose.imaging/stringformat/settabstops/)(float, float[]) | Sets tab stops for this `StringFormat` object. |
| override [ToString](../../aspose.imaging/stringformat/tostring/)() | Converts this `StringFormat` object to a human-readable string. |

### See Also

* class [DisposableObject](../disposableobject/)
* namespace [Aspose.Imaging](../../aspose.imaging/)
* assembly [Aspose.Imaging](../../)


