sectioncollection-j9官方网址
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 section
|
method summary |
int |
add(isection section)
adds a section to end of document. |
section |
get(int index)
gets the section 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 sectioncollection class
- parameters:
doc - the doc
get
public section get(int index)
- gets the
section at the specified index.
- specified by:
get in interface iwsectioncollection- specified by:
get in interface idocumentobjectcollection- overrides:
get in class documentobjectcollection
- parameters:
index - index
- returns:
- section object
add
public int add(isection section)
- adds a section to end of document.
- specified by:
add in interface iwsectioncollection
- parameters:
section - the section.
- returns:
- int
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:
- int