ColumnCollection
Overview
ColumnCollection is a class in Aspose.Slides FOSS for C++.
Represents collection of columns in a table.
This class provides 19 methods for working with ColumnCollection objects in C++ programs.
Available methods include: ColumnCollection, add, add_clone, as_i_collection, as_i_enumerable, begin, clear, const_iterator, end, insert_clone, iterator, remove_at, and 2 additional methods.
All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Properties: const_iterator, iterator.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
iterator | iterator | Read | Gets the iterator. |
const_iterator | const_iterator | Read | Gets the const iterator. |
Methods
| Signature | Description |
|---|---|
iterator() → iterator | Property provides an iterator to the first column in the collection |
iterator() → iterator | |
const_iterator() → const_iterator | Property provides a const iterator to the first column for read‑only access |
const_iterator() → const_iterator | |
ColumnCollection() | |
~ColumnCollection() | |
size() → std::size_t | Returns the number of columns. |
add(col: std::unique_ptr<Column>) → Column | Adds a column to the collection. |
add_clone(templ: Column, with_attached_columns: bool) → std::vector<Column*> | Clones the given template column and appends it to the end. |
insert_clone(index: std::size_t, templ: Column, with_attached_columns: bool) → std::vector<Column*> | Clones the given template column and inserts it at the specified index. |
remove_at(first_column_index: std::size_t, with_attached_rows: bool) | Removes the column at the given index. |
remove_at(index: std::size_t) | Removes the column at the given index. |
clear() | Removes all columns. |
as_i_collection() → std::vector<Column*> | Returns a snapshot of the columns as raw pointers. |
as_i_enumerable() → std::vector<Column*> | Returns a snapshot of the columns as raw pointers (same as as_i_collection). |
begin() → iterator | |
end() → iterator | |
begin() → const_iterator | |
end() → const_iterator |