SectionCollection

Inheritance: java.lang.Object, com.aspose.slides.DomObject

All Implemented Interfaces: com.aspose.slides.ISectionCollection

public final class SectionCollection extends DomObject<Presentation> implements ISectionCollection

Represents a collection of sections.

Methods

MethodDescription
get_Item(int index)Gets the element at the specified index.
addSection(String name, ISlide startedFromSlide)Add slides section started form specific slide.
appendEmptySection(String name)Add empty section to the end of the collection.
addEmptySection(String name, int index)Add empty section to specified position of the collection.
size()Gets the number of elements actually contained in the collection.
indexOf(ISection section)Returns an index of the specified section in 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.
clear()Removes all sections from the collection.
copyTo(System.Array array, int index)Copies the entire collection to the specified array.
isSynchronized()Returns a value indicating whether access to the collection is synchronized (thread-safe).
getSyncRoot()Returns a synchronization root.
iterator()Returns an enumerator that iterates through the collection.
iteratorJava()Returns a java iterator for the entire collection.

get_Item(int index)

public final 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 final ISection addSection(String name, ISlide startedFromSlide)

Add slides section started form specific slide.

Parameters:

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

Returns: ISection - Added section.

appendEmptySection(String name)

public final 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.

addEmptySection(String name, int index)

public final 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.

size()

public final int size()

Gets the number of elements actually contained in the collection. Read-only int.

Returns: int

indexOf(ISection section)

public final 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.

removeSectionWithSlides(ISection section)

public final 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 final 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 final 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.

clear()

public final void clear()

Removes all sections from the collection.

copyTo(System.Array array, int index)

public final void copyTo(System.Array array, int index)

Copies the entire collection to the specified array.

Parameters:

ParameterTypeDescription
arraycom.aspose.ms.System.ArrayTarget array
indexintIndex in the target array.

isSynchronized()

public final boolean isSynchronized()

Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

Returns: boolean

getSyncRoot()

public final Object getSyncRoot()

Returns a synchronization root. Read-only Object.

Returns: java.lang.Object

iterator()

public final System.Collections.Generic.IGenericEnumerator<ISection> iterator()

Returns an enumerator that iterates through the collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ISection> - A IGenericEnumerator that can be used to iterate through the collection.

iteratorJava()

public final System.Collections.Generic.IGenericEnumerator<ISection> iteratorJava()

Returns a java iterator for the entire collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ISection> - An java.util.Iterator for the entire collection.