ISectionCollection
All Implemented Interfaces: com.aspose.slides.IGenericCollection
public interface ISectionCollection extends IGenericCollection<ISection>
Represents a collection of sections.
Methods
| Method | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| index | int |
Returns: ISection
addSection(String name, ISlide startedFromSlide)
public abstract ISection addSection(String name, ISlide startedFromSlide)
Add new section started form specific slide.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | Name of the section |
| startedFromSlide | ISlide | First 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:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | Name of the section |
| index | int | Index 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:
| Parameter | Type | Description |
|---|---|---|
| section | ISection | The 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:
| Parameter | Type | Description |
|---|---|---|
| section | ISection | The 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:
| Parameter | Type | Description |
|---|---|---|
| section | ISection | Section to move. |
| index | int | Target index. |
appendEmptySection(String name)
public abstract ISection appendEmptySection(String name)
Add empty section to the end of the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | Name 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:
| Parameter | Type | Description |
|---|---|---|
| section | ISection | Section 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.