THotPDF.SetLoadedOutlineOpen Method

Sets the default expand/collapse state for a specified bookmark (outline node) in the loaded document. When the document is opened by a reader, the child nodes of this bookmark will decide whether to expand and be visible based on this setting.

Declaration

procedure SetLoadedOutlineOpen(Index: Integer; AOpen: Boolean);

Unit

HPDFDoc

Parameters

NamePurpose
IndexThe index number (zero-based) of the target bookmark or outline node whose state is to be set.
AOpen指定书签节点的展开状态。设为 True 表示默认展开其子节点;False 表示默认折叠。

Usage notes

Related APIs