Skip to main content
A newer version of this page is available. .
All docs
V21.2

HeatmapTitleBase.Text Property

Gets or sets the title text.

Namespace: DevExpress.XtraCharts.Heatmap

Assembly: DevExpress.XtraCharts.v21.2.dll

NuGet Package: DevExpress.Charts

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
public string Text { get; set; }

Property Value

Type Description
String

A string value that specifies the title text.

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 System.Drawing;
//...
    public Form1() {
        InitializeComponent();
        //...
        heatmap.Titles.Add(new HeatmapTitle { 
            Text = "Sales by Categories",
            Alignment = StringAlignment.Far,
            Dock = HeatmapTitleDockStyle.Bottom,
            EnableAntialiasing = DefaultBoolean.True,
            Font = new Font("SegoeUI",12),
            Indent = 30,
            TextColor = Color.DarkBlue
        });
    }
See Also