Leadtools.Forms.Auto Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AddMasterForm(FormRecognitionAttributes,FormPages,Stream) Method
See Also 
Leadtools.Forms.Auto Namespace > IMasterFormsCategory Interface > AddMasterForm Method : AddMasterForm(FormRecognitionAttributes,FormPages,Stream) Method



attributes
Master Form attributes.
fields
Master Form fields.
stream
A Stream containing the name of the Master Form image data.
attributes
Master Form attributes.
fields
Master Form fields.
stream
A Stream containing the name of the Master Form image data.
Adds a new Master Form to this category in both the storage device and IMasterFormsCategory.MasterForms.

Syntax

Visual Basic (Declaration) 
Overloads Overridable Function AddMasterForm( _
   ByVal attributes As FormRecognitionAttributes, _
   ByVal fields As FormPages, _
   ByVal stream As Stream _
) As IMasterForm
Visual Basic (Usage)Copy Code
Dim instance As IMasterFormsCategory
Dim attributes As FormRecognitionAttributes
Dim fields As FormPages
Dim stream As Stream
Dim value As IMasterForm
 
value = instance.AddMasterForm(attributes, fields, stream)
C# 
virtual IMasterForm AddMasterForm( 
   FormRecognitionAttributes attributes,
   FormPages fields,
   Stream stream
)
C++/CLI 
virtual IMasterForm^ AddMasterForm( 
   FormRecognitionAttributes attributes,
   FormPages fields,
   Stream^ stream
) 

Parameters

attributes
Master Form attributes.
fields
Master Form fields.
stream
A Stream containing the name of the Master Form image data.

Return Value

Returns an object of the created IMasterForm.

Example

A full example implementation of this interface can be found in <Install Directory>\Examples\DotNet\CS\AutoMasterFormsRepository.

Remarks

Master Form information contain a form's attributes, fields, and image.

Each Master Form must have an attributes, if attributes is null, it will throw an exception.

The created Master Form is added to IMasterFormsCategory.MasterForms and should also be created on the storage device.

The repository does not need to be refreshed after this modification to the storage device since the repository is updated by this method.

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