THotPDF.Destroy Destructor

 

THotPDF.Destroy Destructor

THotPDF

 

Boven  Vorige  Volgende

Vernietigt een exemplaar van THotPDF

 

Delphi-syntaxis:

destructor Destroy; override;

 

C++-syntaxis:

__fastcall virtual ~THotPDF( void );

 

Beschrijving

Roep Destroy niet rechtstreeks aan in een toepassing. Roep in plaats daarvan Free aan. Free controleert of het THotPDF-object niet nil is en roept pas daarna Destroy aan

 

Codevoorbeeld

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;

 

Zie ook: Create