format
The document format.
The document options for this format. Note that the returned object from the base DocumentOptions class needs to be cast to one of the derived classes based on format.
You cannot use the DocumentOptions class directly. Instead, use one of the derived classes to get and set the options associated with that 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:
For an example, refer to DocumentWriter.