System.Bindings.CustomWrapper.TCustomWrapper.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(Parent: TObject; MetaClass: TClass; const MemberName: String;  WrapperType: TCustomWrapperType; const GetterCallback: TCustomWrapperGetterCallback);

C++

__fastcall TCustomWrapper(System::TObject* Parent, System::TClass MetaClass, const System::UnicodeString MemberName, System::Bindings::Evalprotocol::TCustomWrapperType WrapperType, const System::Bindings::Evalprotocol::_di_TCustomWrapperGetterCallback GetterCallback);

Properties

Type Visibility Source Unit Parent
constructor public
System.Bindings.CustomWrapper.pas
System.Bindings.CustomWrapper.hpp
System.Bindings.CustomWrapper TCustomWrapper

Description

Creates a wrapper.

The Create constructor is used to create a wrapper of the given WrapperType, using the given getter callback (specified through the GetterCallback parameter) to determine the actual value of the wrapped object member. The MetaClass parameter can be used for custom operations when the parent object is nil. The metaclass usually depicts the class type of the parent or the class type from which the parent can be derived.

See Also