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
RasterDocumentCharacterOptions Structure
See Also  Members   Example
Leadtools.Document Namespace : RasterDocumentCharacterOptions Structure



The RasterDocumentCharacterOptions class contains character properties for the final output document

Syntax

Visual Basic (Declaration) 
Public Structure RasterDocumentCharacterOptions 
   Inherits ValueType
Visual Basic (Usage)Copy Code
Dim instance As RasterDocumentCharacterOptions
C# 
public struct RasterDocumentCharacterOptions : ValueType 
C++/CLI 
public value class RasterDocumentCharacterOptions : public ValueType 

Example

Visual BasicCopy Code
Public Sub RasterDocumentCharacterOptionsExample(ByVal sender As Object, ByVal e As System.EventArgs)
   ' 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 resultOpts As RasterDocumentResultOptions
   resultOpts = rasterDocument.SaveResultOptions

   Dim charOpts As RasterDocumentCharacterOptions = New RasterDocumentCharacterOptions()
   charOpts = resultOpts.Character

   ' Update Character Options...
   charOpts.OutputFont = RasterDocumentSelector.Predefined
   charOpts.Size = 24
   charOpts.Bold = True
   charOpts.Italic = False
   charOpts.Underline = True
   resultOpts.Character = charOpts

   rasterDocument.SaveResultOptions = resultOpts
   rasterDocument.Shutdown()
End Sub
C#Copy Code
public void RasterDocumentCharacterOptionsExample(object sender, System.EventArgs e) 

   RasterDocumentEngine rasterDocument; 
   rasterDocument = RasterDocumentEngine.Instance; 
   rasterDocument.Startup(); 
   RasterDocumentResultOptions resultOpts; 
   resultOpts = rasterDocument.SaveResultOptions; 
 
   RasterDocumentCharacterOptions charOpts = new RasterDocumentCharacterOptions(); 
   charOpts = resultOpts.Character; 
 
   //  Update Character Options...  
   charOpts.OutputFont = RasterDocumentSelector.Predefined; 
   charOpts.Size = 24; 
   charOpts.Bold = true; 
   charOpts.Italic = false; 
   charOpts.Underline = true; 
   resultOpts.Character = charOpts; 
 
   rasterDocument.SaveResultOptions = resultOpts; 
   rasterDocument.Shutdown(); 
}

Inheritance Hierarchy

System.Object
   System.ValueType
      Leadtools.Document.RasterDocumentCharacterOptions

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.