Skip to main content
All docs
V23.2

HeatmapTitleBase.DXFont Property

Gets or sets the heatmap title font.

Namespace: DevExpress.XtraCharts.Heatmap

Assembly: DevExpress.XtraCharts.v23.2.dll

NuGet Package: DevExpress.Charts

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public DXFont DXFont { get; set; }

Property Value

Type Description
DXFont

The title font.

Remarks

Important

Use this property instead of Font to specify the heatmap title font.

Example

The following example adds a title to a heatmap, and configures title content, position, and font settings:

Heatmap title

using DevExpress.XtraCharts.Heatmap;
using DevExpress.Drawing;
using DevExpress.Utils;
using System.Drawing;
//...
    public Form1() {
        InitializeComponent();
        //...
        heatmap.Titles.Add(new HeatmapTitle { 
            Text = "Sales by Categories",
            Alignment = StringAlignment.Far,
            Dock = HeatmapTitleDockStyle.Bottom,
            EnableAntialiasing = DefaultBoolean.True,
            DXFont = new DXFont("SegoeUI",12),
            Indent = 30,
            TextColor = Color.DarkBlueTitleBase
        });
    }
See Also