THotPDF.Destroy Destructor

 

THotPDF.Destroy Destructor

THotPDF

 

Atas  Sebelumnya  Berikutnya

Menghancurkan instance THotPDF

 

Delphi syntax:

destructor Destroy; override;

 

C++ syntax:

__fastcall virtual ~THotPDF( void );

 

Deskripsi

Jangan panggil Destroy secara langsung di aplikasi. Sebagai gantinya, panggil Free. Free memeriksa bahwa objek THotPDF tidak bernilai nil lalu baru memanggil Destroy

 

Contoh kode

HPDF := THotPDF.Create( nil );
try
  HPDF.FileName := 'c:\Output.pdf';
  HPDF.BeginDoc;                     // Start PDF document creation
  HPDF.CurrentPage.TextOut( 100, 100, 0, 'Hello World!' );
  HPDF.EndDoc;                       // Finish and save PDF document
finally
  HPDF.Free;
end;

 

Lihat juga: Create