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