com.spire.doc
Class DocumentContainer

java.lang.Object
  extended by com.spire.doc.OwnerHolder
      extended by com.spire.doc.documents.xml.DocumentSerializable
          extended by com.spire.doc.DocumentObject
              extended by com.spire.doc.DocumentBase
                  extended by com.spire.doc.DocumentContainer
All Implemented Interfaces:
IDocumentObject, IDocumentSerializable
Direct Known Subclasses:
Body, Document, Section

public abstract class DocumentContainer
extends DocumentBase


Constructor Summary
DocumentContainer(Document doc, DocumentObject owner)
           
 
Method Summary
 int getCount()
          Gets count of child object.
 int getIndex(IDocumentObject entity)
          Returns the zero-based index of the specified entity.
 
Methods inherited from class com.spire.doc.DocumentObject
deepClone, getChildObjects, getDocumentObjectType, getFirstChild, getLastChild, getNextSibling, getNextWidgetSibling, getOwner, getPreviousSibling, getPreviousWidgetSibling, isComposite, prependChild, toString
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 
Methods inherited from interface com.spire.doc.interfaces.IDocumentObject
getDocument
 

Constructor Detail

DocumentContainer

public DocumentContainer(Document doc,
                         DocumentObject owner)
Method Detail

getCount

public int getCount()
Gets count of child object.

Returns:

getIndex

public int getIndex(IDocumentObject entity)
Returns the zero-based index of the specified entity.

Parameters:
entity - the document object.
Returns: