public final class SectionCollection extends DomObject<Presentation> implements ISectionCollection
Represents a collection of sections.
| Modifier and Type | Method and Description |
|---|---|
ISection |
addEmptySection(java.lang.String name,
int index)
Add empty section to specified position of the collection.
|
ISection |
addSection(java.lang.String name,
ISlide startedFromSlide)
Add slides section started form specific slide.
|
ISection |
appendEmptySection(java.lang.String name)
Add empty section to the end of the collection.
|
void |
clear()
Removes all sections from the collection.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies the entire collection to the specified array.
|
ISection |
get_Item(int index)
Gets the element at the specified index.
|
java.lang.Object |
getSyncRoot()
Returns a synchronization root.
|
int |
indexOf(ISection section)
Returns an index of the specified section in the collection.
|
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ISection> |
iterator()
Returns an enumerator that iterates through the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ISection> |
iteratorJava()
Returns a java iterator for the entire collection.
|
void |
removeSection(ISection section)
Remove section.
|
void |
removeSectionWithSlides(ISection section)
Remove section and slides contained in the section.
|
void |
reorderSectionWithSlides(ISection section,
int index)
Moves section and its slides from the collection to the specified position.
|
int |
size()
Gets the number of elements actually contained in the collection.
|
getParent_Immediatepublic final ISection get_Item(int index)
Gets the element at the specified index.
Read-only ISection.
get_Item in interface ISectionCollectionpublic final ISection addSection(java.lang.String name, ISlide startedFromSlide)
Add slides section started form specific slide.
addSection in interface ISectionCollectionname - Name of the sectionstartedFromSlide - First slide of sectionpublic final ISection appendEmptySection(java.lang.String name)
Add empty section to the end of the collection.
appendEmptySection in interface ISectionCollectionname - Name of the sectionpublic final ISection addEmptySection(java.lang.String name, int index)
Add empty section to specified position of the collection.
addEmptySection in interface ISectionCollectionname - Name of the sectionindex - Index of new section.public final int size()
Gets the number of elements actually contained in the collection.
Read-only int.
size in interface com.aspose.ms.System.Collections.ICollection<ISection>public final int indexOf(ISection section)
Returns an index of the specified section in the collection.
indexOf in interface ISectionCollectionsection - Section to find.public final void removeSectionWithSlides(ISection section)
Remove section and slides contained in the section.
removeSectionWithSlides in interface ISectionCollectionsection - The section to remove from the collection.public final void removeSection(ISection section)
Remove section. Slides contained in the section will be merged into previous section.
removeSection in interface ISectionCollectionsection - The section to remove from the collection.public final void reorderSectionWithSlides(ISection section, int index)
Moves section and its slides from the collection to the specified position.
reorderSectionWithSlides in interface ISectionCollectionindex - Target index.section - Section to move.public final void clear()
Removes all sections from the collection.
clear in interface ISectionCollectionpublic final void copyTo(com.aspose.ms.System.Array array,
int index)
Copies the entire collection to the specified array.
copyTo in interface com.aspose.ms.System.Collections.ICollection<ISection>array - Target arrayindex - Index in the target array.public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean.
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<ISection>public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object.
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<ISection>public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ISection> iterator()
Returns an enumerator that iterates through the collection.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<ISection>iterator in interface com.aspose.ms.System.Collections.IEnumerable<ISection>iterator in interface java.lang.Iterable<ISection>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ISection> iteratorJava()
Returns a java iterator for the entire collection.
iteratorJava in interface IGenericCollection<ISection>Iterator for the entire collection.Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.