The RasterDocumentCharacterOptions class contains character properties
for the final output document
Syntax
Visual Basic (Declaration) | |
---|
Public Structure RasterDocumentCharacterOptions
Inherits ValueType |
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 Basic | Copy Code |
---|
Public Sub RasterDocumentCharacterOptionsExample(ByVal sender As Object, ByVal e As System.EventArgs)
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
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
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