com.spire.doc.pages
Class FixedLayoutDocument

java.lang.Object
  extended by com.spire.doc.pages.LayoutElement
      extended by com.spire.doc.pages.FixedLayoutDocument

public class FixedLayoutDocument
extends LayoutElement

Provides an API wrapper for the LayoutEnumerator class to access the page layout of a document presented in an object model like the design.


Constructor Summary
FixedLayoutDocument(Document doc)
          Creates a new instance from the supplied Document class.
 
Method Summary
 LayoutCollection<LayoutElement> getLayoutEntitiesOfNode(DocumentObject node)
          Returns all the layout entities of the specified node.
 LayoutCollection<FixedLayoutPage> getPages()
          Provides access to the pages of a document.
 DocumentObject getParentNode()
          Provides the layout node that pertains to this particular entity.
 
Methods inherited from class com.spire.doc.pages.LayoutElement
getChildEntities, getPageIndex, getParent, getRectangle, getText, getType
 

Constructor Detail

FixedLayoutDocument

public FixedLayoutDocument(Document doc)
Creates a new instance from the supplied Document class.

Parameters:
doc - A document whose page layout model to enumerate.
Method Detail

getPages

public LayoutCollection<FixedLayoutPage> getPages()
Provides access to the pages of a document.


getParentNode

public DocumentObject getParentNode()
Provides the layout node that pertains to this particular entity.

Overrides:
getParentNode in class LayoutElement

getLayoutEntitiesOfNode

public LayoutCollection<LayoutElement> getLayoutEntitiesOfNode(DocumentObject node)
Returns all the layout entities of the specified node. Note that this method does not work with Run nodes or nodes in the header or footer.