Leadtools.Document Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
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 
Managed Extensions for C++ 
public __value struct RasterDocumentCharacterOptions : public 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 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