SetTopMargin

Description

Sets the margin between the table of contents and the top border of the page.

Applies to

PDFTableOfContents object

Syntax

SetTopMargin(double top)

Argument

Description

top

The margin between the table of contents and the top border of the page. The unit is point (pt).


Return value

None.

Usage

Call the function to set the margin between the table of contents and the top border of the page.

Examples

This example sets the top margin for the table of contents.

lpdf_toc.SetTopMargin(100)

See also

AddItem

GetBottomMargin

GetFont

GetItem

GetItemCount

GetLeftMargin

GetPosByPageIndex

GetRightMargin

GetStyle

GetTitle

GetTopMargin

RemoveAll

RemoveItem

SetBottomMargin

SetFont

SetLeftMargin

SetPosByPageIndex

SetRightMargin

SetStyle

SetTitle