DataLabelCollection Interface
A collection that stores customized data labels and data label options for a series in the chart.
Namespace: DevExpress.Spreadsheet.Charts
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
public interface DataLabelCollection :
ISimpleCollection<DataLabel>,
IEnumerable<DataLabel>,
IEnumerable,
ICollection,
DataLabelOptions,
DataLabelBase,
ShapeFormat,
ShapeFormatBase,
ShapeTextFormat
Related API Members
The following members return DataLabelCollection objects:
Remarks
Data label options for all series in the chart view are defined by the ChartView.DataLabels property.
The DataLabelCollection object is used to change the appearance of data labels of a particular series or for specific data points in the series. Use the Series.CustomDataLabels property to get access to the DataLabelCollection object . Use properties and methods of the DataLabelCollection object to specify options applied to all data points in the series.
To specify data label options for a specific data point, add an item to the DataLabelCollection at the index that is equal to the index of the selected data point, using the DataLabelCollection.Add method. The DataLabel object obtained allows you to change properties of the data label associated with the selected data point.