MasterSlideCollection
Vue de l’ensemble
‘MasterSlideCollection’ est une classe dans Aspose.Sliides FOSS pour C++.
Gère la collection de diapositives maîtresses dans une présentation.
Cette classe fournit 21 méthodes pour travailler avec les objets MasterSlideCollection dans des programmes C++. Les méthodologies disponibles comprennent: MasterSLide Collection, add_clone , as_i_collection‘, 'as _i _enumerable,, begin ; clon_layout_part; cloon _master_partie : const_iterator: ’end،get_max_master _lyout _id_in_presentation. get_next_laayouts_file_number` et 4 méthode supplémentaires. Tous les membres publics sont accessibles à n’importe quelle application C ++ après l’installation de la version Aspose.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
MasterSlideCollection | MasterSlideCollection | Read | Gets the master slide collection. |
iterator | iterator | Read | Gets the iterator. |
const_iterator | const_iterator | Read | Gets the const iterator. |
méthodes
| Signature | Description |
|---|---|
MasterSlideCollection() → MasterSlideCollection | Constructs the collection with a back-reference to the owning presentation. |
iterator() → iterator | Property gives the mutable iterator type for the collection |
iterator() → iterator | |
const_iterator() → const_iterator | Property gives the read‑only iterator type for the collection |
const_iterator() → const_iterator | |
MasterSlideCollection() | Constructs the collection with a back-reference to the owning presentation. |
as_i_collection() → IMasterSlideCollection | Returns this collection as a generic collection interface. |
as_i_enumerable() → IMasterSlideCollection | Returns this collection as a generic enumerable interface. |
size() → std::size_t | Returns the number of master slides. |
add_clone(source_master: IMasterSlide) → MasterSlide | Adds a clone of the given source master slide to the collection. Clones shapes and layout slides from the source. |
begin() → iterator | |
end() → iterator | |
begin() → const_iterator | |
end() → const_iterator | |
init_internal(presentation: Presentation, package: Internal::opc::OpcPackage, presentation_part_name: std::string_view, master_references: std::vector<MasterReference>, master_slides: std::vector<std::unique_ptr<MasterSlide>>) | Internal initialization for OPC-based loading. |
get_next_master_file_number() → int | Find the next available master slide file number in the package. |
get_next_layout_file_number() → int | Find the next available layout slide file number in the package. |
clone_master_part(source_package: Internal::opc::OpcPackage, source_part_name: std::string_view, dest_package: Internal::opc::OpcPackage, dest_part_name: std::string_view) → std::unordered_map<std::string, std::string> | Clone a master slide part and its related resources (except layouts). |
clone_layout_part(source_package: Internal::opc::OpcPackage, source_part_name: std::string_view, dest_package: Internal::opc::OpcPackage, dest_part_name: std::string_view, dest_master_part_name: std::string_view) | Clone a layout slide part and point it to the specified master. |
get_max_master_layout_id_in_presentation() → int64_t | Find the maximum ID across all master slide IDs and layout IDs. In PPTX, sldMasterIdLst and sldLayoutIdLst share the same ID space. |
update_master_layout_relationships(source_package: Internal::opc::OpcPackage, source_master_part_name: std::string_view, dest_master_part_name: std::string_view, layout_mapping: std::unordered_map<std::string, std::string>, source_layout_rids: std::unordered_map<std::string, std::string>) | Update master’s relationships and XML to point to cloned layouts. |
Voir aussi
- Aspose.Slides - référence API d’entreprise