Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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)

...