GemBox.Spreadsheet
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    DataPointCollection Class

    Namespace:
    GemBox.Spreadsheet.Charts
    Assembly:
    GemBox.Spreadsheet.dll

    Represents a collection of chart series data points.

    • C#
    • VB.NET
    public sealed class DataPointCollection : IEnumerable<DataPoint>, IEnumerable
    Public NotInheritable Class DataPointCollection
        Implements IEnumerable(Of DataPoint), IEnumerable
    Inheritance:
    System.Object
    DataPointCollection
    Implements
    System.Collections.Generic.IEnumerable<DataPoint>
    System.Collections.IEnumerable

    Properties

    Count

    Gets the number of elements contained in the DataPointCollection.

    • C#
    • VB.NET
    public int Count { get; }
    Public ReadOnly Property Count As Integer
    Property Value
    System.Int32

    The number of elements contained in the DataPointCollection.

    Remarks

    Retrieving the value of this property is expensive, so cache it instead of retrieving it multiple times.

    Item[Int32]

    Gets the data point at the specified index.

    • C#
    • VB.NET
    public DataPoint this[int index] { get; }
    Public ReadOnly Property Item(index As Integer) As DataPoint
    Parameters
    index
    System.Int32

    The zero-based index of the data point to get.

    Property Value
    DataPoint

    The data point at the specified index.

    Remarks

    If you are iteratively indexing all data points, it is preferable to use the DataPointCollection enumerator in a langword_csharp_foreach statement instead because each indexer call validates the index by using the Count property whose retrieval is expensive.

    Methods

    GetEnumerator()

    Returns an enumerator that iterates through data points.

    • C#
    • VB.NET
    public IEnumerator<DataPoint> GetEnumerator()
    Public Function GetEnumerator As IEnumerator(Of DataPoint)
    Returns
    System.Collections.Generic.IEnumerator<DataPoint>

    An System.Collections.Generic.IEnumerator<T> that can be used to iterate through data points.

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.