DesignEditors.TEnumProperty.GetAttributes

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

Delphi

function GetAttributes: TPropertyAttributes; override;

C++

virtual Designintf::TPropertyAttributes __fastcall GetAttributes();

プロパティ

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

説明

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

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


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


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

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

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

関連項目