ColumnCollection
Overview
ColumnCollection is a class in Aspose.Slides FOSS for .NET.
Inherits from: IColumnCollection, IEnumerable<IColumn>.
Represents a collection of columns in a table. Maintains synchronization between the tblGrid column definitions and per-row cell elements in the XML tree.
This class provides 4 methods for working with ColumnCollection objects in .NET programs.
Available methods include: AddClone, GetEnumerator, InsertClone, RemoveAt.
All exported members are accessible to any .NET application after installing the Aspose.Slides FOSS for .NET package.
Properties: AsICollection, AsIEnumerable, Count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the count. |
AsICollection | IList<IColumn> | Read | Gets the as i collection. |
AsIEnumerable | IEnumerable<IColumn> | Read | Gets the as i enumerable. |
Methods
| Signature | Description |
|---|---|
AddClone(templ: IColumn, withAttachedColumns: bool) | Adds a clone of the given IColumn, optionally copying attached columns |
InsertClone(index: int, templ: IColumn, withAttachedColumns: bool) | Inserts a cloned IColumn at the specified index, optionally copying attached columns |
RemoveAt(index: int, withAttachedRows: bool) | Removes the column at the given index, optionally also removing attached rows |
GetEnumerator() | Returns an enumerator to iterate over the columns |