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 .


Constructor Summary
SectionCollection(Document doc)
          Initializes a new instance of the class.
 
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.
 
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 class.

Parameters:
doc - The doc.
Method Detail

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: