property BookmarkChildren[const Bookmark: TBookmark]: TBookmarks; // read only
索引只读属性,返回给定父书签节点的直接子书签
要求 Active 为 True。传入一个从 Bookmarks 或之前的 BookmarkChildren 调用取得的父 TBookmark 记录;该书签没有子节点时返回空数组
返回的记录是调用时值的快照;之后对文档的编辑不会修改先前返回的记录
/Outlines)中读取HasBookmarkChildren[Bookmark] 做一次轻量检查TBookmark 都包含 Title、PageNumber、Destination、Action、IsOpen、DescendantCount 以及样式/颜色元数据
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;