com.aspose.slides
Class RowCollection

java.lang.Object
  extended by com.aspose.slides.RowCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection, com.aspose.ms.System.Collections.IEnumerable, IRowCollection, java.lang.Iterable

public final class RowCollection
extends java.lang.Object
implements IRowCollection

Represents a collection of rows.


Method Summary
 IRow[] addClone(IRow templ, boolean withAttachedRows)
           Creates a copy of the specified template row and inserts it at the bottom of a table.
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection to the specified array.
 IRow get_Item(int index)
           Gets the element at the specified index.
 java.lang.Object getSyncRoot()
           Returns a synchronization root.
 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.
 boolean isSynchronized()
           Returns a value indicating whether access to the collection is synchronized (thread-safe).
 com.aspose.ms.System.Collections.IEnumerator iterator()
           Returns an enumerator for the entire collection.
 void removeAt(int firstRowIndex, boolean withAttachedRows)
           Removes a row at the specified position from a table.
 int size()
           Gets the number of elements actually contained in the collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get_Item

public IRow get_Item(int index)

Gets the element at the specified index.

Specified by:
get_Item in interface IRowCollection

addClone

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

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

Specified by:
addClone in interface IRowCollection
Parameters:
templ - Row which is used as a template.
withAttachedRows - True to copy also all rows attached to the template row.
Returns:
Added rows.

insertClone

public 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.

Specified by:
insertClone in interface IRowCollection
Parameters:
index - Index of a new row.
templ - Row which is used as a template.
withAttachedRows - True to copy also all rows attached to the template row.
Returns:
Inserted rows.

removeAt

public void removeAt(int firstRowIndex,
                     boolean withAttachedRows)

Removes a row at the specified position from a table.

Specified by:
removeAt in interface IRowCollection
Parameters:
firstRowIndex - Index of a row to delete.
withAttachedRows - True to delete also all attached rows.

size

public int size()

Gets the number of elements actually contained in the collection.

Specified by:
size in interface com.aspose.ms.System.Collections.ICollection

iterator

public com.aspose.ms.System.Collections.IEnumerator iterator()

Returns an enumerator for the entire collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable
Specified by:
iterator in interface java.lang.Iterable
Returns:
An IEnumerator for the entire collection.

copyTo

public void copyTo(com.aspose.ms.System.Array array,
                   int index)

Copies all elements from the collection to the specified array.

Specified by:
copyTo in interface com.aspose.ms.System.Collections.ICollection
Parameters:
array - Target array.
index - Starting index in the target array.

isSynchronized

public boolean isSynchronized()

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

Specified by:
isSynchronized in interface com.aspose.ms.System.Collections.ICollection

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

Specified by:
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection