DesignEditors.TPropertyEditor.GetValue

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
DesignEditors.pas
DesignEditors.hpp
Unit: DesignEditors
Parent: TPropertyEditor

Delphi

function GetValue: string; virtual;

C++

virtual System::UnicodeString __fastcall GetValue();

Description

Returns the property value formatted as a string.

GetValue formats the value of the property, formatted as a string. If the value is not available, GetValue raised an exception.

As implemented in TPropertyEditor, GetValue returns the string "(unknown)". Descendant classes override this method to provide an appropriate value string or raise an exception.

GetValue is the read access method of the Value property.

Note: To obtain an error string when the property value is unavailable rather than raising an exception, you can call the GetEditValue method. GetEditValue is protected, but can be called through the IProperty interface in code that is not a method of a descendant class.

See Also