DesignEditors.TPropertyEditor.GetAttributes

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetAttributes: TPropertyAttributes; virtual;

C++

virtual Designintf::TPropertyAttributes __fastcall GetAttributes();

Properties

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

Description

Describes the property so the Object Inspector provides the appropriate controls.

The Object Inspector calls GetAttributes to determine what controls to display for the property and what property editor methods to call. The GetAttributes method of TPropertyEditor returns [paMultiSelect, paRevertable]. Override GetAttributes to return the set of values that corresponds to the attributes of the associated property.

Before the Object Inspector calls the Activate method, GetAttributes does not need to provide accurate information about any attributes other than paSubProperties, paVCL, and paMultiSelect.

The TPropertyAttributes are listed and defined in Specifying Editor Attributes.

See Also