IRowsEnumerator module

class IRowsEnumerator.IRowsEnumerator

Bases: ABC

Interface for enumerating rows in a table.

abstract property ColumnNames: List[str]

Get the names of all columns in the table. :returns: The names of the columns. :rtype: List[str]

abstract property CurrentRowIndex: int

Get the index of the current row. :returns: The index of the current row. :rtype: int

abstract GetCellValue(columnName: str) SpireObject

Get the value of a cell in the current row. :param columnName: The name of the column. :type columnName: str

Returns:

The value of the cell.

Return type:

SpireObject

abstract property IsEnd: bool

Check if the enumerator has reached the end of the table. :returns: True if the end is reached, False otherwise. :rtype: bool

abstract property IsLast: bool

Check if the current row is the last row in the table. :returns: True if it is the last row, False otherwise. :rtype: bool

abstract NextRow() bool

Move to the next row. :returns: True if there is a next row, False otherwise. :rtype: bool

abstract Reset()

Reset the enumerator to the beginning.

abstract property RowsCount: int

Get the total number of rows in the table. :returns: The number of rows. :rtype: int

abstract property TableName: str

Get the name of the table. :returns: The name of the table. :rtype: str