windowsforms-devexpress-dot-utils-dot-appearanceobject-d95cea95.md
Provides access to text rendering options (horizontal and vertical alignment, word wrapping, trimming options, etc.).
Namespace : DevExpress.Utils
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
[Browsable(true)]
[XtraSerializableProperty(XtraSerializationVisibility.Content, XtraSerializationFlags.DefaultValue)]
[DXCategory("Font")]
public virtual TextOptions TextOptions { get; }
<Browsable(True)>
<XtraSerializableProperty(XtraSerializationVisibility.Content, XtraSerializationFlags.DefaultValue)>
<DXCategory("Font")>
Public Overridable ReadOnly Property TextOptions As TextOptions
| Type | Description |
|---|---|
| TextOptions |
A TextOptions object containing text options.
|
The object returned provides a set of Boolean properties specifying the current appearance object’s text settings (horizontal and vertical alignment, word wrapping, trimming options, etc.).
When an AppearanceObject’s style setting (for example, BackColor , ForeColor , Font and TextOptions.HAlignment ) is set to a non-default value, the corresponding Options.Use… option (for instance, Options.UseBackColor , Options.UseForeColor , Options.UseFont and Options.UseTextOptions ) is automatically set to true in the following cases:
In other cases, the Options.Use… options are not automatically enabled. You may need to enable these options manually for the style settings to be in effect.
See Also