Back to Devexpress

HeatmapAxis.LabelVisibilityMode Property

corelibraries-devexpress-dot-xtracharts-dot-heatmap-dot-heatmapaxis-585b0c73.md

latest2.7 KB
Original Source

HeatmapAxis.LabelVisibilityMode Property

Specifies whether to display custom labels with default labels or in place of default labels.

Namespace : DevExpress.XtraCharts.Heatmap

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Elements)]
public AxisLabelVisibilityMode LabelVisibilityMode { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Elements)>
Public Property LabelVisibilityMode As AxisLabelVisibilityMode

Property Value

TypeDescription
AxisLabelVisibilityMode

The value that specifies the visibility of axis labels.

|

Available values:

NameDescription
Default

If an axis has custom labels, then automatically generated labels are not displayed.

| | AutoGeneratedAndCustom |

An axis displays custom and automatically generated axis labels together.

|

Remarks

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:

csharp
heatmap.AxisX.CustomLabels.Add(new CustomAxisLabel { 
    AxisValue = "West", 
    Name = "Division: West", 
    BackColor = Color.LightGray });
heatmap.AxisX.LabelVisibilityMode = AxisLabelVisibilityMode.AutoGeneratedAndCustom;
vb
heatmap.AxisX.CustomLabels.Add(New CustomAxisLabel With {
    .AxisValue = "West",
    .Name = "Division: West",
    .BackColor = Color.LightGray
})
heatmap.AxisX.LabelVisibilityMode = AxisLabelVisibilityMode.AutoGeneratedAndCustom

See Also

HeatmapAxis Class

HeatmapAxis Members

DevExpress.XtraCharts.Heatmap Namespace