corelibraries-devexpress-dot-xtracharts-dot-heatmap-dot-heatmapaxis-b78c8118.md
Returns the collection of custom axis labels.
Namespace : DevExpress.XtraCharts.Heatmap
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[XtraChartsLocalizableCategory(XtraChartsCategory.Elements)]
public CustomAxisLabelCollection CustomLabels { get; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Elements)>
Public ReadOnly Property CustomLabels As CustomAxisLabelCollection
| Type | Description |
|---|---|
| CustomAxisLabelCollection |
The custom label collection.
|
You can display custom labels with default labels or in place of default labels. The adapter creates default labels based on cell arguments. Use the CustomLabels property to access an axis’s custom label collection. The following example displays a custom label on an x-axis:
heatmap.AxisX.CustomLabels.Add(new CustomAxisLabel {
AxisValue = "West",
Name = "Division: West",
BackColor = Color.LightGray });
heatmap.AxisX.LabelVisibilityMode = AxisLabelVisibilityMode.AutoGeneratedAndCustom;
heatmap.AxisX.CustomLabels.Add(New CustomAxisLabel With {
.AxisValue = "West",
.Name = "Division: West",
.BackColor = Color.LightGray
})
heatmap.AxisX.LabelVisibilityMode = AxisLabelVisibilityMode.AutoGeneratedAndCustom
See Also