THotPDF.Destroy-destruktori

THotPDF.Destroy Destructor

THotPDF

Ylös Edellinen Seuraava

Tuhoaa THotPDF-instanssin

Delphi syntax:

destructor Destroy; override;

C++ syntax:

__fastcall virtual ~THotPDF( void );

Kuvaus

Älä kutsu metodia Destroy suoraan sovelluksessa. Kutsu sen sijaan metodia Free. Free varmistaa, että THotPDF-objekti ei ole nil, ja kutsuu vasta sitten metodia Destroy

Code Example

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;

See also: Create