DesignEditors.TPropertyEditor.Initialize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Initialize; override;

C++

virtual void __fastcall Initialize();

Properties

Type Visibility Source Unit Parent
procedure
function
public
DesignEditors.pas
DesignEditors.hpp
DesignEditors TPropertyEditor

Description

Initializes the property editor after it is created but before it is used.

Do not call the Initialize method. It is called automatically by the Object Inspector to allow property editors to perform any necessary initialization before they are used. The Initialize method of TPropertyEditor does nothing. Override the Initialize method to perform any special initialization, such as the creation of helper objects.

Property editors are often created and discarded without being used because they do not represent a common property across all selected components. Since Initialize is called only after it is determined that the property editor will be used, it is more efficient to initialize property values and create helper objects in the Initialize method rather than the constructor.

See Also