RowCollection

Overview

RowCollection is a class in Aspose.Slides FOSS for Java. Inherits from: IRowCollection, Iterable<IRow>.

Represents a collection of rows in a table.

Methods

SignatureDescription
RowCollection()Creates an empty RowCollection with no XML backing.
RowCollection(rows: List<IRow>)Creates a RowCollection with the given initial rows (no XML backing).
RowCollection(tblElement: Element, saveCallback: Runnable)Creates a new RowCollection backed by an XML {@code <a:tbl>} element.
initInternal(tblElement: Element, saveCallback: Runnable)RowCollectionInitializes this collection with the given XML element and save callback.
rebuild()Rebuilds the row list from the XML {@code <a:tr>} child elements.
get(index: int)IRowReturns the IRow at the specified index
size()int
addClone(templ: IRow, withAttachedRows: boolean)IRow[]Creates clones of a template row (optionally with attached rows) and returns them
insertClone(index: int, templ: IRow, withAttachedRows: boolean)IRow[]Inserts cloned rows at the given index and returns the new rows
removeAt(firstRowIndex: int, withAttachedRows: boolean)Removes rows starting at the given index, optionally also removing attached rows
asICollection()List<IRow>Returns the rows as a List
asIEnumerable()Iterable<IRow>
iterator()Iterator<IRow>Returns an iterator over the IRow elements

See Also