Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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.

See Also