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

MethodDescription
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:

ParameterTypeDescription
indexint

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:

ParameterTypeDescription
templIRowRow which is used as a template.
withAttachedRowsbooleanTrue 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:

ParameterTypeDescription
indexintIndex of a new row.
templIRowRow which is used as a template.
withAttachedRowsbooleanTrue 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:

ParameterTypeDescription
firstRowIndexintIndex of a row to delete.
withAttachedRowsbooleanTrue 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:

ParameterTypeDescription
arraycom.aspose.ms.System.ArrayTarget array.
indexintStarting 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