GetEnumerator

Row.GetEnumerator method

获取单元格 enumerator

public IEnumerator GetEnumerator()

返回值

单元格枚举器

例子

[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);
}

也可以看看