RowCollection
Vue de l’ensemble
‘RowCollection’ est une classe dans Aspose.Slides FOSS pour C++.
Représente une collection de lignes dans une table.
Cette classe fournit 21 méthodes pour travailler avec les objets RowCollection dans des programmes C++. Les méthodologies disponibles comprennent: ‘RowColection’, ‘add’ , ‘ad_clone’, as_i_collection', ‘as _i _enumerable, ‘begin,clear ; 'const_iterator; ’end : init_internal et 4 méthode supplémentaires. Tous les membres publics sont accessibles à toute application C ++ après l’installation de l’Aspose.Slides FOSS pour le package C+. Propriétés : ‘Const _iterateur`.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
iterator | iterator | Read | Gets the iterator. |
const_iterator | const_iterator | Read | Gets the const iterator. |
méthodes
| 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 |
Voir aussi
- Aspose.Slides - référence API d’entreprise