RowCollection
Overview
RowCollection is a class in Aspose.Slides FOSS for C++.
Represents collection of rows in a table.
This class provides 21 methods for working with RowCollection objects in C++ programs.
Available methods include: RowCollection, add, add_clone, as_i_collection, as_i_enumerable, begin, clear, const_iterator, end, init_internal, insert_clone, iterator, and 4 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 access to the iterator type for the collection |
iterator() → iterator | |
const_iterator() → const_iterator | Returns a const iterator to the beginning of the row collection |
const_iterator() → const_iterator | |
RowCollection() | |
~RowCollection() | |
init_internal(tbl_element: pugi::xml_node, save_callback: std::function<void()>, slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide, table: Table) | Initialize the collection from a XML element. Parses all children and creates corresponding Row objects. |
rebuild() | Rebuild the rows list from the stored XML element. Clears existing rows and re-parses all children. |
size() → std::size_t | Returns the number of rows. |
add(row: std::unique_ptr<Row>) → Row | Adds a row to the collection. |
add_clone(templ: Row, with_attached_rows: bool) → std::vector<Row*> | Clones the given template row and appends it to the end. |
insert_clone(index: std::size_t, templ: Row, with_attached_rows: bool) → std::vector<Row*> | Clones the given template row and inserts it at the specified index. |
remove_at(first_row_index: std::size_t, with_attached_rows: bool) | Removes the row at the given index. |
remove_at(index: std::size_t) | Removes the row at the given index. |
clear() | Removes all rows. |
as_i_collection() → std::vector<Row*> | Returns a snapshot of the rows as raw pointers. |
as_i_enumerable() → std::vector<Row*> | Returns a snapshot of the rows as raw pointers (same as as_i_collection). |
begin() → iterator | |
end() → iterator | |
begin() → const_iterator | |
end() → const_iterator |