BrickStringFormat Members

Encapsulates text layout information (such as alignment, orientation and tab stops) and display manipulations (such as ellipsis insertion and national digit substitution).

Constructors

Name Description
BrickStringFormat() Initializes a new instance of the BrickStringFormat class with the default settings.
BrickStringFormat(BrickStringFormat) Initializes a new instance of the BrickStringFormat class with the values of the specified source brick string format.
BrickStringFormat(BrickStringFormat, StringAlignment, StringAlignment) Initializes a new instance of the BrickStringFormat class with the values of the specified source brick string format. It also uses the specified text and line alignment settings.
BrickStringFormat(BrickStringFormat, StringFormatFlags) Initializes a new instance of the BrickStringFormat class with the values of the specified source brick string format. It also uses the specified formatting settings.
BrickStringFormat(BrickStringFormat, StringTrimming) Initializes a new instance of the BrickStringFormat class with the values of the specified source brick string format. It also uses the specified trimming settings.
BrickStringFormat(StringAlignment) Initializes a new instance of the BrickStringFormat class with the specified string alignment.
BrickStringFormat(StringAlignment, StringAlignment) Initializes a new instance of the BrickStringFormat class with the specified text and line alignment.
BrickStringFormat(StringAlignment, StringAlignment, StringFormatFlags, HotkeyPrefix, StringTrimming) Initializes a new instance of the BrickStringFormat class with the specified text and line alignment, formatting settings, hotkey prefix and trimming mode.
BrickStringFormat(StringFormat) Initializes a new instance of the BrickStringFormat class with the specified source.
BrickStringFormat(StringFormatFlags) Initializes a new instance of the BrickStringFormat class with the specified formatting information.
BrickStringFormat(StringFormatFlags, StringAlignment, StringAlignment) Initializes a new instance of the BrickStringFormat class with the specified formatting information, text and line alignment settings.
BrickStringFormat(StringFormatFlags, StringAlignment, StringAlignment, StringTrimming) Initializes a new instance of the BrickStringFormat class with the specified settings.

Properties

Name Description
Alignment Gets or sets text alignment information.
FormatFlags Gets or sets a StringFormatFlags enumeration that contains formatting information.
HotkeyPrefix Gets the HotkeyPrefix object for this BrickStringFormat object.
LineAlignment Gets or sets line alignment.
PrototypeKind Gets or sets a prototype string format for the current string format.
RightToLeft Gets a value indicating whether or not the right-to-left orientation is used.
Trimming Gets text trimming mode.
Value Gets the StringFormat instance representing current text formatting.
WordWrap Gets a value, specifying whether or not word-wrapping is available for the brick's text.

Methods

Name Description
ChangeAlignment(HorzAlignment, VertAlignment)
ChangeAlignment(TextAlignment)
ChangeAlignment(StringAlignment) Returns a BrickStringFormat object cloned from the current BrickStringFormat object, with the new string alignment applied.
ChangeAlignment(StringAlignment, StringAlignment) Returns a BrickStringFormat object cloned from the current BrickStringFormat object, with the new string and line alignment applied.
ChangeFormatFlags(StringFormatFlags) Returns a BrickStringFormat object cloned from the current BrickStringFormat object.
ChangeLineAlignment(StringAlignment) Returns a BrickStringFormat object cloned from the current BrickStringFormat object.
Clone() Creates an exact copy of the BrickStringFormat object.
Create(TextAlignment, Boolean) static Creates a new instance of the BrickStringFormat class with the specified settings.
Create(TextAlignment, Boolean, StringTrimming) static Creates a new instance of the BrickStringFormat class with the specified settings.
Create(TextAlignment, Boolean, StringTrimming, Boolean) static Creates a BrickStringFormat instance with the specified settings.
Create(TextAlignment, StringFormatFlags, StringTrimming) static Creates a new instance of the BrickStringFormat class with the specified settings.
Dispose() Disposes of the BrickStringFormat object.
Equals(Object) Determines whether or not the specified object is equal to the current BrickStringFormat instance.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetHashCode() Serves as the default hash function.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also