windowsforms-devexpress-dot-utils-dot-appearanceobject-61675425.md
Gets or sets an additional style to be applied to the font.
Namespace : DevExpress.Utils
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
[XtraSerializableProperty(99)]
[DXCategory("Font")]
public virtual FontStyle FontStyleDelta { get; set; }
<XtraSerializableProperty(99)>
<DXCategory("Font")>
Public Overridable Property FontStyleDelta As FontStyle
| Type | Default | Description |
|---|---|---|
| FontStyle | Regular |
A System.Drawing.FontStyle enumeration value that specifies a style by which to modify the font.
|
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:
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.
bciTrackWindowsAppMode.SuperTip.Items.Add("This setting is available for WXI, Basic, and Bezier skins.");
bciTrackWindowsAppMode.SuperTip.Items[0].Appearance.FontStyleDelta = FontStyle.Bold;
SkinHelper.InitResetToOriginalPalette(bciOriginalPalette);
winforms-scheduler-country-specific-work-week-holidays/CS/Form1.cs#L125
if (cell.IsSpecial) {
cell.Appearance.FontStyleDelta = System.Drawing.FontStyle.Regular;
cell.Image = Image.FromFile("appointment_icon.png");
winforms-spreadsheet-custom-draw-example/CS/WindowsFormsApp1/Form1.cs#L192
// Specify font style.
e.Appearance.FontStyleDelta = FontStyle.Bold;
winforms-scheduler-country-specific-work-week-holidays/VB/Form1.vb#L114
If cell.IsSpecial Then
cell.Appearance.FontStyleDelta = System.Drawing.FontStyle.Regular
cell.Image = Image.FromFile("appointment_icon.png")
winforms-spreadsheet-custom-draw-example/VB/CustomDrawExample/Form1.vb#L84
' Specify font style.
e.Appearance.FontStyleDelta = FontStyle.Bold
See Also