RegisterHeadingEx

Page layout

Description

Records a heading pointing at any page and vertical position.

Syntax

Delphi

Function TPDFlib.RegisterHeadingEx(Level: Integer; Const Title: WideString; DestPage: Integer; DestPosition: Double): Integer;

Parameters

LevelNesting level, 1 for a top-level heading.
TitleThe text to list.
DestPageThe page to point at.
DestPositionVertical position on that page to scroll to.

Return values

CountHow many headings are registered.
0The level, the title or the page was not valid.

Remarks

Same as RegisterHeading except that the target is given rather than taken from the selected page.

See also

RegisterHeading, DrawTOC