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)
Internal
The id of the endnote that a reference run brings with it, which is added to the endnotes the first time the run is written, with an id no other endnote has. Word has endnotes only in a document's body, so a run written anywhere else, such as in a header, has none, and its endnote isn't added.
The run, which has the same endnote each time it is written
The endnote's content
The context the run is written in
The endnote's id, or undefined outside the document's body
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