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



The RasterDocumentParagraphOptions class contains the Paragraph properties for the final output document.

Syntax

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

Example

Visual BasicCopy Code
Public Sub MyClassExample()
   ' 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 paragraphOpts As RasterDocumentParagraphOptions = New RasterDocumentParagraphOptions()
   paragraphOpts = resultOpts.Paragraph

   ' Update Paragraph Options....
   paragraphOpts.BeforeModeSpace = RasterDocumentSelector.Predefined
   paragraphOpts.SpaceBefore = 2
   paragraphOpts.ParagraphIndentMode = RasterDocumentSelector.Predefined
   paragraphOpts.FirstLineIndent = 2
   paragraphOpts.LineSpacingMode = RasterDocumentSelector.Predefined
   paragraphOpts.LineSpacing = RasterDocumentLineSpacing.One
   paragraphOpts.AlignmentMode = RasterDocumentSelector.Predefined
   paragraphOpts.Alignment = RasterDocumentAlignment.LeftAlignment

   resultOpts.Paragraph = paragraphOpts
   rasterDocument.SaveResultOptions = resultOpts
   rasterDocument.Shutdown()
End Sub
C#Copy Code
public void MyClassExample() 

   RasterDocumentEngine rasterDocument;  
   rasterDocument = RasterDocumentEngine.Instance; 
   rasterDocument.Startup(); 
 
   RasterDocumentResultOptions resultOpts; 
   resultOpts = rasterDocument.SaveResultOptions; 
 
   RasterDocumentParagraphOptions paragraphOpts = new RasterDocumentParagraphOptions(); 
   paragraphOpts = resultOpts.Paragraph; 
 
   //  Update Paragraph Options....  
   paragraphOpts.BeforeModeSpace = RasterDocumentSelector.Predefined; 
   paragraphOpts.SpaceBefore = 2; 
   paragraphOpts.ParagraphIndentMode = RasterDocumentSelector.Predefined; 
   paragraphOpts.FirstLineIndent = 2; 
   paragraphOpts.LineSpacingMode = RasterDocumentSelector.Predefined; 
   paragraphOpts.LineSpacing = RasterDocumentLineSpacing.One; 
   paragraphOpts.AlignmentMode = RasterDocumentSelector.Predefined; 
   paragraphOpts.Alignment = RasterDocumentAlignment.LeftAlignment; 
 
   resultOpts.Paragraph = paragraphOpts; 
   rasterDocument.SaveResultOptions = resultOpts; 
 
   rasterDocument.Shutdown(); 
}

Inheritance Hierarchy

System.Object
   System.ValueType
      Leadtools.Document.RasterDocumentParagraphOptions

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.