PDFium Delphi Component Docs

PageZoom 屬性

元件: TPdfView  ·  單元: PDFium
在目前 DisplayMode 下,將目前頁面完整放入檢視區所需的唯讀縮放比例

語法

property PageZoom[PageNumber: Integer]: Double; // read only

說明

在目前 DisplayMode 下,將目前頁面完整放入檢視區所需的唯讀縮放比例

可與 PageWidthZoom / PageHeightZoom / ActualSizeZoom 結合,實作自訂的符合按鈕

傳入 1 .. PageCount 範圍內以 1 為基底的 PageNumber,並把傳回的縮放倍率指派給 PdfView1.Zoom 來套用

備註

範例

begin
  PdfView1.Zoom := PdfView1.PageZoom[1];
  PdfView1.Active := True;
  PdfView1.Zoom := PdfView1.PageZoom[1];
end;

另請參閱

Active, Pdf, Options, Zoom