DesignEditors.TEnumProperty.SetValue
Delphi
procedure SetValue(const Value: string); override;
C++
virtual void __fastcall SetValue(const System::UnicodeString Value)/* overload */;
inline void __fastcall SetValue(const System::WideString Value){ TPropertyEditor::SetValue(Value); }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | DesignEditors.pas DesignEditors.hpp |
DesignEditors | TEnumProperty |
Description
Responds when the user changes the value of the property.
DesignEditors.TEnumProperty.SetValue inherits from DesignEditors.TPropertyEditor.SetValue. All content below this line refers to DesignEditors.TPropertyEditor.SetValue.
Responds when the user changes the value of the property.
Do not call SetValue. It is called automatically by the Object Inspector when the user has finished changing the property value. The SetValue method for TPropertyEditor does nothing. Descendant classes override SetValue to apply the value entered by the user (represented by the Value parameter) to all components that can be returned by the GetComponent method.
For many property editors, SetValue need only translate the Value string into an appropriate value and call SetFloatValue, SetMethodValue, SetOrdValue, SetStrValue, or SetVarValue. For properties that do not correspond to a float, method, ordinal, string, or variant, however, SetValue must directly propagate the new value to every component and then call the Modified method. If the value can't be set, SetValue should raise an exception that describes the problem.
Note: If the property is changed only through a dialog brought up by the Edit method, SetValue need not be overridden.