SlideCollection

SlideCollection

Overview

SlideCollection is a class in Aspose.Slides FOSS for .NET. Inherits from: ISlideCollection.

Represents a collection of slides in a presentation.

Properties

NameTypeAccessDescription
CountintRead
AsICollectionIList<ISlide>ReadExposes the slides as an IList collection
AsIEnumerableIEnumerable<ISlide>ReadExposes the slides as an IEnumerable sequence

Methods

SignatureDescription
AddClone(sourceSlide: ISlide)Adds a copy of the source slide to the given master slide, optionally cloning missing layout
AddClone(sourceSlide: ISlide, destLayout: ILayoutSlide)
AddClone(sourceSlide: ISlide, destMaster: IMasterSlide, allowCloneMissingLayout: bool)
InsertClone(index: int, sourceSlide: ISlide)Inserts a cloned slide at index into the specified master slide, with optional layout cloning
InsertClone(index: int, sourceSlide: ISlide, destLayout: ILayoutSlide)
InsertClone(index: int, sourceSlide: ISlide, destMaster: IMasterSlide, allowCloneMissingLayout: bool)
ToArray()Returns a sub‑array of slides starting at startIndex with count elements
ToArray(startIndex: int, count: int)
AddEmptySlide(layout: ILayoutSlide)
InsertEmptySlide(index: int, layout: ILayoutSlide)Inserts a new empty slide at index using the specified layout
Remove(value: ISlide)
RemoveAt(index: int)Removes the slide at the given zero‑based index
IndexOf(slide: ISlide)
GetEnumerator()Provides an enumerator to iterate over the slides

See Also