PDFium Delphi Component Docs

PageWidthZoom 屬性

元件: TPdfView  ·  單元: PDFium
可讀的縮放比例,會將頁面寬度填滿檢視區

語法

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

說明

唯讀的縮放比例,會將頁面寬度調整至符合檢視區

適合用於實作「符合寬度」工具列按鈕

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

備註

範例

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

另請參閱

Active, Pdf, Options, Zoom