SetStyle

Description

Sets the display style of the table of contents.

Applies to

PDFTableOfContents object

Syntax

SetStyle(PDFTableOfContentsStyle style)

Argument

Description

style

A value of the PDFTableOfContentsStyle enumerated datatype specifying the display style of the table of contents. Values are:

  • PDFTableOfContentsStyle_Classic! -- The classic style. For example, title.........1.

  • PDFTableOfContentsStyle_Simple! -- The simple style. For example, title 1.


Return value

None.

Usage

Call the function to set the display style of the table of contents.

Examples

This example sets the simple display style for the table of contents.

lpdf_toc.setstyle( PDFTableOfContentsStyle_Simple!)

See also

AddItem

GetBottomMargin

GetFont

GetItem

GetItemCount

GetLeftMargin

GetPosByPageIndex

GetRightMargin

GetTitle

GetTopMargin

RemoveAll

RemoveItem

SetBottomMargin

SetFont

SetLeftMargin

SetPosByPageIndex

SetRightMargin

SetStyle

SetTitle

SetTopMargin