AppearanceObject.FontSizeDelta Property

Gets or sets an integer value by which the font size is adjusted.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v21.1.dll


public virtual int FontSizeDelta { get; set; }

Property Value

Type Default Description


An integer value by which the font size is adjusted.


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.


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.

See Also