Excerpt |
---|
WordWriter represents a Microsoft Word document as a tree, similar to how Word itself represents a document. Most types of elements used with WordApplication correspond to entities that exist in an actual Word document, with some exceptions. Here is the recursive tree structure that WordWriter uses: |
Code Block |
---|
Document | |--Section | |--Paragraph | | | |--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) |
...
By default, a new Document created using WordApplication.Create() contains the following elements:
Code Block |
---|
Document | |--Section | |--Paragraph | |--CharacterRun |
For more about inserting new elements into a Word document, see Inserting elements using WordApplication.