Skip to main content

AppearanceObject.FontStyleDelta Property

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

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v23.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

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

The Font property returns a Font object that allows you to specify text format settings, such as font face, size, and style attributes. See Default Application Font for more information about fonts in DevExpress controls.

The Font.Size property specifies the font size. The FontSizeDelta property allows you to specify an integer value by which the specified font size is adjusted. Positive values increase the font size, while negative values decrease it.

Note

If the Font property is set to a custom font and you set the FontSizeDelta property in the designer, the font size is adjusted as follows:

  • when you initially set the delta value in the designer, the Size and FontSizeDelta are set to their respective values and the actual font size corresponds to the sum of these values.
  • if you re-open the designer, the Size property is set to the sum of the previously specified font size and delta value, and the FontSizeDelta property is nullified (i.e., the property is not serialized if you use a custom font).
  • the font size is adjusted by the delta value each time you modify any attribute (property) of the Font object.

The Font.Style property gets or sets a FontStyle enumeration value that specifies style attributes (bold, italic, etc.). The FontStyleDelta property specifies an additional style attribute applied to the font. 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.

The following code snippets (auto-collected from DevExpress Examples) contain references 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.

See Also