SectionCollection

SectionCollection

Overview

SectionCollection is a class in Aspose.Slides FOSS for .NET. Inherits from: ISectionCollection.

Represents a collection of sections in a presentation.

This class provides 8 methods for working with SectionCollection objects in .NET programs. Available methods include: AddSection, AppendEmptySection, Clear, GetEnumerator, IndexOf, RemoveSection, RemoveSectionWithSlides, ReorderSectionWithSlides. All public members are accessible to any .NET application after installing the Aspose.Slides FOSS for .NET package. Properties: Count.

Properties

NameTypeAccessDescription
CountintReadGets the count.

Methods

SignatureDescription
AddSection(name: string, startedFromSlide: ISlide)Adds a new section with the given name starting at the specified slide
AppendEmptySection(name: string, startedFromIndex: int)Appends an empty section with the given name starting at the slide index
IndexOf(section: ISection)Returns the zero‑based index of the specified section in the collection
RemoveSection(section: ISection)Removes the given section without deleting its slides
RemoveSectionWithSlides(section: ISection)Removes the section and also deletes all slides belonging to it
ReorderSectionWithSlides(section: ISection, index: int)Moves the specified section and its slides to a new index
Clear()Calls Clear on this SectionCollection instance.
GetEnumerator()Returns an enumerator for iterating over the sections

See Also