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



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

Syntax

Visual Basic (Declaration) 
Public Sub DeleteMasterFormPage( _
   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.DeleteMasterFormPage(attributes, pageNumber)
C# 
public void DeleteMasterFormPage( 
   FormRecognitionAttributes attributes,
   int pageNumber
)
C++/CLI 
public:
void DeleteMasterFormPage( 
   FormRecognitionAttributes^ attributes,
   int pageNumber
) 

Parameters

attributes
The Master Form attributes object.
pageNumber
The page of the Master Form being deleted. The page number is a 1-based index.

Example

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

This example deletes a page from the Master Form

Visual BasicCopy Code
''' This method deletes a page from a Master Form recognition attributes.
Public Sub DeletePageFromMasterForm(ByVal recognitionEngine As FormRecognitionEngine, ByVal pagenumber As Integer, ByVal form As FormRecognitionAttributes)
   recognitionEngine.OpenMasterForm(form)
   recognitionEngine.DeleteMasterFormPage(form, pagenumber)
   recognitionEngine.CloseMasterForm(form)
End Sub
C#Copy Code
/// This method deletes a page from a Master Form recognition attributes. 
public void DeletePageFromMasterForm(FormRecognitionEngine recognitionEngine, int pagenumber, FormRecognitionAttributes form) 

   recognitionEngine.OpenMasterForm(form); 
   recognitionEngine.DeleteMasterFormPage(form, pagenumber); 
   recognitionEngine.CloseMasterForm(form); 
}

Remarks

The attributes should be a Master Form attributes, this method does not work for Forms attributes. To delete a page from a Forms attributes use DeleteFormPage.

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