...
Here is an example Word document before running either of the code samples above:
SCREEN SHOT BEFORE CODE
SCREEN SHOT AFTER CODE
Here is the output from the example after running either of the code samples:
List of Insert Behaviors
The following table lists some common examples of how WordWriter behaves when a Create or Insert method is called on different elements.
...
- Parent element: Element on which
InsertXBefore
orInsertXAfter
is called. - Element to be inserted: Type of element which is being inserted. Use the appropriate
InsertXBefore
orInsertXAfter
for this type. - InsertXBefore Behavior: What the
InsertXBefore
method does in this case. - InsertXAfter Behavior: What the
InsertXAfter
method does in this case.
...