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



formOptions
A structure which specifies the form options.
formOptions
A structure which specifies the form options.
Creates a new form, with the specified options, for use in recogniton. It returns a FormRecognitionEngine object that you can use for creating any Form.

Syntax

Visual Basic (Declaration) 
Public Function CreateForm( _
   ByVal formOptions As FormRecognitionOptions _
) As FormRecognitionAttributes
Visual Basic (Usage)Copy Code
Dim instance As FormRecognitionEngine
Dim formOptions As FormRecognitionOptions
Dim value As FormRecognitionAttributes
 
value = instance.CreateForm(formOptions)
C++/CLI 
public:
FormRecognitionAttributes^ CreateForm( 
   FormRecognitionOptions^ formOptions
) 

Parameters

formOptions
A structure which specifies the form options.

Example

For a complete example on using the forms recognition and processing, refer to the FormRecognitionEngine example.

This example creates a Form.

Visual BasicCopy Code
''' This method creates a form attributes for recognition.
Public Function CreateForm(ByVal recognitionEngine As FormRecognitionEngine) As FormRecognitionAttributes
   Dim attributes As FormRecognitionAttributes = recognitionEngine.CreateForm(Nothing)
   recognitionEngine.CloseForm(attributes)
   Return attributes
End Function
C#Copy Code
/// This method creates a form attributes for recognition. 
public FormRecognitionAttributes CreateForm(FormRecognitionEngine recognitionEngine) 

   FormRecognitionAttributes attributes = recognitionEngine.CreateForm(null); 
   recognitionEngine.CloseForm(attributes); 
   return attributes; 
}

Remarks

This methods is used to create form attributes to the Forms (filled form), the attributes that are generated using this method cannot be used as a Master Form attributes.

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