Vcl.Graphics.TMetafile.HandleAllocated

提供:RAD Studio API Documentation

Delphi

function HandleAllocated: Boolean;

C++

bool __fastcall HandleAllocated();

プロパティ

種類 可視性 ソース ユニット 親
function public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TMetafile

説明

TMetafile オブジェクトが基底の GDI オブジェクトへのハンドルを持っているかどうかを示します。

HandleAllocated メソッドを使用すると,Handle プロパティが HMETAFILE 値に設定されているかどうかを判別できます。HandleAllocated は,基底の GDI オブジェクトが作成済みかどうかを示します。Handle プロパティを読み出すかわりに,HandleAllocated を使用します。アプリケーションが Handle プロパティを読み出すと,自動的にメタファイルが作成され,基底の GDI オブジェクトが存在しない場合はそのハンドルが返されます。

関連項目