SetTitle

Description

Sets the title in the table of contents.

Applies to

PDFTableOfContents object

Syntax

SetTitle(PDFText title)

Argument

Description

title

Optional. The title in the table of contents.


Return value

None.

Usage

Call the function to set the title for the table of contents.

Examples

This example sets the title in the table of contents.

lpdf_toc =  create PDFtableofcontents
lpdf_title = create PDFtext

lpdf_title.content = "Table of Content"
lpdf_title.font.fontsize = 36
lpdf_title.font.bold = true
lpdf_title.y = 200
lpdf_title.x = (lpdf_page.getwidth( )-lpdf_title.width)/2

lpdf_toc.settitle( lpdf_title)

See also

AddItem

GetBottomMargin

GetFont

GetItem

GetItemCount

GetLeftMargin

GetPosByPageIndex

GetRightMargin

GetStyle

GetTitle

GetTopMargin

RemoveAll

RemoveItem

SetBottomMargin

SetFont

SetLeftMargin

SetPosByPageIndex

SetRightMargin

SetStyle

SetTopMargin