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

    Show / Hide Table of Contents

    ExcelRowColumnCollectionBase<T> Class

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

    Generic base class for row and column collections.

    • C#
    • VB.NET
    public abstract class ExcelRowColumnCollectionBase<T> : ExcelRowColumnCollectionBase, IEnumerable<T>, IEnumerable
    Public MustInherit Class ExcelRowColumnCollectionBase(Of T As ExcelColumnRowBase)
        Inherits ExcelRowColumnCollectionBase
        Implements IEnumerable(Of T), IEnumerable
    Type Parameters
    T

    Type of the items in the collection, either ExcelRow or ExcelColumn.

    Inheritance:
    System.Object
    ExcelRowColumnCellCollectionBase
    ExcelRowColumnCollectionBase
    ExcelRowColumnCollectionBase<T>
    Derived
    ExcelColumnCollection
    ExcelRowCollection
    Implements
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable

    Properties

    Count

    Gets the number of currently allocated elements (dynamically changes when worksheet is modified -- read remarks).

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

    Item[Int32]

    Gets the row / column with the specified index.

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

    The zero-based index of the row / column.

    Property Value
    T

    Item[String]

    Gets the row / column with the specified name.

    • C#
    • VB.NET
    public T this[string name] { get; }
    Public ReadOnly Property Item(name As String) As T
    Parameters
    name
    System.String

    The name of the row / column.

    Property Value
    T

    Methods

    GetEnumerator()

    Returns an enumerator that iterates through the collection.

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

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

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable

    Examples

    Referencing ExcelCell and CellRange in C# and VB.NET
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.