|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.doc.OwnerHolder
com.spire.doc.documents.xml.DocumentSerializable
com.spire.doc.DocumentObject
com.spire.doc.DocumentBase
com.spire.doc.fields.ParagraphBase
com.spire.doc.fields.TableOfContent
public class TableOfContent
Constructor Summary | |
---|---|
TableOfContent(IDocument doc)
Initializes a new instance of the TableOfContent class. |
|
TableOfContent(IDocument doc,
java.lang.String switches)
Initializes a new instance of the TableOfContent class. |
Method Summary | |
---|---|
DocumentObjectType |
getDocumentObjectType()
Gets the type of the document object. |
boolean |
getIncludePageNumbers()
Gets a value indicating whether to show page numbers. |
int |
getLowerHeadingLevel()
Gets the starting heading level of the table of content. |
boolean |
getRightAlignPageNumbers()
Gets a value indicating whether to show page numbers from right side. |
java.lang.String |
getTableID()
Gets the table ID. |
java.lang.String |
getTOCLevelStyle(int levelNumber)
Gets the style name for TOC level. |
int |
getUpperHeadingLevel()
Gets the ending heading level of the table of content. |
boolean |
getUseAbsolutePos()
|
boolean |
getUseHeadingStyles()
Gets a value indicating whether to use default heading styles. |
boolean |
getUseHyperlinks()
Gets a value indicating whether to use hyperlinks.Default value is true. |
boolean |
getUseOutlineLevels()
Gets a value indicating whether use outline levels.Default value is false. |
boolean |
getUseTableEntryFields()
Gets a value indicating whether to use table entry fields.Default value is false. |
void |
setIncludePageNumbers(boolean value)
Sets a value indicating whether to show page numbers. |
void |
setLowerHeadingLevel(int value)
Sets the starting heading level of the table of content. |
void |
setRightAlignPageNumbers(boolean value)
Sets a value indicating whether to show page numbers from right side. |
void |
setTableID(java.lang.String value)
Sets the table ID. |
void |
setTOCLevelStyle(int levelNumber,
java.lang.String styleName)
Sets the style for TOC level. |
void |
setUpperHeadingLevel(int value)
Sets the ending heading level of the table of content. |
void |
setUseAbsolutePos(boolean value)
|
void |
setUseHeadingStyles(boolean value)
Sets a value indicating whether to use default heading styles. |
void |
setUseHyperlinks(boolean value)
Sets a value indicating whether to use hyperlinks.Default value is true. |
void |
setUseOutlineLevels(boolean value)
Sets a value indicating whether use outline levels.Default value is false. |
void |
setUseTableEntryFields(boolean value)
Sets a value indicating whether to use table entry fields.Default value is false. |
Methods inherited from class com.spire.doc.fields.ParagraphBase |
---|
applyCharacterFormat, applyStyle, getAncestor, getCharacterFormat, getChildObjects, getOwnerParagraph, getStyleName, isDeleteRevision, isInsertRevision |
Methods inherited from class com.spire.doc.DocumentObject |
---|
deepClone, getFirstChild, getLastChild, getNextSibling, getOwner, getPreviousSibling, isComposite, toString |
Methods inherited from class com.spire.doc.OwnerHolder |
---|
getDocument |
Methods inherited from interface com.spire.doc.interfaces.IDocumentObject |
---|
deepClone, getDocument, getNextSibling, getOwner, getPreviousSibling, isComposite |
Methods inherited from interface com.spire.doc.documents.IRunAttrSource |
---|
clearRunAttrs, fetchInheritedRunAttr, getDirectRunAttr, getDirectRunAttrByIndex, getDirectRunAttrsCount, setRunAttr |
Constructor Detail |
---|
public TableOfContent(IDocument doc)
TableOfContent
class.
doc
- The doc.public TableOfContent(IDocument doc, java.lang.String switches)
TableOfContent
class.
doc
- The doc.switches
- The switches.Method Detail |
---|
public boolean getUseAbsolutePos()
public void setUseAbsolutePos(boolean value)
public boolean getUseHeadingStyles()
public void setUseHeadingStyles(boolean value)
value
- if it uses heading styles, set to public int getUpperHeadingLevel()
public void setUpperHeadingLevel(int value)
value
- The upper heading level.public int getLowerHeadingLevel()
public void setLowerHeadingLevel(int value)
value
- The starting heading level.public boolean getUseTableEntryFields()
public void setUseTableEntryFields(boolean value)
value
- if it uses table entry fields, set to public java.lang.String getTableID()
public void setTableID(java.lang.String value)
value
- The table ID.public boolean getRightAlignPageNumbers()
public void setRightAlignPageNumbers(boolean value)
value
- if right align of page numbers, set to public boolean getIncludePageNumbers()
public void setIncludePageNumbers(boolean value)
value
- if it includes page numbers, set to public boolean getUseHyperlinks()
public void setUseHyperlinks(boolean value)
value
- if it uses hyperlinks, set to public boolean getUseOutlineLevels()
public void setUseOutlineLevels(boolean value)
value
- if it uses outline levels, set to public DocumentObjectType getDocumentObjectType()
getDocumentObjectType
in interface IDocumentObject
getDocumentObjectType
in class DocumentObject
public void setTOCLevelStyle(int levelNumber, java.lang.String styleName)
levelNumber
- The level number.styleName
- Name of the style.public java.lang.String getTOCLevelStyle(int levelNumber)
levelNumber
- The level number.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |