←Select platform

Clear Method

Summary
Removes all Master Forms in MasterForms and all child categories from ChildCategories and deletes them all from the local disk.

Syntax
C#
C++/CLI
Java
Python
public void Clear() 
public void clear(); 
public: 
void Clear(); 
def Clear(self): 
Remarks

The source code for this interface implementation class is available at <INSTALLDIR>\Examples\Forms\DotNet\AutoMasterFormsRepository.

The directory of this DiskMasterFormsCategory will have no Master Form or sub-directory inside it after this method is performed.

The stored Master Forms data and directories will be deleted and cannot be restored. If the user want to do a different action he can inherit this call and override this method or he can do his own implementation of IMasterFormsCategory. Be advised to have a back up copy of all Master Forms if this used this class, in case you have deleted the wrong Category.

There is no need to call DiskMasterFormsRepository.Refresh since the repository that this Master Form belongs will be updated with this deletion.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.Auto Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.