THotPDF.Destroy Destructor

THotPDF.Destroy Destructor

THotPDF

InizioPrecedenteSuccessivo

Distrugge un'istanza di THotPDF.

Sintassi Delphi:

destructor Destroy; override;

Sintassi C++:

__fastcall virtual ~THotPDF( void );

Descrizione

Non chiamare Destroy direttamente in un'applicazione. Chiama 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