DesignEditors.GetComponentEditor
Delphi
function GetComponentEditor(Component: TComponent; const Designer: IDesigner): IComponentEditor;
C++
extern DELPHI_PACKAGE Designintf::_di_IComponentEditor __fastcall GetComponentEditor(System::Classes::TComponent* Component, const Designintf::_di_IDesigner Designer);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | DesignEditors.pas DesignEditors.hpp |
DesignEditors | DesignEditors |
説明
指定されたフォーム デザイナ上で指定されたコンポーネント用のコンポーネント エディタを返します。
指定されたコンポーネントのクラスに、コンポーネント エディタが割り当てられている場合、GetComponentEditor はそのコンポーネント エディタを返します。そうでなければ、すでにコンポーネント エディタが割り当てられている Component
の中から、最も近い祖先に割り当てられているコンポーネント エディタを返します。
指定されたコンポーネント クラスのコンポーネントに、割り当てられているコンポーネント エディタがなかった場合、GetComponentEditor は、デフォルト エディタのインスタンスを返します。