DesignIntf.RegisterPropertiesInCategory

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

Delphi

procedure RegisterPropertiesInCategory(const CategoryName: string; const Filters: array of const); overload;
procedure RegisterPropertiesInCategory(const CategoryName: string; ComponentClass: TClass; const Filters: array of string); overload;
procedure RegisterPropertiesInCategory(const CategoryName: string; PropertyType: PTypeInfo; const Filters: array of string); overload;

C++

extern DELPHI_PACKAGE void __fastcall RegisterPropertiesInCategory(const System::UnicodeString CategoryName, const System::TVarRec *Filters, const int Filters_High)/* overload */;

プロパティ

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

説明

複数のプロパティを特定のプロパティカテゴリに登録します。

RegisterPropertiesInCategory 関数を呼び出すと,複数のプロパティを一度に特定のカテゴリに関連付けることができます。その後,オブジェクトインスペクタでプロパティをカテゴリ別に表示すると,関連付けられたカテゴリにそれらのプロパティが表示されます。

RegisterPropertiesInCategory には 3 つのオーバーロードされたバリエーションがあり,それぞれが,プロパティカテゴリに関連付けられるプロパティを識別するための異なる基準の集合を提供します。

CategoryName は,カテゴリの名前です。これは,オブジェクトインスペクタの「View」メニュー項目に表示される文字列です。

Filters は,カテゴリに関連付けられるプロパティを識別するプロパティの名前または型の集合です。Filters が文字列の配列の場合は,プロパティ名だけがリストされます。定数の配列の場合は,AFilters は型も含むことができます。

メモ:  C++ では,Filters_Size は,Filters の最後の名前または型のインデックス(要素数より 1 小さい)です。

ComponentClass は,プロパティがカテゴリと関連付けられるコンポーネントのクラスです。

PropertyType は,登録されるプロパティの型を記述する型情報レコードです。Delphi では,TypeInfo メソッドを使用すると,特定の型のこのレコードを取得できます。C++ では,typeid メソッドを使用すると,特定のクラスのこのレコードを取得できます。C++ では,PropertyType は,単純型とともに使用できません。

関連項目