PDFium Delphi Component Docs

FontAscent 屬性

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

語法

property FontAscent[Index: Integer; FontSize: Single]: Single;

說明

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

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

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

備註

範例

if PdfView1.Active then
  Memo1.Lines.Add('FontAscent = ' + FloatToStr(PdfView1.FontAscent[0, 12.0]));

另請參閱

FontAscent, Pdf, Active