---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/irowcollection
---

# IRowCollection

## Overview

`IRowCollection` is an interface in Aspose.Slides FOSS for Java.

Represents a collection of rows in a table.

This interface declares 7 methods for IRowCollection objects in Java programs.
Available methods include: `addClone`, `asICollection`, `asIEnumerable`, `get`, `insertClone`, `removeAt`, `size`.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.

## Methods

| Signature | Description |
|-----------|-------------|
| `get(index: int)` → `IRow` | Gets the row at the specified index. |
| `size()` → `int` | Returns the number of rows in the collection. |
| `addClone(templ: IRow, withAttachedRows: boolean)` → `IRow[]` | Adds a clone of the given row to the collection. |
| `insertClone(index: int, templ: IRow, withAttachedRows: boolean)` → `IRow[]` | Inserts a clone of the given row at the specified index. |
| `removeAt(firstRowIndex: int, withAttachedRows: boolean)` | Removes the row at the specified index. |
| `asICollection()` → `List<IRow>` | Returns the collection as a {@link List}. |
| `asIEnumerable()` → `Iterable<IRow>` | Returns the collection as an {@link Iterable}. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)