DesignEditors.TComponentProperty.GetAttributes

提供: RAD Studio API Documentation
2011年10月17日 (月) 22:46時点におけるPyBot (トーク | 投稿記録)による版 (ページの作成: {{#lst:API:DesignEditors.TComponentProperty.GetAttributes|api}} ==説明== {{#lsth:API:DesignEditors.TComponentProperty.GetAttributes|説明}})
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索

Delphi

function GetAttributes: TPropertyAttributes; override;

C++

virtual Designintf::TPropertyAttributes __fastcall GetAttributes();

プロパティ

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

説明

[オブジェクト インスペクタ]に適切なコントロールが用意されるようにプロパティを記述します。

DesignEditors.TComponentProperty.GetAttributes は DesignEditors.TPropertyEditor.GetAttributes を継承しています。以下の内容はすべて DesignEditors.TPropertyEditor.GetAttributes を参照しています。


[オブジェクト インスペクタ]に適切なコントロールが用意されるようにプロパティを記述します。


[オブジェクト インスペクタ]では、GetAttributes を呼び出して、プロパティに対して表示すべきコントロールと呼び出すべきプロパティ エディタ メソッドを決定します。TPropertyEditorGetAttributes メソッドは [paMultiSelect, paRevertable] を返します。関連付けられているプロパティの属性に対応する値セットを返すには、GetAttributes をオーバーライドします。

[オブジェクト インスペクタ]で Activate メソッドが呼び出されるまでは、GetAttributes は paSubProperties、paVCL、paMultiSelect 以外の属性に関する正確な情報を提供する必要はありません。

TPropertyAttribute の値の一覧と定義については、「エディタ属性の指定」を参照してください。

関連項目