GetFont

Description

Gets the font of the title or item in the table of contents.

Applies to

PDFTableOfContents object

PDFTableOfContentsItem object

Syntax

PDFFont GetFont()

Return value

PDFFont object

Usage

Call the function to get the font used for the title in the table of contents.

Examples

This example gets the font style of the title in the table of contents.

lpdf_font = lpdf_toc.getfont()

This example gets the font style of the item in the table of contents.

lpdf_font = lpdf_tocitem.getfont()

See also

AddItem

GetBottomMargin

GetChapterObject

GetChapterTitle

GetItem

GetItemCount

GetLeftMargin

GetPosByPageIndex

GetRightMargin

GetStyle

GetTitle

GetTopMargin

RemoveAll

RemoveItem

SetBottomMargin

SetFont

SetLeftMargin

SetPosByPageIndex

SetRightMargin

SetStyle

SetTitle

SetTopMargin