Internal
The components written in this one's place, one after another, when it can't be written as a single element, such as a run with another run in its children. Undefined when it is written as itself.
Adds a child element to this component.
The child component or text string to add
This component (for chaining)
Formats the endnotes, with the page numbers worked out for their document written into their fields, when the document's body is written with an estimate of its pages.
Base class for all XML components in WordprocessingML documents.
XmlComponent provides the infrastructure for building XML element trees that are serialized into document.xml and other parts of the DOCX package. It manages a collection of child components and handles the conversion to the intermediate object format used by the xml serialization library.
Example