The Clear Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
Removes all Master Forms in MasterForms and all child categories from ChildCategories and deletes them all from the local disk.Visual Basic (Declaration) | |
---|---|
Public Overridable Sub Clear() |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As DiskMasterFormsCategory instance.Clear() |
C# | |
---|---|
public virtual void Clear() |
C++/CLI | |
---|---|
public: virtual void Clear(); |
The source code of this interface implementation class is available at <Install Directory>\Examples\DotNet\CS\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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7