Leadtools.Forms.DocumentWriters Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
DocumentOptions Class
See Also  Members  
Leadtools.Forms.DocumentWriters Namespace : DocumentOptions Class



Asbtract base class that provides functionality common to all the format option classes in the LEADTOOLS Document Writers.

Syntax

Visual Basic (Declaration) 
Public MustInherit Class DocumentOptions 
Visual Basic (Usage)Copy Code
Dim instance As DocumentOptions
C# 
public abstract class DocumentOptions 
C++/CLI 
public ref class DocumentOptions abstract 

Example

For an example, refer to DocumentWriter.

Remarks

You cannot use the DocumentOptions class directly. Instead, you use one of the derived classes to get and set the options associated with a document format. The following table lists the document formats and the DocumentOptions derived class associated with it:
FormatClass
DocumentFormat.LtdLtdDocumentOptions
DocumentFormat.PdfPdfDocumentOptions
DocumentFormat.DocDocDocumentOptions
DocumentFormat.RtfRtfDocumentOptions
DocumentFormat.HtmlHtmlDocumentOptions
DocumentFormat.TextTextDocumentOptions
DocumentFormat.EmfEmfDocumentOptions
DocumentFormat.XpsXpsDocumentOptions
DocumentFormat.DocxDocxDocumentOptions

To change the options used with a particular format, perform the following steps:

  1. Use the DocumentWriter.GetOptions method of the DocumentWriter object you are using passing DocumentFormat desired in to the format parameter. Note that the resulting object from the base DocumentOptions class needs to be cast to an appropriate derived class described in the table above.
  2. Use the various derived class properties to change the options.
  3. Use DocumentWriter.SetOptions to set the new options in the engine.
  4. Now call the DocumentWriter.BeginDocument method (using the desired DocumentFormat value for the format parameter) to create a new document and add the pages.

Inheritance Hierarchy

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Forms.DocumentWriters requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features