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

    Show / Hide Table of Contents

    CellRangeEnumerator Class

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

    Enumerator used for iterating cells in a CellRange.

    • C#
    • VB.NET
    public sealed class CellRangeEnumerator : IEnumerator<ExcelCell>, IDisposable, IEnumerator
    Public NotInheritable Class CellRangeEnumerator
        Implements IEnumerator(Of ExcelCell), IDisposable, IEnumerator
    Inheritance:
    System.Object
    CellRangeEnumerator
    Implements
    System.Collections.Generic.IEnumerator<ExcelCell>
    System.IDisposable
    System.Collections.IEnumerator

    Properties

    Current

    Gets the current ExcelCell in the cell range.

    • C#
    • VB.NET
    public ExcelCell Current { get; }
    Public ReadOnly Property Current As ExcelCell
    Property Value
    ExcelCell

    CurrentColumn

    Current absolute column index in the cell range.

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

    CurrentRow

    Current absolute row index in the cell range.

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

    Parent

    Parent CellRange.

    • C#
    • VB.NET
    public CellRange Parent { get; }
    Public ReadOnly Property Parent As CellRange
    Property Value
    CellRange

    Methods

    Dispose()

    Releases all resources used by the CellRangeEnumerator.

    • C#
    • VB.NET
    public void Dispose()
    Public Sub Dispose

    MoveNext()

    Advances the enumerator to the next element of the cell range.

    • C#
    • VB.NET
    public bool MoveNext()
    Public Function MoveNext As Boolean
    Returns
    System.Boolean

    true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the cell range.

    Reset()

    Sets the enumerator to its initial position, which is one column before the first cell in the cell range.

    • C#
    • VB.NET
    public void Reset()
    Public Sub Reset

    Implements

    System.Collections.Generic.IEnumerator<T>
    System.IDisposable
    System.Collections.IEnumerator
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.