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