property BookmarkChildren[const Bookmark: TBookmark]: TBookmarks; // read only
Indexed read-only property that returns the immediate child bookmarks of a given parent bookmark node
Requires Active to be True. Pass a parent TBookmark record obtained from Bookmarks or a previous BookmarkChildren call; returns an empty array when the bookmark has no children
The returned record is a snapshot of the value at the time of the call; subsequent edits to the document do not modify previously returned records
/Outlines)HasBookmarkChildren[Bookmark] for a lightweight check before materialising the child arrayTBookmark includes Title, PageNumber, Destination, Action, IsOpen, DescendantCount, and style/color 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;