ColumnCollection

ColumnCollection

Overview

ColumnCollection is a class in Aspose.Slides FOSS for Java. Inherits from: IColumnCollection, Iterable<IColumn>.

Represents collection of columns in a table.

Methods

SignatureDescription
ColumnCollection(tblElement: Element, tblGridElement: Element, saveCallback: Runnable)Creates a new ColumnCollection backed by XML elements.
ColumnCollection(columns: List<IColumn>)Creates a new ColumnCollection with the given columns (no XML backing).
ColumnCollection()Creates an empty ColumnCollection (no XML backing).
initInternal(tblElement: Element, tblGridElement: Element, saveCallback: Runnable)ColumnCollectionInitializes this collection with the given XML elements and context.
rebuild()Rebuilds the column list from the XML grid elements.
get(index: int)IColumnReturns the IColumn at the specified index
size()intReturns the number of columns in the collection
addClone(templ: IColumn, withAttachedColumns: boolean)List<IColumn>Creates clones of the template column, optionally with attached columns, and returns them
insertClone(index: int, templ: IColumn, withAttachedColumns: boolean)List<IColumn>Inserts cloned columns at the given index, optionally with attached columns, and returns them
removeAt(firstColumnIndex: int, withAttachedRows: boolean)Removes columns starting at the specified index, optionally also removing attached rows
asICollection()List<IColumn>Returns the columns as a List collection
asIEnumerable()Iterable<IColumn>Returns the columns as an Iterable sequence
asList()List<IColumn>Returns an unmodifiable view of the internal column list.
iterator()Iterator<IColumn>Returns an iterator over the IColumn elements in the collection
makeEmptyTc(doc: Document)ElementCreates an empty {@code <a:tc>} element with txBody and tcPr.

See Also