DataLabelCollection

DataLabelCollection class

Represents a series labels.

public class DataLabelCollection : DomObject<ChartSeries>, IDataLabelCollection

Properties

Name Description
Chart { get; } Returns the parent chart. Read-only IChart.
Count { get; } Gets the number of all data labels in the collection. Read-only Int32.
CountOfVisibleDataLabels { get; } Gets the number of visible data labels in the collection. Read-only Int32.
DefaultDataLabelFormat { get; } Gets the default data label format. Read-only IDataLabelFormat.
IsVisible { get; } False means that data label is not visible by default (and so all Show*-flags (ShowValue, …) of the DefaultDataLabelFormat property are false). Read-only Boolean.
Item { get; } Gets the data label for the data point with the specified index.
LeaderLinesColor { get; set; } Gets or sets the color of all leader lines in the collection. Read/write Color.
ParentSeries { get; } Gets the parent series. Read-only IChartSeries.

Methods

Name Description
GetEnumerator() Returns an enumerator that iterates through the collection.
Hide() Make data label hidden by default by setting all Show*-flags (ShowValue, …) of the DefaultDataLabelFormat property to false state. IsVisible will be false after this.
IndexOf(IDataLabel) Returns an index of the specified DataLabel in the collection.

See Also