RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebForm.CanAddClass Method

Specifies whether a Web item of a specified type can be added to the WebComponents property list.

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

The Web page editor calls CanAddClass to determine what Web items can be added to supply content for the TWebForm descendant. CanAddClass calls the virtual ImplCanAddClass method to determine whether a class of Web item is valid.  

AParent is the TWebForm descendant to whose WebComponents property the Web item will be added. 

AClass is the class of the proposed child Web item. 

CanAddClass returns true if the Web form can use content generated by a component of type AClass, false otherwise. 

 

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