DesignIntf.IDesigner60.GetComponentName

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function GetComponentName(Component: TComponent): string;

C++

virtual System::UnicodeString __fastcall GetComponentName(System::Classes::TComponent* Component) = 0 ;

プロパティ

種類 可視性 ソース ユニット
function public
DesignIntf.pas
DesignIntf.hpp
DesignIntf IDesigner60

説明

パラメータとして渡されたコンポーネントの名前を返します。

GetComponentName メソッドを呼び出すと,コンポーネントの名前を取得できます。これは GetComponent メソッドの反対です。

メモ:  コンポーネントが現在のルートオブジェクトにある場合,GetComponentName はコンポーネント自身の Name プロパティを返します。コンポーネントが別の実体にある場合,GetComponentName はコンポーネントが存在するオブジェクトの名前でコンポーネント名を限定します。

関連項目