SlideCollection

General

SlideCollection és una classe en Aspose.Slides FOSS per a C++.

Gestiona la col·lecció de diapositives en una presentació.

Propietats

NameTypeAccessDescription
SlideCollectionSlideCollectionReadConstructs a slide collection for the given presentation
iteratoriteratorReadProperty exposes the iterator type associated with the collection
const_iteratorconst_iteratorReadReturns a const iterator for read‑only traversal of slides

Mètodes

SignatureDescription
SlideCollection()SlideCollectionConstructs a slide collection for the given presentation.
iterator()iteratorProperty exposes the iterator type associated with the collection
iterator()iterator
const_iterator()const_iteratorReturns a const iterator for read‑only traversal of slides
const_iterator()const_iterator
size()std::size_tReturns the number of slides.
to_array()std::vector<Slide*>Returns all slides as a vector of non-owning pointers.
to_array(start_index: std::size_t, count: std::size_t)std::vector<Slide*>Returns all slides as a vector of non-owning pointers.
remove(slide: Slide)Removes the given slide from the collection.
remove_at(index: std::size_t)Removes the slide at the given index.
index_of(slide: Slide)std::ptrdiff_tReturns the zero-based index of a slide, or -1 if not found.
init_internal(presentation: Presentation, package: Internal::opc::OpcPackage, presentation_part_name: std::string_view, slide_references: std::vector<SlideReference>, layout_resolver: LayoutResolver)Internal initialization for OPC-based loading. Replaces the default slide list with slides resolved from the package.
get_next_slide_file_number()intFind the next available slide file number in the package.
find_matching_layout(source_slide: Slide, dest_master: IMasterSlide, allow_clone: bool)std::optional<std::string>Find a matching layout in the destination master for the source slide.
find_layout_by_type(source_layout: ILayoutSlide)std::optional<std::string>Find a layout in the destination presentation matching the source layout type.
find_layout_from_layout_slides(source_layout: ILayoutSlide)std::optional<std::string>Find matching layout by name using layout_slides.
get_first_layout_part_name()std::optional<std::string>Get the first available layout part name in the destination presentation.
clone_master_chain_for_slide(source_slide: Slide, source_layout: ILayoutSlide)std::optional<std::string>Clone the master slide chain for a slide being cloned from another presentation.
 Català