←Select platform

Parent Property

Summary
Gets the parent of the DiskMasterFormsCategory object.

Syntax
C#
C++/CLI
Java
Python
public IMasterFormsCategory Parent { get; } 
public IMasterFormsCategory getParent(); 
public: 
property IMasterFormsCategory^ Parent { 
   IMasterFormsCategory^ get(); 
} 
Parent # get  (DiskMasterFormsCategory) 

Property Value

Return the parent category of this DiskMasterFormsCategory.

Remarks

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.

Example
C#
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; 
 
using Leadtools.Forms; 
 
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); 
   } 
} 
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.