PDFiumPas 文件

StructureElements 属性

组件: TPdf  ·  单元: PDFium
索引属性 — 返回逻辑结构树元素(StructTree)的子项

Syntax

property StructureElements: TPdfStructureElements; // read only

Description

只读索引属性,返回逻辑结构树元素(StructTree)的子项

要求 ActiveTrue。当索引超出有效范围时结果未定义;请在 0 .. - 1 中传值(或对于非计数变体使用数组的 Length

返回的记录是调用时值的快照;对文档的后续编辑不会修改先前返回的记录

Remarks

Example

var
  Items: TPdfStructureElements;
begin
  if Pdf1.Active then
  begin
    Items := Pdf1.StructureElements;
    Memo1.Lines.Add('count: ' + IntToStr(Length(Items)));
  end;
end;

See Also

IsTagged