Back to Devexpress

TdxSkinIgnoredFormList.Add(TClass,Boolean) Method

vcl-dxskinsform-dot-tdxskinignoredformlist-dot-add-x28-system-dot-tclass-system-dot-boolean-x29.md

latest2.6 KB
Original Source

TdxSkinIgnoredFormList.Add(TClass,Boolean) Method

Adds one or more form classes to the ignore list.

Declaration

delphi
class procedure Add(AClass: TClass; AIncludeDescendants: Boolean = True);

Parameters

NameTypeDescription
AClassTClass

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.

|

Remarks

Call the Add class procedure to add one or more form classes to the ignore list.

Code Example: Repopulate the Ignore List with Individual Form Classes

The following code example clears the ignore list and repopulates it with two custom form classes without descendants:

delphi
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
cpp
#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

Other Add Methods

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

TdxSkinIgnoredFormList Class

TdxSkinIgnoredFormList Members

dxSkinsForm Unit