www.gnostice.com 

AddTOCItem Method

Top  Previous  Next

This method is invoked to add an entry to the TOC (Table of Contents).

 

The AddTOCItem with Title, ParentNode, PageNumber and Top is used to add an item to the Table of Contents page and link it to the position specified by Top in the page specified by the PageNumber of the generated document.

 

 

 

 

Syntax

 

 

[VC++]

long AddTOCItem(LPCTSTR Title, long ParentNode, long PageNumber, double Top);

 

[C#]

public abstract new System.Int32 AddTOCItem ( System.String Title , System.Int32 ParentNode , System.Int32 PageNumber , System.Double Top )

 

[VB]

Function AddTOCItem(Title As String, ParentNode As Long, PageNumber As Long, Top As Double) As Long

 

 

 

 

 

 

Parameters

 

 

Title

[in] indicates the title of the TOC item.

 

 

 

ParentNode

[in] indicates the node for which the item to be added becomes the child.

 

 

 

PageNumber

[in] indicates the PageNumber of the content.

 

 

 

Top

[in] Specify the TOC contents should begin from the top of the page.

 

 

 

 

Return Value

 

 

It will return an identifier to the entry which can be used in subsequent calls as ParentNode.