[]
        
(Showing Draft Content)

C1.Framework.Drawing.Gdi.StringFormat

StringFormat Class

Encapsulates text layout information (such as alignment and line spacing), display manipulations (such as ellipsis insertion and national digit substitution) and OpenType features.

Inheritance
StringFormat
Implements
Namespace: C1.Framework.Drawing.Gdi
Assembly: C1.Win.Input.8.dll
Syntax
public sealed class StringFormat : ICloneable
Remarks

Many common formats are provided through the StringFormatFlags enumeration. StringFormat objects can be changed.

Constructors

Name Description
StringFormat()

Initializes a new StringFormat object.

StringFormat(StringAlignment, StringAlignment, StringFormatFlags)

Initializes a new StringFormat object with the specified StringAlignment and StringFormatFlags enumeration.

StringFormat(StringFormat)

Initializes a new StringFormat object from the specified existing StringFormat object.

StringFormat(StringFormatFlags)

Initializes a new StringFormat object with the specified StringFormatFlags enumeration.

Properties

Name Description
Alignment

Gets or sets text alignment information.

FormatFlags

Gets or sets a StringFormatFlags enumeration that contains formatting information.

HotkeyPrefix

Gets or sets the HotkeyPrefix object for this StringFormat object.

LineAlignment

Gets or sets the line alignment.

Trimming

Gets or sets the StringTrimming enumeration for this StringFormat object.

Methods

Name Description
Clone()

Creates a copy of the StringFormat object.

GetTabStops(out int, out TabUnit)

Gets the tab stops for this StringFormat object.

SetTabStops(int, int[], TabUnit)

Sets tab stops for this StringFormat object.