Skip to main content

PointLabelOptions.ContentType Property

Gets or sets the type of content displayed within series point labels.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v24.1.Core.dll

NuGet Package: DevExpress.Dashboard.Core

Declaration

[DefaultValue(PointLabelContentTypeEx.None)]
public PointLabelContentTypeEx ContentType { get; set; }

Property Value

Type Default Description
PointLabelContentTypeEx None

A PointLabelContentTypeEx enumeration value that specifies the type of content displayed within series point labels.

Property Paths

You can access this nested property as listed below:

Object Type Path to ContentType
ChartSeries
.PointLabelOptions .ContentType

Remarks

Note that the PointLabelContentTypeEx is a flags enumeration. This means that you can combine several values to display them within point labels. For instance, specify the ContentType property in the following way to display arguments and corresponding values within point labels for a newly created series:

using DevExpress.DashboardCommon;
// ...
SimpleSeries salesSeries = new SimpleSeries(SimpleSeriesType.Bar);
salesSeries.Value = new Measure("Sales");
salesSeries.PointLabelOptions.ContentType = PointLabelContentTypeEx.Argument | PointLabelContentTypeEx.Value;
See Also