sectioncollection-ag凯发旗舰厅



com.spire.doc.collections
class sectioncollection

java.lang.object
  extended by com.spire.doc.ownerholder
      extended by com.spire.doc.collections.collectionex
          extended by com.spire.doc.documents.xml.documentserializablecollection
              extended by com.spire.doc.collections.documentobjectcollection
                  extended by 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


constructor summary
sectioncollection(document doc)
          initializes a new instance of the sectioncollection class
 
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.
 
methods inherited from class com.spire.doc.collections.documentobjectcollection
add, clear, contains, getfirstitem, getlastitem, indexof, insert, remove, removeat
 
methods inherited from class com.spire.doc.collections.collectionex
getcount, iterator
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
methods inherited from interface com.spire.doc.interfaces.icollectionbase
getcount
 
methods inherited from interface com.spire.doc.interfaces.ixdlsserializablecollection
addnewitem, getcount, gettagitemnameex
 
constructor detail

sectioncollection

public sectioncollection(document doc)
initializes a new instance of the sectioncollection class
parameters:
doc - the doc
method detail

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


网站地图