Skip to main content
A newer version of this page is available. .

TextOptions Methods

Contains options that specify how text is rendered.
Name Description
Assign(TextOptions) Copies settings from the specified object to the current TextOptions object.
Equals(Object, Object) static Determines 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() static Specifies how the default string format referred to by the TextOptions.DefaultStringFormat property is constructed.
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.
GetType() Gets the Type of the current instance. Inherited from Object.
HorzAlignmentToStringAlignment(HorzAlignment) static Obsolete. Converts the specified HorzAlignment value to a corresponding StringAlignment value.
IsEqual(TextOptions) Tests whether two objects have the same property values.
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.
Reset() Resets all the text settings to their default values.
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) static Obsolete. Converts the specified VertAlignment value to a corresponding StringAlignment value.
See Also