Gets the default fill method for the specified page.
Syntax
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 Basic | Copy Code |
---|
Public Sub GetDefaultFillMethodExample()
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
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
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also