Version

Search Results

AddTextRun(TextRun) Method

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...

AddTextRun Method (WordprocessingMLWriter)

Adds a text run to the current paragraph. Overload List

Close Method (WordprocessingMLWriter)

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.

DefaultFont Property (WordprocessingMLWriter)

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...

DefaultParagraphProperties Property (WordprocessingMLWriter)

Defines the default formatting for paragraphs which have no more specific formatting attributes defined. Syntax

DefaultTableProperties Property (WordprocessingMLWriter)

Defines the default formatting for tables which have no more specific formatting attributes defined. Syntax

DefineSection Method (WordprocessingMLWriter)

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...

Dispose Method (WordprocessingMLWriter)

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.

DocumentProperties Property (WordprocessingMLWriter)

Defines the properties of the document such as Title, Author, Manager, etc. Syntax

EndDocument(Boolean) Method

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.