public final class SectionCollection extends java.lang.Object 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.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns an enumerator for the entire collection.
|
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.
|
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.
|
public final ISection get_Item(int index)
Gets the element at the specified index.
Read-only ISection
.
get_Item
in interface ISectionCollection
public final ISection addSection(java.lang.String name, ISlide startedFromSlide)
Add slides section started form specific slide.
addSection
in interface ISectionCollection
name
- 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 ISectionCollection
name
- 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 ISectionCollection
name
- 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 ISectionCollection
section
- Section to find.public final void removeSectionWithSlides(ISection section)
Remove section and slides contained in the section.
removeSectionWithSlides
in interface ISectionCollection
section
- 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 ISectionCollection
section
- 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 ISectionCollection
index
- Target index.section
- Section to move.public final void clear()
Removes all sections from the collection.
clear
in interface ISectionCollection
public 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>
System.Collections.Generic.IEnumerator`1
that can be used to iterate through the collection.public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns an enumerator for the entire collection.
IEnumerator
for the entire collection.