Leadtools.Forms.Auto Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AddChildCategory Method
See Also  Example
Leadtools.Forms.Auto Namespace > DiskMasterFormsCategory Class : AddChildCategory Method



name
Category Name.
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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

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