ISectionCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface ISectionCollection extends IGenericCollection<ISection>

Represents a collection of sections.

Methods

MethodDescription
get_Item(int index)Gets the element at the specified index.
addSection(String name, ISlide startedFromSlide)Add new section started form specific slide.
addEmptySection(String name, int index)Add empty section to specified position of the collection.
removeSectionWithSlides(ISection section)Remove section and slides contained in the section.
removeSection(ISection section)Remove section.
reorderSectionWithSlides(ISection section, int index)Moves section and its slides from the collection to the specified position.
appendEmptySection(String name)Add empty section to the end of the collection.
indexOf(ISection section)Returns an index of the specified section in the collection.
clear()Removes all sections from the collection.

get_Item(int index)

public abstract ISection get_Item(int index)

Gets the element at the specified index. Read-only ISection.

Parameters:

ParameterTypeDescription
indexint

Returns: ISection

addSection(String name, ISlide startedFromSlide)

public abstract ISection addSection(String name, ISlide startedFromSlide)

Add new section started form specific slide.

Parameters:

ParameterTypeDescription
namejava.lang.StringName of the section
startedFromSlideISlideFirst slide of section

Returns: ISection - Added section.

addEmptySection(String name, int index)

public abstract ISection addEmptySection(String name, int index)

Add empty section to specified position of the collection.

Parameters:

ParameterTypeDescription
namejava.lang.StringName of the section
indexintIndex of new section.

Returns: ISection - Added section.

removeSectionWithSlides(ISection section)

public abstract void removeSectionWithSlides(ISection section)

Remove section and slides contained in the section.

Parameters:

ParameterTypeDescription
sectionISectionThe section to remove from the collection.

removeSection(ISection section)

public abstract void removeSection(ISection section)

Remove section. Slides contained in the section will be merged into previous section.

Parameters:

ParameterTypeDescription
sectionISectionThe section to remove from the collection.

reorderSectionWithSlides(ISection section, int index)

public abstract void reorderSectionWithSlides(ISection section, int index)

Moves section and its slides from the collection to the specified position.

Parameters:

ParameterTypeDescription
sectionISectionSection to move.
indexintTarget index.

appendEmptySection(String name)

public abstract ISection appendEmptySection(String name)

Add empty section to the end of the collection.

Parameters:

ParameterTypeDescription
namejava.lang.StringName of the section

Returns: ISection - Added section.

indexOf(ISection section)

public abstract int indexOf(ISection section)

Returns an index of the specified section in the collection.

Parameters:

ParameterTypeDescription
sectionISectionSection to find.

Returns: int - Index of a section or -1 if section not from this collection.

clear()

public abstract void clear()

Removes all sections from the collection.