|
RAD Studio VCL Reference
|
Provides the underlying implementation for the CanAddFieldClass method.
function ImplCanAddFieldClass(AParent: TComponent; AClass: TClass): Boolean; override;
virtual __fastcall Boolean ImplCanAddFieldClass(TComponent * AParent, TClass AClass);
The CanAddFieldClass method calls ImplCanAddFieldClass to determine whether a specified class of adapter field can be added as a child to an adapter of this type.
AParent is a dataset adapter to which a child field may be added. It must be a descendant of TCustomDataSetAdapter.
AClass is the class of an adapter field component that may be added to AParent.
ImplCanAddFieldClass returns true if a field of type AClass can be added to AParent, false if AClass is not a valid field class for AParent.
In TCustomDataSetAdapter, ImplCanAddFieldClass returns true if AClass supports the IDataSetAdapterFieldClass interface. This includes the descendants of TBaseDataSetAdapterField (TDataSetAdapterField, TDataSetAdapterMemoField, and TDataSetAdapterImageField).
|
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
|
What do you think about this topic? Send feedback!
|