THotPDF.Destroy Destructor

 

THotPDF.Destroy Destructor

THotPDF

 

顶部  上一页  下一页

Destroys an instance of THotPDF.

 

Delphi 语法:

destructor Destroy; override;

 

C++ 语法:

__fastcall virtual ~THotPDF( void );

 

说明

应用程序中不要直接调用 Destroy。请改为调用 Free。Free 会确认 THotPDF 对象不为 nil,然后才调用 Destroy

 

代码示例

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;

 

另请参阅: Create