SlideCollection

SlideCollection class

Represents a collection of a slides.

public sealed class SlideCollection : DomObject<Presentation>, ISlideCollection

Properties

Name Description
Count { get; } Gets the number of elements actually contained in the collection. Read-only Int32.
IsSynchronized { get; } Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only Boolean.
Item { get; } Gets the element at the specified index. Read-only Slide.
SyncRoot { get; } Returns a synchronization root. Read-only Object.

Methods

Name Description
AddClone(ISlide) Adds a copy of a specified slide to the end of the collection.
AddClone(ISlide, ILayoutSlide) Adds a copy of a specified slide to the end of the collection.
AddClone(ISlide, ISection) Adds a copy of a specified slide to the end of the specified section.
AddClone(ISlide, IMasterSlide, bool) Adds a copy of a specified source slide to the end of the collection. Appropriate layout will be selected automatically from the specified master (appropriate layout is the layout with the same Type or Name as of layout of the source slide). If there is no appropriate layout then layout of the source slide will be cloned (if allowCloneMissingLayout is true) or PptxEditException will be thrown (if allowCloneMissingLayout is false).
AddEmptySlide(ILayoutSlide) Adds a new empty slide to the end of the collection.
AddFromHtml(Stream) Creates slides from HTML text and adds them to the end of the collection.
AddFromHtml(string) Creates slides from HTML text and adds them to the end of the collection.
AddFromHtml(TextReader) Creates slides from HTML text and adds them to the end of the collection.
AddFromHtml(Stream, IExternalResourceResolver, string) Creates slides from HTML text and adds them to the end of the collection.
AddFromHtml(string, IExternalResourceResolver, string) Creates slides from HTML text and adds them to the end of the collection.
AddFromHtml(TextReader, IExternalResourceResolver, string) Creates slides from HTML text and adds them to the end of the collection.
AddFromPdf(Stream) Creates slides from the PDF document and adds them to the end of the collection.
AddFromPdf(string) Creates slides from the PDF document and adds them to the end of the collection.
CopyTo(Array, int) Copies all elements from the collection to the specified array.
GetEnumerator() Returns an enumerator that iterates through the collection.
IndexOf(ISlide) Returns an index of the specified slide in the collection.
InsertClone(int, ISlide) Inserts a copy of a specified slide to specified position of the collection.
InsertClone(int, ISlide, ILayoutSlide) Inserts a copy of a specified slide to specified position of the collection.
InsertClone(int, ISlide, IMasterSlide, bool) Inserts a copy of a specified source slide to specified position of the collection. Appropriate layout will be selected automatically from the specified master (appropriate layout is the layout with the same Type or Name as of layout of the source slide). If there is no appropriate layout then layout of the source slide will be cloned (if allowCloneMissingLayout is true) or PptxEditException will be thrown (if allowCloneMissingLayout is false).
InsertEmptySlide(int, ILayoutSlide) Inserts a copy of a specified slide to specified position of the collection.
InsertFromHtml(int, Stream) Creates slides from HTML text and inserts them to the collection at the specified position.
InsertFromHtml(int, string) Creates slides from HTML text and inserts them to the collection at the specified position.
InsertFromHtml(int, TextReader) Creates slides from HTML text and inserts them to the collection at the specified position.
InsertFromHtml(int, Stream, IExternalResourceResolver, string) Creates slides from HTML text and inserts them to the collection at the specified position.
InsertFromHtml(int, string, IExternalResourceResolver, string) Creates slides from HTML text and inserts them to the collection at the specified position.
InsertFromHtml(int, TextReader, IExternalResourceResolver, string) Creates slides from HTML text and inserts them to the collection at the specified position.
Remove(ISlide) Removes the first occurrence of a specific object from the collection.
RemoveAt(int) Removes the element at the specified index of the collection.
Reorder(int, ISlide) Moves slide from the collection to the specified position.
Reorder(int, params ISlide[]) Moves slides from the collection to the specified position. Slides will be placed starting from index in order they appear in list.
ToArray() Creates and returns an array with all slides in it.
ToArray(int, int) Creates and returns an array with all slides from the specified range in it. An index of a first slide to add.A number of slides to add.

See Also