Leadtools.Document Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
GetDefaultFillMethod Method
See Also  Example
Leadtools.Document Namespace > RasterDocumentEngine Class : GetDefaultFillMethod Method




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
)
Managed Extensions for 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 FillMethod property.
For more information, refer to Working with Pages.

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

Leadtools.Documentrequires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features