RowCollection

Inheritance: java.lang.Object, com.aspose.slides.DomObject

All Implemented Interfaces: com.aspose.slides.IRowCollection

public final class RowCollection extends DomObject<Table> implements IRowCollection

Represents table row collection.

Methods

Method Description
size() Gets the number of rows actually contained in the collection.
get_Item(int index) Returns the row at the specified index.
addClone(IRow templ, boolean withAttachedRows) Creates a copy of the specified template row and inserts it at the bottom of a table.
insertClone(int index, IRow templ, boolean withAttachedRows) Creates a copy of the specified template row and insert it at the specified position in a table.
removeAt(int firstRowIndex, boolean withAttachedRows) Removes a row at the specified position from a table.
iterator() Returns an enumerator that iterates through the collection.
iteratorJava() Returns a java iterator for the entire collection.
copyTo(System.Array array, int index) Copies all elements from the collection to the specified array.
isSynchronized() Returns a value indicating whether access to the collection is synchronized (thread-safe).
getSyncRoot() Returns a synchronization root.

size()

public final int size()

Gets the number of rows actually contained in the collection. Read-only int.

Returns: int

get_Item(int index)

public final IRow get_Item(int index)

Returns the row at the specified index. Read-only Row.

Parameters:

Parameter Type Description
index int

Returns: IRow

addClone(IRow templ, boolean withAttachedRows)

public final IRow[] addClone(IRow templ, boolean withAttachedRows)

Creates a copy of the specified template row and inserts it at the bottom of a table.

Parameters:

Parameter Type Description
templ IRow Row which is used as a template.
withAttachedRows boolean True to copy also all rows attached to the template row.

Returns: com.aspose.slides.IRow[] - Added rows.

insertClone(int index, IRow templ, boolean withAttachedRows)

public final IRow[] insertClone(int index, IRow templ, boolean withAttachedRows)

Creates a copy of the specified template row and insert it at the specified position in a table.

Parameters:

Parameter Type Description
index int Index of a new row.
templ IRow Row which is used as a template.
withAttachedRows boolean True to copy also all rows attached to the template row.

Returns: com.aspose.slides.IRow[] - Inserted rows.

removeAt(int firstRowIndex, boolean withAttachedRows)

public final void removeAt(int firstRowIndex, boolean withAttachedRows)

Removes a row at the specified position from a table.

Parameters:

Parameter Type Description
firstRowIndex int Index of a row to delete.
withAttachedRows boolean True to delete also all attached rows.

iterator()

public final System.Collections.Generic.IGenericEnumerator<IRow> iterator()

Returns an enumerator that iterates through the collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IRow> - A IGenericEnumerator that can be used to iterate through the collection.

iteratorJava()

public final System.Collections.Generic.IGenericEnumerator<IRow> iteratorJava()

Returns a java iterator for the entire collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IRow> - An java.util.Iterator for the entire collection.

copyTo(System.Array array, int index)

public final void copyTo(System.Array array, int index)

Copies all elements from the collection to the specified array.

Parameters:

Parameter Type Description
array com.aspose.ms.System.Array Target array.
index int Starting index in the target array.

isSynchronized()

public final boolean isSynchronized()

Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

Returns: boolean

getSyncRoot()

public final Object getSyncRoot()

Returns a synchronization root. Read-only Object.

Returns: java.lang.Object