THotPDF.Destroy Destructor

 

THotPDF.Destroy Destructor

THotPDF

 

למעלה  הקודם  הבא

Destroys an instance of THotPDF.

 

Delphi syntax:

destructor Destroy; override;

 

C++ syntax:

__fastcall virtual ~THotPDF( void );

 

תיאור

אין לקרוא ל-Destroy ישירות ביישום. במקום זאת, קרא ל-Free. ‏Free מוודאת שאובייקט THotPDF אינו nil ורק אז קוראת ל-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