vcl-dxskinsform-dot-tdxskinignoredformlist-dot-add-x28-system-dot-tclass-system-dot-boolean-x29.md
Adds one or more form classes to the ignore list.
class procedure Add(AClass: TClass; AIncludeDescendants: Boolean = True);
| Name | Type | Description |
|---|---|---|
| AClass | TClass |
The reference to the target form class.
| | AIncludeDescendants | Boolean |
Optional. Specifies if the procedure adds all descendants of the target form class to the ignore list.
Pass False as this parameter to add only the target form class (AClass) to the ignore list.
|
Call the Add class procedure to add one or more form classes to the ignore list.
The following code example clears the ignore list and repopulates it with two custom form classes without descendants:
uses
dxSkinsForm; // Declares the TdxSkinIgnoredFormList class
// ...
TdxSkinIgnoredFormList.Clear; // Clears the ignore list
TdxSkinIgnoredFormList.Add(TMyFormClass1, False); // Adds TMyFormClass1 without descendants
TdxSkinIgnoredFormList.Add(TMyFormClass2, False); // Adds TMyFormClass2 without descendants
#include "dxSkinsForm.hpp" // Declares the TdxSkinIgnoredFormList class
// ...
TdxSkinIgnoredFormList::Clear(); // Clears the ignore list
TdxSkinIgnoredFormList::Add(__classid(TMyFormClass1), false); // Adds TMyFormClass1 without descendants
TdxSkinIgnoredFormList::Add(__classid(TMyFormClass2), false); // Adds TMyFormClass2 without descendants
AddClassNameAdds the specified form class name to the ignore list.AddQualifiedClassNameAdds one or more qualified form class names to the ignore list. See Also
TdxSkinIgnoredFormList.Clear Class Procedure
TdxSkinIgnoredFormList.Remove Class Procedure