AppearanceObject.FontStyleDelta Property
Gets or sets an additional style to be applied to the font.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v18.2.dll
Declaration
[XtraSerializableProperty(99)]
[DXCategory("Font")]
public virtual FontStyle FontStyleDelta { get; set; }
Property Value
Type | Default | Description |
---|---|---|
FontStyle | **Regular** | A System.Drawing.FontStyle enumeration value that specifies a style by which to modify the font. |
Remarks
For controls that support the appearance customization, you can specify the font using the AppearanceObject.DefaultFont and AppearanceObject.Font properties. These properties specify the text format settings, including font face, size, and style attributes. The FontStyleDelta property allows you to modify the style of this font to specify a custom style in a specific scenario.
Since the System.Drawing.FontStyle enumeration allows a bitwise combination of its member values, the FontStyleDelta property does not override the font style, but specifies an additional style. For instance, if the font style is already set to Bold and the FontStyleDelta property is set to Underline, the result is underlined bold text.
To adjust the font size, use the AppearanceObject.FontSizeDelta property.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FontStyleDelta property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.