SlideCollection

SlideCollection

Overview

SlideCollection is a class in Aspose.Slides FOSS for C++.

Manages the collection of slides in a presentation.

Properties

NameTypeAccessDescription
SlideCollectionSlideCollectionReadConstructs a new slide collection for a presentation
iteratoriteratorReadReturns an iterator to the beginning of the slide collection
const_iteratorconst_iteratorReadProperty gives a const iterator to the slide collection

Methods

SignatureDescription
SlideCollection()SlideCollectionConstructs a slide collection for the given presentation.
iterator()iteratorReturns an iterator to the beginning of the slide collection
iterator()iterator
const_iterator()const_iteratorProperty gives a const iterator to the slide collection
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.

See Also