RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseInetXPageProducer.CanAddClass Method

Indicates whether a specified class can be used as a child Web item.

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 Web item that implements this interface. 

AParent is the Web item that will act as a parent to the added Web item. 

AClass is the class of the proposed child Web item. 

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

 

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