Data.Bind.Components.GetControlValuePropertyName
Delphi
function GetControlValuePropertyName(AComponent: TComponent; out APropertyName: string; out AWritable: Boolean): Boolean;
function GetControlValuePropertyName(AComponent: TComponent; out APropertyName: string): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall GetControlValuePropertyName(System::Classes::TComponent* AComponent, /* out */ System::UnicodeString &APropertyName, /* out */ bool &AWritable)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.Bind.Components.pas Data.Bind.Components.hpp |
Data.Bind.Components | Data.Bind.Components |
Description
Returns the property that is used to set and get the value of a control.
The GetControlValuePropertyName method gets the property that is used to set and get the value of a control. For instance, the Text property is used to get and set the value of a TEdit component.
There are three GetControlValuePropertyName overloaded methods, each one accepting different parameters.
The AComponent
parameter specifies the control you want to get the property for.
The APropertyName
parameter is an output-only string parameter that contains the property used to set and get the value of the control given through AComponent
.
The AOptions
parameter is of type TValuePropertyOptions and contains options for the property (observable, trackable, and so on).
The AWritable
parameter specifies whether the property is writable or not.