Message-ID: <1210928394.9781.1711702631863.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_9780_1784807670.1711702631863" ------=_Part_9780_1784807670.1711702631863 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
WordWriter represents a Microsoft Word document as a tree, simi= lar to how Word itself represents a document. Most types of elements used w= ith WordApplication correspond= to entities that exist in an actual Word document, with some exceptions. H= ere is the recursive tree structure that WordWriter uses:
=20Document | |--Section | |--Paragraph | |=20 | |--CharacterRun | | | |--InlineImage | | | |--Field (includes Hyperlinks and MergeFields) | | | |--Field Contents | | | |--(Recurses back to Paragraph subtree) | | |--List | | | |--ListEntry | | | |-(Recurses back to Paragraph subtree) | |--Table | |-TableCell | |-(Recurses back to Section subtree)=20
The "Recurses back to ..." comments mean that the branch can c= ontinue with the same structure of elements as previously defined in the tr= ee. For example, a TableCell can con= tain a Paragraph, List, and/or another Table= a>, followed by the children those elements support, and so on.
=20As mentioned previously, not all elements in WordApplication correspond = to actual elements in a Word document. For example, the Word file format do= es not have a list structure. A list item is simply a specialized paragraph= with additional formatting. The List type was added to WordApplication to = make it easier to work with lists programmatically.
=20By default, a new Document created using WordApplication.Create() contains the following ele= ments:
=20Document | |--Section | |--Paragraph |=20 |--CharacterRun=20
For more about inserting new elements into a Word document, see Inserting elemen= ts using WordApplication.