RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TVariantProperty.GetAttributes Method

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

Pascal
function GetAttributes: TPropertyAttributes; override;
C++
virtual __fastcall TPropertyAttributes GetAttributes();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!