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