com.spire.doc.collections
Class SectionCollection
java.lang.Object
com.spire.doc.OwnerHolder
com.spire.doc.collections.CollectionEx
com.spire.doc.documents.xml.DocumentSerializableCollection
com.spire.doc.collections.DocumentObjectCollection
com.spire.doc.collections.SectionCollection
- All Implemented Interfaces:
- IWSectionCollection, ICollectionBase, IDocumentObjectCollection, IXDLSSerializableCollection, java.lang.Iterable
public class SectionCollection
- extends DocumentObjectCollection
- implements IWSectionCollection
Represents a collection of .
Method Summary |
int |
add(ISection section)
Adds a section to end of document. |
Section |
get(int index)
Gets the at the specified index. |
int |
indexOf(ISection section)
Returns the zero-based index of the specified section. |
SectionCollection
public SectionCollection(Document doc)
- Initializes a new instance of the class.
- Parameters:
doc
- The doc.
get
public Section get(int index)
- Gets the at the specified index.
- Specified by:
get
in interface IWSectionCollection
- Overrides:
get
in class DocumentObjectCollection
- Parameters:
index
-
- Returns:
add
public int add(ISection section)
- Adds a section to end of document.
- Specified by:
add
in interface IWSectionCollection
- Parameters:
section
- The section.
- Returns:
indexOf
public int indexOf(ISection section)
- Returns the zero-based index of the specified section.
- Specified by:
indexOf
in interface IWSectionCollection
- Parameters:
section
- The section.
- Returns: