aspose.cells

Class RowCollection

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

Property Getters/Setters Summary
functiongetCount()
Gets the number of rows in this collection.
functionget(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
functionclear()
Clear all rows and cells.
functiongetRowByIndex(index)
Gets the row object by the position in the list.
functioniterator()
Gets an enumerator that iterates rows through this collection
functionremoveAt(index)
Remove the row item at the specified index(position) in this collection.
 

    • Property Getters/Setters Detail

      • getCount : Number 

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

        function 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

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

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

        function clear()
        Clear all rows and cells.
      • removeAt

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