Back to Devexpress

TextOptions Members

windowsforms-devexpress-dot-utils-dot-textoptions-dot-underscore-members.md

latest10.3 KB
Original Source

TextOptions Members

Contains options that specify how text is rendered.

Constructors

NameDescription
TextOptions(AppearanceObject)Initializes a new instance of the TextOptions class with the specified owner, the text settings are set to default values.
TextOptions(HorzAlignment, VertAlignment, WordWrap, Trimming, HKeyPrefix)Initializes a new instance of the TextOptions class with the specified alignments, word wrapping and text trimming options.
TextOptions(HorzAlignment, VertAlignment, WordWrap, Trimming)Initializes a new instance of the TextOptions class with the specified alignments, word wrapping and text trimming options.

Properties

NameDescription
DefaultOptions staticGets an object that specifies the default text options.
DefaultOptionsCenteredWithEllipsis staticGets an object whose settings force text to be centered.
DefaultOptionsMultiLine staticGets an object whose settings allow text to wrap.
DefaultOptionsNoWrap staticGets an object whose settings prevent text from wrapping.
DefaultOptionsNoWrapEx staticGets an object whose settings force text to be centered and prevent it from wrapping.
DefaultStringFormat staticGets an object that contains the default formatting settings.
HAlignmentGets or sets the horizontal alignment of text.
HotkeyPrefixGets or sets whether to underline characters that are preceded with an ampersand symbol (&). This option is supported by a set of controls.
RightToLeftGets or sets whether the text is directed from right to left.
TrimmingGets or sets text trimming mode.
VAlignmentGets or sets the vertical alignment of text.
WordWrapGets or sets text wrapping mode.

Methods

NameDescription
Assign(TextOptions)Copies settings from the specified object to the current TextOptions object.
BeginUpdate()Prevents a text’s visual updates when TextOptions are modified, until the EndUpdate() or CancelUpdate() method is called.
CancelUpdate()Enables a text’s visual updates if the text was previously locked by the BeginUpdate() method. Does not cause the text’s immediate visual update.
EndUpdate()Enables a text’s visual updates if the text was previously locked by the BeginUpdate() method. Causes the text’s immediate visual update.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
ForceUseGenericDefaultStringFormat() staticSpecifies how the default string format referred to by the TextOptions.DefaultStringFormat property is constructed.
GetDXStringFormat()Returns an object that contains text alignment information and OpenType features.
GetDXStringFormat(TextOptions)Returns an object that contains text alignment information and OpenType features.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetStringFormat()Returns a StringFormat object whose settings reflect the alignment, word wrapping and text trimming options of the TextOptions.DefaultOptions object.
GetStringFormat(TextOptions)Returns a StringFormat object whose settings reflect the alignment, word wrapping and text trimming options of the specified TextOptions object.
GetStringFormatInfo()Returns a StringFormatInfo object whose settings reflect the alignment, word wrapping and text trimming options of the TextOptions.DefaultOptions object.
GetStringFormatInfo(TextOptions)Returns a StringFormatInfo object whose settings reflect the alignment, word wrapping and text trimming options of the TextOptions.DefaultOptions object.
GetTrimming(Trimming)
GetType()Gets the Type of the current instance. Inherited from Object.
HorzAlignmentToStringAlignment(HorzAlignment) staticObsolete. Converts the specified HorzAlignment value to a corresponding StringAlignment value.
IsEqual(TextOptions)Tests whether two objects have the same property values.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
Reset()Resets all the text settings to their default values.
SetHAlignment(HorzAlignment)Specifies a text’s horizontal alignment within a control.
SetHAlignmentCore(HorzAlignment)This is an internal method that should not be called directly from your code.
SetHotKeyPrefix(HKeyPrefix)Sets the TextOptions.HotkeyPrefix property without the property changed notifications.
ToString()Returns the text representation of the current object.
UpdateDefaultOptions(TextOptions)For internal use. Copies settings from the specified object to the current object.
VertAlignmentToStringAlignment(VertAlignment) staticObsolete. Converts the specified VertAlignment value to a corresponding StringAlignment value.

See Also

TextOptions Class

DevExpress.Utils Namespace