A newer version of this page is available. Switch to the current version.

AppearanceObject.FontStyleDelta Property

Gets or sets an additional style to be applied to the font.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v19.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.

See Also