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
HandprintOptions Property
See Also  Example
Leadtools.Document Namespace > RasterDocumentEngine Class : HandprintOptions Property



The hand print options.

Syntax

Visual Basic (Declaration) 
Public Property HandprintOptions As RasterDocumentHandprintOptions
Visual Basic (Usage)Copy Code
Dim instance As RasterDocumentEngine
Dim value As RasterDocumentHandprintOptions
 
instance.HandprintOptions = value
 
value = instance.HandprintOptions
C# 
public RasterDocumentHandprintOptions HandprintOptions {get; set;}
C++/CLI 
public:
property RasterDocumentHandprintOptions HandprintOptions {
   RasterDocumentHandprintOptions get();
   void set (RasterDocumentHandprintOptions value);
}

Return Value

A RasterDocumentHandprintOptions structure that specifies the hand print options.

Example

Visual BasicCopy Code
Public Sub HandprintOptionsPropertyExample()
   ' 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 hnr As RasterDocumentHandprintOptions = New Leadtools.Document.RasterDocumentHandprintOptions()
   hnr = rasterDocument.HandprintOptions

   If hnr.Style <> RasterDocumentHandRecognizeStyle.US Then
      hnr.Style = RasterDocumentHandRecognizeStyle.US
   End If

   hnr.EnableSpace = False
   hnr.CharacterHeight = 6
   hnr.CharacterWidth = 4
   hnr.CharacterSpace = 1

   rasterDocument.HandprintOptions = hnr
   rasterDocument.Shutdown()
End Sub
C#Copy Code
public void HandprintOptionsPropertyExample() 

   // 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(); 
 
   RasterDocumentHandprintOptions hnr = new RasterDocumentHandprintOptions(); 
   hnr = rasterDocument.HandprintOptions; 
 
   if (hnr.Style != RasterDocumentHandRecognizeStyle.US) 
      hnr.Style = RasterDocumentHandRecognizeStyle.US; 
 
   hnr.EnableSpace = false; 
   hnr.CharacterHeight = 6; 
   hnr.CharacterWidth = 4; 
   hnr.CharacterSpace = 1; 
 
   rasterDocument.HandprintOptions = hnr; 
   rasterDocument.Shutdown(); 
}

Remarks

This property will be used only when the recognition module is RasterDocumentRecognizeModule.HandPrintedNumeral.

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.