Show: Delphi
C++
Display Preferences
MidItems.TWebControlGroup.ImplCanAddClass
From XE2 API Documentation
Delphi
function ImplCanAddClass(AParent: TComponent; AClass: TClass): Boolean; virtual;
C++
virtual bool __fastcall ImplCanAddClass(System::Classes::TComponent* AParent, System::TClass AClass);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | protected | MidItems.pas MidItems.hpp |
MidItems | TWebControlGroup |
Description
Provides the underlying implementation for the CanAddClass method.
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.