HeatmapTitle.Alignment Property
Gets or sets the title alignment.
Namespace: DevExpress.XtraCharts.Heatmap
Assembly: DevExpress.XtraCharts.v24.1.dll
NuGet Package: DevExpress.Charts
Declaration
[TypeConverter(typeof(StringAlignmentTypeConvertor))]
[XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
[XtraSerializableProperty]
public StringAlignment Alignment { get; set; }
Property Value
Type | Description |
---|---|
StringAlignment | A value that specifies how the title is aligned. |
Example
The following example adds a title to a heatmap, and configures title content, position, and font settings:
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