public final class RowCollection extends DomObject<Table> implements IRowCollection
Represents table row collection.
| Modifier and Type | Method and Description |
|---|---|
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)
Returns the row 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.Generic.IGenericEnumerator<IRow> |
iterator()
Returns an enumerator that iterates through the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IRow> |
iteratorJava()
Returns a java iterator 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 rows actually contained in the collection.
|
getParent_Immediatepublic final int size()
Gets the number of rows actually contained in the collection.
Read-only int.
size in interface com.aspose.ms.System.Collections.ICollection<IRow>public final IRow get_Item(int index)
Returns the row at the specified index.
Read-only Row.
get_Item in interface IRowCollectionpublic final IRow[] addClone(IRow templ, boolean withAttachedRows)
Creates a copy of the specified template row and inserts it at the bottom of a table.
addClone in interface IRowCollectiontempl - Row which is used as a template.withAttachedRows - True to copy also all rows attached to the template row.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.
insertClone in interface IRowCollectionindex - 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.public final void removeAt(int firstRowIndex,
boolean withAttachedRows)
Removes a row at the specified position from a table.
removeAt in interface IRowCollectionfirstRowIndex - Index of a row to delete.withAttachedRows - True to delete also all attached rows.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IRow> iterator()
Returns an enumerator that iterates through the collection.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IRow>iterator in interface com.aspose.ms.System.Collections.IEnumerable<IRow>iterator in interface java.lang.Iterable<IRow>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IRow> iteratorJava()
Returns a java iterator for the entire collection.
iteratorJava in interface IGenericCollection<IRow>Iterator for the entire collection.public final void copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array.
copyTo in interface com.aspose.ms.System.Collections.ICollection<IRow>array - Target array.index - Starting index in the target array.public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean.
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<IRow>public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object.
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<IRow>Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.