property BookmarkChildren[const Bookmark: TBookmark]: TBookmarks; // read only
索引式唯讀屬性,傳回指定父書籤節點的直接子書籤
要求 Active 為 True。傳入從 Bookmarks 或前一次 BookmarkChildren 呼叫取得的父節點 TBookmark 記錄;書籤沒有子節點時傳回空陣列
傳回的記錄是呼叫當時值的快照;之後對文件的編輯不會修改先前傳回的記錄
/Outlines)讀取HasBookmarkChildren[Bookmark] 做輕量檢查TBookmark 都包含 Title、PageNumber、Destination、Action、IsOpen、DescendantCount,以及樣式與色彩 metadata
var
Items: TBookmarks;
begin
if Pdf1.Active then
begin
if Length(Pdf1.Bookmarks) > 0 then
Items := Pdf1.BookmarkChildren[Pdf1.Bookmarks[0]];
Memo1.Lines.Add('count: ' + IntToStr(Length(Items)));
end;
end;