Back to Devexpress

HeatmapAxis.Label Property

corelibraries-devexpress-dot-xtracharts-dot-heatmap-dot-heatmapaxis-cc175ea7.md

latest2.1 KB
Original Source

HeatmapAxis.Label Property

Returns axis label settings.

Namespace : DevExpress.XtraCharts.Heatmap

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Elements)]
public AxisLabel2D Label { get; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Elements)>
Public ReadOnly Property Label As AxisLabel2D

Property Value

TypeDescription
AxisLabel2D

Contains axis label settings.

|

Remarks

Use an axis’s Label property to access heatmap axis label settings. The example below configures label alignment, rotation, format pattern, and border settings:

csharp
AxisLabel2D label = heatmap.AxisX.Label;
label.Alignment = AxisLabelAlignment.Near;
label.Angle = 30;
label.BackColor = Color.LightGray;
label.Border.Visibility = DevExpress.Utils.DefaultBoolean.True;
label.Border.Thickness = 1;
label.Border.Color = Color.Gray;
label.TextPattern = "Division: {X}";
vb
Dim label As AxisLabel2D = heatmap.AxisX.Label
label.Alignment = AxisLabelAlignment.Near
label.Angle = 30
label.BackColor = Color.LightGray
label.Border.Visibility = DevExpress.Utils.DefaultBoolean.True
label.Border.Thickness = 1
label.Border.Color = Color.Gray
label.TextPattern = "Division: {X}"

See Also

HeatmapAxis Class

HeatmapAxis Members

DevExpress.XtraCharts.Heatmap Namespace