public IMasterFormsCategory Parent { get; }
Return the parent category of this DiskMasterFormsCategory.
The source code for this interface implementation class is available at <INSTALLDIR>\Examples\Forms\DotNet\AutoMasterFormsRepository
.
Parent is the DiskMasterFormsCategory that has this category in its ChildCategories.
If the parent is null that means this category is the root category of the repository.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Forms.Common;
using Leadtools.Forms.Auto;
using Leadtools.Document;
using Leadtools.Ocr;
using Leadtools.Forms.Recognition;
using Leadtools.Forms.Processing;
using Leadtools.Barcode;
public void AutoFormsDeleteCategory(DiskMasterFormsRepository repository, string name)
{
DeleteCategory(repository.RootCategory, name);
}
public void DeleteCategory(IMasterFormsCategory category, string name)
{
if (category.Name == name && category.Parent != null)
category.Parent.DeleteChildCategory(category);
foreach (IMasterFormsCategory childCategory in category.ChildCategories)
{
DeleteCategory(childCategory, name);
}
}