RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataGrid.ImplCanAddClass Method

Provides the underlying implementation for the CanAddClass method.

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

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

In TWebControlGroup, ImplCanAddClass always returns true. TWebControlGroup descendants override ImplCanAddClass to indicate what types of Web Items they can use when generating their HTML content. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!