DesignEditors.TComponentNameProperty.GetAttributes
Delphi
function GetAttributes: TPropertyAttributes; override;
C++
virtual Designintf::TPropertyAttributes __fastcall GetAttributes(void);
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| function | public | DesignEditors.pas DesignEditors.hpp |
DesignEditors | TComponentNameProperty |
説明
[オブジェクト インスペクタ]に適切なコントロールが用意されるようにプロパティを記述します。 {{#multireplace:DesignEditors.TComponentNameProperty.GetAttributes|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} は {{#multireplace:DesignEditors.TPropertyEditor.GetAttributes|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} を継承しています。以下の内容はすべて {{#multireplace:DesignEditors.TPropertyEditor.GetAttributes|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} を参照しています。
[オブジェクト インスペクタ]に適切なコントロールが用意されるようにプロパティを記述します。
[オブジェクト インスペクタ]では、GetAttributes を呼び出して、プロパティに対して表示すべきコントロールと呼び出すべきプロパティ エディタ メソッドを決定します。TPropertyEditor の GetAttributes メソッドは [paMultiSelect, paRevertable] を返します。関連付けられているプロパティの属性に対応する値セットを返すには、GetAttributes をオーバーライドします。
[オブジェクト インスペクタ]で Activate メソッドが呼び出されるまでは、GetAttributes は paSubProperties、paVCL、paMultiSelect 以外の属性に関する正確な情報を提供する必要はありません。
TPropertyAttribute の値の一覧と定義については、「エディタ属性の指定」を参照してください。