Skip to main content
All docs
V26.1
  • DataLabels Members

    Stores series data labels and their settings.

    Constructors

    Name Description
    DataLabels() Initializes a new instance of the DataLabels class.

    Properties

    Name Description
    Count Returns the number of items in the collection.
    Hidden Gets or sets whether to hide the data label. Inherited from DataLabelBase.
    Item[Int32] Gets or sets the data label for the data point at the specified index.
    Keys Returns collection keys.
    LeaderLineProperties Gets or sets appearance properties of connector lines.
    NumberFormat Gets or sets number format settings for data label values. Inherited from DataLabelBase.
    Properties Gets or sets appearance settings for the data label. Inherited from DataLabelBase.
    Separator Gets or sets a separator between displayed label parts. Inherited from DataLabelBase.
    ShowCategoryName Gets or sets whether to display the point category name. Inherited from DataLabelBase.
    ShowDataLabelRange Gets or sets whether to display data from a cell range in the data label. Inherited from DataLabelBase.
    ShowLeaderLines Gets or sets whether to display connector lines between data labels and their points.
    ShowLegendKey Gets or sets whether to display the legend key. Inherited from DataLabelBase.
    ShowSeriesText Gets or sets whether to display the series name in the data label. Inherited from DataLabelBase.
    ShowValue Gets or sets whether the point value is displayed in the data label. Inherited from DataLabelBase.
    TextProperties Gets or sets text formatting properties for the data label. Inherited from DataLabelBase.
    Values Returns collection values.

    Methods

    Name Description
    Add(KeyValuePair<Int32, DataLabel>) Adds a key/value pair to the data label collection.
    Add(Int32, DataLabel) Adds a data label with the specified key.
    Clear() Removes all data labels from the collection.
    Clone() Creates a copy of the current collection object.
    Contains(KeyValuePair<Int32, DataLabel>) Determines whether the collection contains the specified key/value pair.
    ContainsKey(Int32) Determines whether the collection contains a label for the specified key.
    CopyTo(KeyValuePair<Int32, DataLabel>[], Int32) Copies collection elements to an array, starting at the specified index.
    Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
    Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
    GetEnumerator() Returns an enumerator that iterates through the collection.
    GetHashCode() Serves as the default hash function. Inherited from Object.
    GetType() Gets the Type of the current instance. Inherited from Object.
    MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
    ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
    Remove(KeyValuePair<Int32, DataLabel>) Removes the specified key/value pair from the collection.
    Remove(Int32) Removes the data label with the specified key.
    ToString() Returns a string that represents the current object. Inherited from Object.
    TryGetValue(Int32, out DataLabel) Returns the value associated with the specified key.
    See Also