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 關閉回傳的游標