Leadtools.Forms.DocumentWriters Namespace : DocumentOptions Class |
public abstract class DocumentOptions
'Declaration Public MustInherit Class DocumentOptions
'Usage Dim instance As DocumentOptions
public sealed class DocumentOptions
function Leadtools.Forms.DocumentWriters.DocumentOptions()
public ref class DocumentOptions abstract
Note: In LEADTOOLS for Windows Runtime, the equivalent to this class is the IDocumentOptions interface.
You cannot use the DocumentOptions class directly. Instead, 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:
To change the options used with a particular format, perform the following steps:
Use the DocumentWriter.GetOptions method for the DocumentWriter object you are using, passing DocumentFormat desired in to the format parameter. The resulting object from the base DocumentOptions class needs to be cast to an appropriate derived class described in the previous table.
Use the various derived class properties to change the options.
Use DocumentWriter.SetOptions to set the new options for the engine.
Now call the DocumentWriter.BeginDocument method (using the desired DocumentFormat value for the format parameter) to create a new document and add the pages.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2