ReparentStructTreeCursor
Tagged PDF, structure repair
תיאור
Moves the cursor element below a new parent or reorders it within the same parent. The method normalizes the tree first, verifies both elements are reachable, rejects self-parenting and descendant cycles, updates the parent child collection, and writes the matching child /P link
תחביר
Delphi
Function TPDFlib.ReparentStructTreeCursor(CursorID, NewParentCursorID, ChildIndex: Integer): Integer;ActiveX
Function PDFlib::ReparentStructTreeCursor(CursorID As Long, NewParentCursorID As Long, ChildIndex As Long) As LongDLL
int DLReparentStructTreeCursor(int InstanceID, int CursorID, int NewParentCursorID, int ChildIndex);פרמטרים
| NewParentCursorID | A structure-element cursor, or 0 for the structure-tree root |
|---|---|
| ChildIndex | מיקום one-based בין ילדי אלמנט המבנה, או 0 כדי להוסיף אחרי ה-kids הקיימים |
ערכים מוחזרים
האינדקס החיובי החדש של הפריט שהוזז, או 0 כשהאימות נכשל
הערות
Integer MCIDs, /MCR, and /OBJR kids keep their relative order and are not counted by ChildIndex. Moving a hierarchy node does not alter marked-content ownership or parent-tree values