GetEnumerator

Row.GetEnumerator method

Hämtar cellerna enumerator

public IEnumerator GetEnumerator()

Returvärde

Cellenumeratorn

Exempel

[C#]
Workbook workbook = new Workbook("template.xlsx");
Cells cells = workbook.Worksheets[0].Cells;

IEnumerator en = cells.Rows[1].GetEnumerator();
while (en.MoveNext())
{
    Cell cell = (Cell)en.Current;
    Console.WriteLine(cell.Name + ": " + cell.Value);
}

Se även