Data.Bind.Components.RegisterObservableMember

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RegisterObservableMember(AClasses: TArray<TClass>; const APropertyName: string; const AFrameworkExt: string);

C++

extern DELPHI_PACKAGE void __fastcall RegisterObservableMember(System::DynamicArray<System::TClass> AClasses, const System::UnicodeString APropertyName, const System::UnicodeString AFrameworkExt)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.Bind.Components.pas
Data.Bind.Components.hpp
Data.Bind.Components Data.Bind.Components

Description

Registers a property of a control that is enabled for observing.

For instance, TEdit.Text is an observable member because the TEdit control implements observer support.

  • The AClass or AClasses parameter specifies the expression class or array of classes.
  • The APropertyName parameter specifies the name of the control's property.
  • The AFrameWorkExt parameter is a string that specifies the framework.

Example

  Data.Bind.Components.RegisterObservableMember(TArray<TClass>.Create(TObservableTrackBar), 'Position', 'DFM');

See Also