The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

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.v19.2.Core.dll

Declaration

public interface DataLabelCollection :
    ISimpleCollection<DataLabel>,
    IEnumerable<DataLabel>,
    IEnumerable,
    ICollection,
    DataLabelOptions,
    DataLabelBase,
    ShapeFormat,
    ShapeFormatBase,
    ShapeTextFormat
Public Interface DataLabelCollection
    Inherits ISimpleCollection(Of DataLabel),
             IEnumerable(Of DataLabel),
             IEnumerable,
             ICollection,
             DataLabelOptions,
             DataLabelBase,
             ShapeFormat,
             ShapeFormatBase,
             ShapeTextFormat
public interface DataLabelCollection :
    ISimpleCollection<DataLabel>,
    IEnumerable<DataLabel>,
    IEnumerable,
    ICollection,
    DataLabelOptions,
    DataLabelBase,
    ShapeFormat,
    ShapeFormatBase,
    ShapeTextFormat
Public Interface DataLabelCollection
    Inherits ISimpleCollection(Of DataLabel),
             IEnumerable(Of DataLabel),
             IEnumerable,
             ICollection,
             DataLabelOptions,
             DataLabelBase,
             ShapeFormat,
             ShapeFormatBase,
             ShapeTextFormat
public interface DataLabelCollection :
    ISimpleCollection<DataLabel>,
    IEnumerable<DataLabel>,
    IEnumerable,
    ICollection,
    DataLabelOptions,
    DataLabelBase,
    ShapeFormat,
    ShapeFormatBase,
    ShapeTextFormat
Public Interface DataLabelCollection
    Inherits ISimpleCollection(Of DataLabel),
             IEnumerable(Of DataLabel),
             IEnumerable,
             ICollection,
             DataLabelOptions,
             DataLabelBase,
             ShapeFormat,
             ShapeFormatBase,
             ShapeTextFormat

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