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



The RasterDocumentMarkOptions structure contains the Mark properties for the final output document.

Syntax

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

Example

Visual BasicCopy Code
Public Sub RasterDocumentMarkOptionsExample()
   ' 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 markOpts As RasterDocumentMarkOptions = New RasterDocumentMarkOptions()

   markOpts = resultOpts.Mark
   markOpts.SuspectWordColor = RasterDocumentColorFlags.Blue
   markOpts.RejectionSymbolColor = RasterDocumentColorFlags.Green
   markOpts.MissingSymbolColor = RasterDocumentColorFlags.None
   markOpts.SuspectWordColor = RasterDocumentColorFlags.Red
   resultOpts.Mark = markOpts

   rasterDocument.SaveResultOptions = resultOpts

   MessageBox.Show("Separator Before Suspect Character = " & markOpts.BeforeSuspectCharacterSeparator & Constants.vbLf & "Separator Before Rejection Symbol = " & markOpts.BeforeRejectionSymbolSeparator & Constants.vbLf & "Separator Before Missing Symbol = " & markOpts.BeforeMissingSymbolSeparator & Constants.vbLf & "Separator Start Suspect Word = " & markOpts.StartSuspectWordSeparator & Constants.vbLf & "Separator End Suspect Word = " & markOpts.EndSuspectWordSeparator & Constants.vbLf & "Separator Start Line = " & markOpts.StartLineSeparator & Constants.vbLf & "Separator End Line = " & markOpts.EndLineSeparator & Constants.vbLf & "Separator Start Table Row = " & markOpts.StartTableRowSeparator & Constants.vbLf & "Separator End Table Row = " & markOpts.EndTableRowSeparator & Constants.vbLf & "Separator Start Paragraph = " & markOpts.StartParagraphSeparator & Constants.vbLf & "Separator End Paragraph = " & markOpts.EndParagraphSeparator & Constants.vbLf & "Separator Start Zone = " & markOpts.StartZoneSeparator & Constants.vbLf & "Separator End Zone = " & markOpts.EndZoneSeparator & Constants.vbLf & "Separator Start Page = " & markOpts.StartPageSeparator & Constants.vbLf & "Separator End Page = " & markOpts.EndPageSeparator)
   rasterDocument.Shutdown()
End Sub
C#Copy Code
public void RasterDocumentMarkOptionsExample() 

   RasterDocumentEngine rasterDocument; 
   rasterDocument = RasterDocumentEngine.Instance; 
   rasterDocument.Startup(); 
 
   RasterDocumentResultOptions resultOpts; 
 
   resultOpts = rasterDocument.SaveResultOptions; 
   RasterDocumentMarkOptions markOpts = new RasterDocumentMarkOptions(); 
 
   markOpts = resultOpts.Mark; 
   markOpts.SuspectWordColor = RasterDocumentColorFlags.Blue; 
   markOpts.RejectionSymbolColor = RasterDocumentColorFlags.Green; 
   markOpts.MissingSymbolColor = RasterDocumentColorFlags.None; 
   markOpts.SuspectWordColor = RasterDocumentColorFlags.Red; 
   resultOpts.Mark = markOpts; 
 
   rasterDocument.SaveResultOptions = resultOpts; 
 
   MessageBox.Show("Separator Before Suspect Character = " + markOpts.BeforeSuspectCharacterSeparator + "\n" +  
      "Separator Before Rejection Symbol = " + markOpts.BeforeRejectionSymbolSeparator + "\n" +  
      "Separator Before Missing Symbol = " + markOpts.BeforeMissingSymbolSeparator + "\n" +  
      "Separator Start Suspect Word = " + markOpts.StartSuspectWordSeparator + "\n" +  
      "Separator End Suspect Word = " + markOpts.EndSuspectWordSeparator + "\n" +  
      "Separator Start Line = " + markOpts.StartLineSeparator + "\n" +  
      "Separator End Line = " + markOpts.EndLineSeparator + "\n" +  
      "Separator Start Table Row = " + markOpts.StartTableRowSeparator + "\n" +  
      "Separator End Table Row = " + markOpts.EndTableRowSeparator + "\n" +  
      "Separator Start Paragraph = " + markOpts.StartParagraphSeparator + "\n" +  
      "Separator End Paragraph = " + markOpts.EndParagraphSeparator + "\n" +  
      "Separator Start Zone = " + markOpts.StartZoneSeparator + "\n" +  
      "Separator End Zone = " + markOpts.EndZoneSeparator + "\n" +  
      "Separator Start Page = " + markOpts.StartPageSeparator + "\n" +  
      "Separator End Page = " + markOpts.EndPageSeparator); 
 
   rasterDocument.Shutdown(); 
}

Remarks

For more information, refer to Confidence Reporting.

Inheritance Hierarchy

System.Object
   System.ValueType
      Leadtools.Document.RasterDocumentMarkOptions

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.