property StructureElements: TPdfStructureElements; // read only
只读索引属性,返回逻辑结构树元素(StructTree)的子项
要求 Active 为 True。当索引超出有效范围时结果未定义;请在 0 .. - 1 中传值(或对于非计数变体使用数组的 Length)
返回的记录是调用时值的快照;对文档的后续编辑不会修改先前返回的记录
var
Items: TPdfStructureElements;
begin
if Pdf1.Active then
begin
Items := Pdf1.StructureElements;
Memo1.Lines.Add('count: ' + IntToStr(Length(Items)));
end;
end;