System.Bindings.Factories.TBindingScopeFactory.GetBestFitScope
Delphi
class function GetBestFitScope(ObjectType: TClass): TScopeClass;
C++
__classmethod System::Bindings::Customscope::TScopeClass __fastcall GetBestFitScope(System::TClass ObjectType);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Bindings.Factories.pas System.Bindings.Factories.hpp |
System.Bindings.Factories | TBindingScopeFactory |
Description
Returns the scope class associated with the given object type.
The GetBestFitScope method returns the scope class associated with the given object type. If the object type is not registered, GetBestFitScope returns the scope class for the closest registered ancestor for the given object type. If no ancestor is found, GetBestFitScope returns nil.