PDFium Delphi Component Docs

Annotation 屬性

元件: TPdfView  ·  單元: PDFium
TPdfView 包裝器,會將呼叫轉送至 TPdf.Annotation

語法

property Annotation[Index: Integer]: TPdfAnnotation;

說明

對應於 TPdf.Annotation。TPdfView 元件會將呼叫轉送至其底層的 Pdf 實體,並在呼叫變更文件時重新整理檢視

來自 TPdf.Annotation 的所有語意說明在此完全相同;唯一的差別在於您是透過視覺控制項而非模型物件來執行此操作

當 TPdfView 繫結至外部 TPdf(設定 PdfView1.Pdf := Pdf1)時,讀取這個成員會傳回與 Pdf1.Annotation 相同的資料,不必另外存取模型元件

備註

範例

if PdfView1.Active then
  Memo1.Lines.Add('Annotation = ' + PdfView1.Annotation[0].ContentsText);

另請參閱

Annotation, Pdf