com.aspose.slides
Class RowCollection

java.lang.Object
  extended by com.aspose.slides.RowCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IRow>, com.aspose.ms.System.Collections.IEnumerable<IRow>, IGenericCollection<IRow>, IRowCollection, java.lang.Iterable<IRow>

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


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(IRow[] array, int index)
           Copies all elements from the collection to the specified array.
 IRow get_Item(int index)
           Returns the row at the specified index.
 com.aspose.slides.IDOMObject getParent_Immediate()
           Returns Parent_Immediate object.
 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.Generic.IGenericEnumerator<IRow> iterator()
           Returns an enumerator that iterates through the collection.
 void removeAt(int firstRowIndex, boolean withAttachedRows)
           Removes a row at the specified position from a table.
 int size()
           Gets the number of rows actually contained in the collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getParent_Immediate

public com.aspose.slides.IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.


size

public int size()

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

Specified by:
size in interface IGenericCollection<IRow>

get_Item

public IRow get_Item(int index)

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

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.

iterator

public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IRow> iterator()

Returns an enumerator that iterates through the collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IRow>
Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<IRow>
Specified by:
iterator in interface java.lang.Iterable<IRow>
Returns:
A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.

copyTo

public void copyTo(IRow[] array,
                   int index)

Copies all elements from the collection to the specified array.

Specified by:
copyTo in interface IGenericCollection<IRow>
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). Read-only boolean.

Specified by:
isSynchronized in interface IGenericCollection<IRow>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Read-only Object.

Specified by:
getSyncRoot in interface IGenericCollection<IRow>


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.