InsertStructTreeCursorChild

标记 PDF、结构修复

描述

在 ParentCursorID(或 StructTreeRoot)之下、结构上的 ChildIndex 处创建新的间接 StructElem 字典

语法

Delphi

Function TPDFlib.InsertStructTreeCursorChild(ParentCursorID, ChildIndex: Integer; Const TagType: WideString): Integer;

参数

ParentCursorID父结构元素光标;0 表示直接插入到 StructTreeRoot 之下
ChildIndex子结构元素中的 1 基准插入位置;0 表示追加
TagType有效且非空的 PDF 结构类型名称,如 Sect、P、H1 或 Figure

返回值

成功时返回引用添加 StructElem 的正数光标 ID,参数无效时返回 0

备注

完成后请用 CloseStructTreeCursor 关闭返回的光标