THotPDF.Destroy Destructor

 

THotPDF.Destroy Destructor

THotPDF

 

Inizio  Precedente  Successivo

Destroys an instance of THotPDF.

 

Sintassi Delphi:

destructor Destroy; override;

 

Sintassi C++:

__fastcall virtual ~THotPDF( void );

 

Descrizione

Non chiamare direttamente Destroy in un'applicazione. Chiamare invece Free. Free verifica che l'oggetto THotPDF non sia nil e solo allora chiama Destroy

 

Example di codice

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;

 

Vedi anche: Create