DesignIntf.RegisterPropertyInCategory

From RAD Studio API Documentation
Jump to: navigation, search

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 */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
DesignIntf.pas
DesignIntf.hpp
DesignIntf DesignIntf

Description

Registers a single property in a specific property category.

Call RegisterPropertyInCategory to associate a property with a specific category. Then, when the Object Inspector displays properties by category, the property appears under the associated category.

Properties can be identified by name (for example, all "Font" properties), by type (for example, all properties that are of type TComponentName), or by a combination of one of these and a component type (for example, all Integer properties belonging to a TField descendant).

CategoryName is the name of the property category with which you are registering a property.

PropertyName is the name of the property to register.

PropertyType is the type information record that describes the type of the property being registered. In Delphi, you can use the TypeInfo method to obtain this record for a type. In C++, you can use the typeid method to obtain this record for a class. PropertyType can't be used with simple types in C++.

ComponentClass is the type of component whose properties fall in the specified category.

See Also