ISlideCollection
Overview
ISlideCollection is a interface in Aspose.Slides FOSS for .NET.
Inherits from: IEnumerable<ISlide>.
Represents a collection of slides in a presentation.
This interface provides 13 methods for working with ISlideCollection objects in .NET programs.
Available methods include: AddClone, AddEmptySlide, 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 number of slides in the collection. |
AsICollection | IList<ISlide> | Read | Exposes the collection as a generic list interface. |
AsIEnumerable | IEnumerable<ISlide> | Read | Exposes the collection as an enumerable interface. |
Methods
| Signature | Description |
|---|---|
AddClone(sourceSlide: ISlide) | Adds a copy of a specified slide to the end of the collection. |
AddClone(sourceSlide: ISlide, destLayout: ILayoutSlide) | Adds a copy of a specified slide to the end of the collection, applying the specified layout. |
AddClone(sourceSlide: ISlide, destMaster: IMasterSlide, allowCloneMissingLayout: bool) | Adds a copy of a specified slide to the end of the collection, applying the specified master slide. |
InsertClone(index: int, sourceSlide: ISlide) | Inserts a copy of a specified slide at the specified position. |
InsertClone(index: int, sourceSlide: ISlide, destLayout: ILayoutSlide) | Inserts a copy of a specified slide at the specified position, applying the specified layout. |
InsertClone(index: int, sourceSlide: ISlide, destMaster: IMasterSlide, allowCloneMissingLayout: bool) | Inserts a copy of a specified slide at the specified position, applying the specified master slide. |
ToArray() | Returns all slides in the collection as a new array. |
ToArray(startIndex: int, count: int) | Returns a subset of slides starting at the specified index. |
AddEmptySlide(layout: ILayoutSlide) | Adds an empty slide to the end of the collection with the specified layout. |
InsertEmptySlide(index: int, layout: ILayoutSlide) | Inserts an empty slide at the specified position with the specified layout. |
Remove(value: ISlide) | Removes the first occurrence of the specified slide from the collection. |
RemoveAt(index: int) | Removes the slide at the specified zero-based index. |
IndexOf(slide: ISlide) | Returns the zero-based index of the specified slide, or -1 if not found. |