Leadtools.Document Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
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;}
Managed Extensions for C++ 
public: __property RasterDocumentHandprintOptions get_HandprintOptions();
public: __property void set_HandprintOptions( 
   RasterDocumentHandprintOptions value
);
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 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