PDFTableOfContents object
PDFTableOfContents is one of the PDF Builder objects, and is derived
from PDFModel. PDFTableofContents and PDFTableOfContentsItem work together
to manage the table of contents of a PDF document:
-
PDFTableOfContents is the container for the
PDFTableOfContentsItem objects. -
The first-level items (chapters, which are
PDFTableOfContentsItem objects) in the table of contents are added
using the PDFTableOfContents.AddItem, and the functions in
PDFTableOfContent only work on the first-level items in the table of
contents. -
The sub-level items (chapters) in the table of contents are
added using the PDFTableOfContentsItem.AddItem. -
The indexes of the items are auto generated, and are structured
by levels. For example, the level-1 chapters start their index at 1;
and the sub-items in each chapter start their index at 1 too.
To view the full hierarchy of the PDF Builder objects, find
“pdfobject” in the Browser, right-click the object, and then select “Show
Hierarchy” in the pop-up menu.
Properties
PDFTableOfContents provides the following property. In addition,
it inherits the properties from its parent, PDFModel.
|
PDFTableOfContents property |
Datatype |
Description |
|---|---|---|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
Events
|
PDFTableOfContents event |
Occurs |
|---|---|
|
Immediately before the Open event occurs in the |
|
|
Immediately after the Close event occurs in the |
Functions
PDFTableOfContents provides the following functions.
|
PDFTableOfContents function |
Datatype returned |
Description |
|---|---|---|
|
PDFTableOfContentsItem |
Adds an item to the table of |
|
|
String |
Returns the name assigned to the |
|
|
Double |
Gets the bottom margin between the table of |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
PDFFont |
Gets the font of the title in the table of |
|
|
PDFTableOfContentsItem |
Gets the specified item in the table of |
|
|
Long |
Gets the count of items in the table of |
|
|
Double |
Gets the margin between the table of contents and |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Long |
Gets the page index of the table of contents in the |
|
|
Double |
Gets the margin between the table of contents and |
|
|
PDFTableOfContentsStyle |
Gets the display style of the table of |
|
|
PDFText |
Gets the title in the table of |
|
|
Double |
Gets the top margin between the table of contents |
|
|
Boolean |
Adds an event to the end of the message queue for |
|
|
Long |
Removes all the items from the table of |
|
|
Long |
Removes an item from the table of |
|
|
None |
Sets the margin between the table of contents and |
|
|
None |
Sets the font to use for the title in the table of |
|
|
None |
Sets the margin between the table of contents and |
|
|
None |
Sets the page index of the table of contents in the |
|
|
None |
Sets the margin between the table of contents and |
|
|
None |
Sets the display style of the table of |
|
|
None |
Sets the title of the table of |
|
|
None |
Sets the margin between the table of contents and |
|
|
Integer |
Triggers a specified event in the control and |
|
|
Object |
Returns the type of the control. |