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

NameTypeAccessDescription
iteratoriteratorReadGets the iterator.
const_iteratorconst_iteratorReadGets the const iterator.

Methods

SignatureDescription
iterator() → iteratorProperty provides access to the iterator type for the collection
iterator() → iterator
const_iterator() → const_iteratorReturns 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_tReturns the number of rows.
add(row: std::unique_ptr<Row>) → RowAdds 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

See Also

 English