RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseAdapterPageProducer.ImplCanAddClass Method

Provides the underlying implementation for the CanAddClass method.

Pascal
function ImplCanAddClass(AParent: TComponent; AClass: TClass): Boolean; virtual;
C++
virtual __fastcall Boolean ImplCanAddClass(TComponent * AParent, TClass AClass);

The CanAddClass method calls ImpleCanAddClass to determine whether the TBaseAdapterPageProducer descendant can add a component of type AClass to its WebPageItems property list. AParent is the TBaseAdapterPageProducer instance to which the component will be added. 

In TBaseAdapterPageProducer, ImplCanAddClass returns true if AClass descends from TCustomAdapterForm or TCustomLayoutGroup. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!