SlideCollection
Overview
SlideCollection is a class in Aspose.Slides FOSS for .NET.
Inherits from: ISlideCollection.
Represents a collection of slides in a presentation.
This class provides 14 methods for working with SlideCollection objects in .NET programs.
Available methods include: AddClone, AddEmptySlide, GetEnumerator, IndexOf, InsertClone, InsertEmptySlide, Remove, RemoveAt, ToArray.
All public members are accessible to any .NET application after installing the Aspose.Slides FOSS for .NET package.
Properties: AsICollection, AsIEnumerable, Count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the count. |
AsICollection | IList<ISlide> | Read | Gets the as i collection. |
AsIEnumerable | IEnumerable<ISlide> | Read | Gets the as i enumerable. |
Methods
| Signature | Description |
|---|---|
AddClone(sourceSlide: ISlide) | Adds a copy of the source slide to the given master slide, optionally cloning missing layout |
AddClone(sourceSlide: ISlide, destLayout: ILayoutSlide) | Calls AddClone(sourceSlide, destLayout) on this SlideCollection instance. |
AddClone(sourceSlide: ISlide, destMaster: IMasterSlide, allowCloneMissingLayout: bool) | Calls AddClone(sourceSlide, destMaster, allowCloneMissingLayout) on this SlideCollection instance. |
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) | Calls InsertClone(index, sourceSlide, destLayout) on this SlideCollection instance. |
InsertClone(index: int, sourceSlide: ISlide, destMaster: IMasterSlide, allowCloneMissingLayout: bool) | Calls InsertClone(index, sourceSlide, destMaster, allowCloneMissingLayout) on this SlideCollection instance. |
ToArray() | Returns a sub‑array of slides starting at startIndex with count elements |
ToArray(startIndex: int, count: int) | Calls ToArray(startIndex, count) on this SlideCollection instance. |
AddEmptySlide(layout: ILayoutSlide) | Calls AddEmptySlide(layout) on this SlideCollection instance. |
InsertEmptySlide(index: int, layout: ILayoutSlide) | Inserts a new empty slide at index using the specified layout |
Remove(value: ISlide) | Calls Remove(value) on this SlideCollection instance. |
RemoveAt(index: int) | Removes the slide at the given zero‑based index |
IndexOf(slide: ISlide) | Calls IndexOf(slide) on this SlideCollection instance. |
GetEnumerator() | Provides an enumerator to iterate over the slides |