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
| Signature | Description |
|---|---|
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) → ColumnCollection | Initializes this collection with the given XML elements and context. |
rebuild() | Rebuilds the column list from the XML grid elements. |
get(index: int) → IColumn | Returns the IColumn at the specified index |
size() → int | Returns 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 |
asIEnumerable() → Iterable<IColumn> | Returns the columns as an Iterable |
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) → Element | Creates an empty {@code <a:tc>} element with txBody and tcPr. |