com.aspose.cells

Class RowCollection

  • java.lang.Object
    • com.aspose.cells.RowCollection
  • All Implemented Interfaces:
    java.lang.Iterable
    public class RowCollection 
    extends java.lang.Object

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

Property Getters/Setters Summary
intgetCount()
Gets the number of rows in this collection.
Rowget(int rowIndex)
Gets a object by given row index. The Row object of given row index will be instantiated if it does not exist before.
 
Method Summary
voidclear()
Clear all rows and cells.
RowgetRowByIndex(int index)
Gets the row object by the position in the list.
java.util.Iteratoriterator()
Gets an enumerator that iterates through this collection
voidremoveAt(int index)
Remove the row at the specified index
 

    • Property Getters/Setters Detail

      • getCount

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

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

      • iterator

        public java.util.Iterator iterator()
        Gets an enumerator that iterates through this collection
        Returns:
        enumerator
      • getRowByIndex

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

        public void clear()
        Clear all rows and cells.
      • removeAt

        public void removeAt(int index)
        Remove the row at the specified index
        Parameters:
        index - zero-based row index