LEADTOOLS Forms (Leadtools.Forms.Auto assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AddChildCategory Method
See Also 
Leadtools.Forms.Auto Namespace > DiskMasterFormsCategory Class : AddChildCategory Method



name
Category Name.

The AddChildCategory Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

name
Category Name.
Adds a new sub-category (child category) to this category on both the local disk and in ChildCategories.

Syntax

Visual Basic (Declaration) 
Public Overridable Function AddChildCategory( _
   ByVal name As String _
) As IMasterFormsCategory
Visual Basic (Usage)Copy Code
Dim instance As DiskMasterFormsCategory
Dim name As String
Dim value As IMasterFormsCategory
 
value = instance.AddChildCategory(name)
C# 
public virtual IMasterFormsCategory AddChildCategory( 
   string name
)
C++/CLI 
public:
virtual IMasterFormsCategory^ AddChildCategory( 
   String^ name
) 

Parameters

name
Category Name.

Return Value

Returns the created IMasterFormsCategory object.

Example

Visual BasicCopy Code
Public Sub AutoFormsAddCategory(ByVal category As IMasterFormsCategory, ByVal name As String)
   category.AddChildCategory(name)
End Sub
C#Copy Code
public void AutoFormsAddCategory(IMasterFormsCategory category, string name)
{
   category.AddChildCategory(name);
}

Remarks

The source code of this interface implementation class is available at <Install Directory>\Examples\DotNet\CS\AutoMasterFormsRepository.

A directory will be created on the local disk inside this category Path with name name. This created category object will be added to ChildCategories.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Forms requires a Forms Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features