asposecells.api

Class RowCollection

Collects the Row objects that represent the individual rows in a worksheet.

Property Getters/Setters Summary
methodgetCount()
Gets the number of rows in this collection.
methodget(rowIndex)
Gets a Row object by given row index. The Row object of given row index will be instantiated if it does not exist before.
 
Method Summary
methodclear()
Clear all rows and cells.
methodgetRowByIndex(index)
Gets the row object by the position in the list.
methoditerator()
Gets an enumerator that iterates rows through this collection
methodremoveAt(index)
Remove the row item at the specified index(position) in this collection.
 

    • Property Getters/Setters Detail

      • getCount : int 

        int getCount()
        
        Gets the number of rows in this collection.
      • get : Row 

        Row get(rowIndex)
        
        Gets a Row object by given row index. The Row object of given row index will be instantiated if it does not exist before.
    • Method Detail

      • iterator

        Iterator iterator()
        Gets an enumerator that iterates rows through this collection
        Returns:
        enumerator
      • getRowByIndex

        Row getRowByIndex(index)
        Gets the row object by the position in the list.
        Parameters:
        index: int - The position.
        Returns:
        The Row object at given position.
      • clear

         clear()
        Clear all rows and cells.
      • removeAt

         removeAt(index)
        Remove the row item at the specified index(position) in this collection.
        Parameters:
        index: int - zero-based index(position, not Row.Index) of the existing row item in this collection.