SetStructTreeCursorText

標籤式 PDF、結構修復

描述

更新 CursorID 所指結構元素上的 /S、/T、/Alt、/ActualText、/Lang、/ID 或 /E

語法

Delphi

Function TPDFlib.SetStructTreeCursorText(CursorID, InfoID: Integer; Const Value: WideString): Integer;

參數

CursorID以 OpenStructTreeCursor 或 InsertStructTreeCursorChild 開啟的有效游標
InfoID1 為 /S 標籤類型、3 為 /T 標題、4 為 /Alt、5 為 /ActualText、6 為 /Lang、7 為 /ID、8 為 /E 展開
值新的文字值;空字串會刪除鍵 3 到 8(鍵 1 /S 需要非空的有效 PDF 名稱)

傳回值

更新時為 1;游標或 InfoID/Value 無效時為 0

備註

更新 /ID 項目後請呼叫 ReconcileStructParentTree 或 CommitStructTreeTransaction,讓 IDTree 保持排序與同步