THPDFPage.Height Property

 

THPDFPage.Height

THPDFPage

 

ด้านบน  ก่อนหน้า  ถัดไป

กำหนดขนาดแนวตั้งของหน้า

 

Delphi syntax:

property Height: integer;

 

C++ syntax:

__property int Height;

 

คำอธิบาย

ใช้คุณสมบัติ Height เพื่ออ่านหรือเปลี่ยนความสูงของหน้า

 

Code Example

// Creating multi-size pages in a single PDF document
HPDF.AddPage( A4, poPortrait );
Label1.Caption := 'Page 1 = ' + IntToStr( HPDF.CurrentPage.Width ) + 'x' + IntToStr( HPDF.CurrentPage.Height );

HPDF.AddPage( Letter, poLandscape );
Label2.Caption := 'Page 2 = ' + IntToStr( HPDF.CurrentPage.Width ) + 'x' + IntToStr( HPDF.CurrentPage.Height );

 

ดูเพิ่มเติม: Width, Size