Adds a text run to the current paragraph. Syntax Parameters textRun A TextRun instance which defines the properties of the text run. Exceptions Exception Description WordDocumentWriterException Thrown if no document or paragraph is currently open. WordDocumentWriterXmlWriterException Thrown if the XmlWriter used t...
Adds a text run to the current paragraph. Overload List
Closes the writer and finalizes content. Syntax Remarks If the StartDocument has not been called prior to calling this method, this method does nothing. If the StartDocument method was previously called, but the EndDocument method was not, the EndDocument method is called by this method before proceeding.
Returns the font that determines the formatting for all text runs which do not have more specific formatting attributes defined. Syntax Remarks The DefaultFont property can be used to assign a document-level font, the attributes of which all text runs acquire when no more specific setting exists. For example, to i...
Defines the default formatting for paragraphs which have no more specific formatting attributes defined. Syntax
Defines the default formatting for tables which have no more specific formatting attributes defined. Syntax
Creates a section in the document, which defines the pagination for paragraphs and tables that were written since the last section was created. Syntax Parameters properties A SectionProperties instance which defines properties such as page size, margins, and orientation. An new instance of this class can be obtain...
Closes any open streams and releases any resources being use by this object. Syntax Remarks If the document has been properly started but has not yet been closed by a call to the EndDocument method, the EndDocument method is automatically called prior to closing and disposing the stream.
Defines the properties of the document such as Title, Author, Manager, etc. Syntax
Closes a previously opened document, optionally closing the writer. Syntax Parameters closeWriter A boolean value which specifies whether the writer should also be closed. Exceptions Exception Description WordDocumentWriterException Thrown if no document is currently open.