PDFTableOfContentsItem object
PDFTableOfContentsItem 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
PDFTableOfContentsItem provides the following property.
|
PDFTableOfContentsItem property |
Datatype |
Description |
|---|---|---|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
Events
|
PDFTableOfContentsItem event |
Occurs |
|---|---|
|
Immediately before the Open event occurs in the |
|
|
Immediately after the Close event occurs in the |
Functions
PDFTableOfContentsItem provides the following functions.
|
PDFTableOfContentsItem function |
Datatype returned |
Description |
|---|---|---|
|
PDFTableOfContentsItem |
Add a table of contents item. |
|
|
String |
Returns the name assigned to the |
|
|
PDFModel |
Gets the chapter object in the table of |
|
|
String |
Gets the chapter title in the table of |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
PDFTableOfContentsItem |
Gets a table of contents item. |
|
|
Long |
Gets the count of table of contents |
|
|
PDFFont |
Gets the fond of a table of contents |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Boolean |
Adds an event to the end of the message queue for |
|
|
Long |
Removes all table of contents items. |
|
|
Long |
Removes a table of contents item. |
|
|
None |
Sets the fond of a table of contents |
|
|
Integer |
Triggers a specified event in the control and |
|
|
Object |
Returns the type of the control. |