DesignIntf.RegisterPropertyInCategory

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

Delphi

procedure RegisterPropertyInCategory(const CategoryName, PropertyName: string);
procedure RegisterPropertyInCategory(const CategoryName: string; ComponentClass: TClass; const PropertyName: string); overload;
procedure RegisterPropertyInCategory(const CategoryName: string; PropertyType: PTypeInfo; const PropertyName: string); overload;
procedure RegisterPropertyInCategory(const CategoryName: string; PropertyType: PTypeInfo); overload;

C++

extern DELPHI_PACKAGE void __fastcall RegisterPropertyInCategory(const System::UnicodeString CategoryName, const System::UnicodeString PropertyName)/* overload */;

プロパティ

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

説明

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

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

プロパティは,名前(たとえば,すべての「Font」プロパティの場合),型(たとえば,TComponentName 型のすべてのプロパティの場合),またはそれらとコンポーネントの型との組み合わせ(たとえば,TField の下位オブジェクトに属するすべての Integer プロパティの場合)によって識別されます。

CategoryName は,プロパティを登録するカテゴリの名前です。

PropertyName は,登録するプロパティの名前です。

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

ComponentClass は,プロパティが指定されたカテゴリに属するコンポーネントの型です。

関連項目