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



attributes
The Form attribute object.
pageNumber
The page being deleted from the form. The page number is a 1-based index.

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

attributes
The Form attribute object.
pageNumber
The page being deleted from the form. The page number is a 1-based index.
Deletes the specified page from the specified Form attribute object.

Syntax

Visual Basic (Declaration) 
Public Sub DeleteFormPage( _
   ByVal attributes As FormRecognitionAttributes, _
   ByVal pageNumber As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As FormRecognitionEngine
Dim attributes As FormRecognitionAttributes
Dim pageNumber As Integer
 
instance.DeleteFormPage(attributes, pageNumber)
C# 
public void DeleteFormPage( 
   FormRecognitionAttributes attributes,
   int pageNumber
)
C++/CLI 
public:
void DeleteFormPage( 
   FormRecognitionAttributes^ attributes,
   int pageNumber
) 

Parameters

attributes
The Form attribute object.
pageNumber
The page being deleted from the form. The page number is a 1-based index.

Example

For a complete example of using form recognition and processing, refer to the FormRecognitionEngine example.

This example deletes a page from the Form

Visual BasicCopy Code
''' This method deletes a page from a form attributes object for recognition.
Public Sub DeletePageFromForm(ByVal recognitionEngine As FormRecognitionEngine, ByVal pagenumber As Integer, ByVal form As FormRecognitionAttributes)
   recognitionEngine.OpenForm(form)
   recognitionEngine.DeleteFormPage(form, pagenumber)
   recognitionEngine.CloseForm(form)
End Sub
C#Copy Code
/// This method deletes a page from form attributes for recognition.
public void DeletePageFromForm(FormRecognitionEngine recognitionEngine, int pagenumber, FormRecognitionAttributes form)
{
   recognitionEngine.OpenForm(form);
   recognitionEngine.DeleteFormPage(form, pagenumber);
   recognitionEngine.CloseForm(form);
}

Remarks

The object should be a Form attribute object. To delete a page from a Master Form attribute object, call the DeleteMasterFormPagemethod.

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