Leadtools.Document Deprecated as of v16. Refer to: Leadtools.Forms.Ocr | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
GetDefaultFillMethod Method
See Also  Example
Leadtools.Document Namespace > RasterDocumentEngine Class : GetDefaultFillMethod Method



pageIndex
Specify the page index. This is a zero-based index.
pageIndex
Specify the page index. This is a zero-based index.
Gets the default fill method for the specified page.

Syntax

Visual Basic (Declaration) 
Public Function GetDefaultFillMethod( _
   ByVal pageIndex As Integer _
) As RasterDocumentFillMethod
Visual Basic (Usage)Copy Code
Dim instance As RasterDocumentEngine
Dim pageIndex As Integer
Dim value As RasterDocumentFillMethod
 
value = instance.GetDefaultFillMethod(pageIndex)
C# 
public RasterDocumentFillMethod GetDefaultFillMethod( 
   int pageIndex
)
C++/CLI 
public:
RasterDocumentFillMethod GetDefaultFillMethod( 
   int pageIndex
) 

Parameters

pageIndex
Specify the page index. This is a zero-based index.

Return Value

A RasterDocumentFillMethod value that specifies the default fill method for the specified page.
The detected fill method.

Example

Visual BasicCopy Code
Public Sub GetDefaultFillMethodExample()
   ' Note that this is a sample key, which will not work in your toolkit
   RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey")

   Dim rasterDocument As RasterDocumentEngine
   rasterDocument = RasterDocumentEngine.Instance
   rasterDocument.Startup()

   Dim fm As RasterDocumentFillMethod = rasterDocument.GetDefaultFillMethod(0)
   If fm = RasterDocumentFillMethod.Omr Then
      MessageBox.Show("The Default Fill Method that used in the specified page is Fill OMR")
   End If

   ' Note that this is a sample key, which will not work in your toolkit
   RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey")

   rasterDocument.Shutdown()
End Sub
C#Copy Code
public void GetDefaultFillMethodExample() 

   // Note that this is a sample key, which will not work in your toolkit 
   RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey"); 
 
   RasterDocumentEngine rasterDocument; 
   rasterDocument = RasterDocumentEngine.Instance; 
   rasterDocument.Startup(); 
 
   RasterDocumentFillMethod fm = rasterDocument.GetDefaultFillMethod(0); 
   if (fm == RasterDocumentFillMethod.Omr) 
      MessageBox.Show("The Default Fill Method that used in the specified page is Fill OMR"); 
   rasterDocument.Shutdown(); 
}

Remarks

Gets the global fill method for all zones in the specified page.
The method only looks into zones with the RasterDocumentFillMethod.Default value in their RasterDocumentZoneData.FillMethod property.
For more information, refer to Working with Pages.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

The Leadtools.Document namespace is deprecated and no longer supported as of LEADTOOLS v16. For v16 and later, please refer to: Leadtools.Forms.Ocr. This documentation is retained for v15 and earlier informational use only.