PDFium Delphi Component Docs

FontAscent property

Component: TPdfView  ·  Unit: PDFium
TPdfView wrapper that forwards to TPdf.FontAscent

Syntax

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

Description

Mirrors TPdf.FontAscent. The TPdfView component forwards the call to its underlying Pdf instance and refreshes the view if the call mutates the document

All semantic notes from TPdf.FontAscent apply identically here; the only difference is that you address the operation through the visual control instead of the model object

When TPdfView is bound to an external TPdf (assigning PdfView1.Pdf := Pdf1), reading this member returns the same data as Pdf1.FontAscent without addressing the model component separately

Remarks

Example

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

See Also

FontAscent, Pdf, Active