The element a component writes, such as w:p for a paragraph, from this copy of docx or from another. Undefined
when the value isn't a component.
Checks that need to know what kind of component a child is, such as whether a cell ends with a paragraph, compare
this rather than the child's class, so they hold for components from another copy too. The element is also what
those checks are really about, because the rules they enforce are rules of the XML: a cell must end with a w:p,
and a w:r can't be inside another.
rootKey is protected, so it is read through a cast. That is safe for any copy of docx, because every component
is constructed with its element as rootKey.
The element a component writes, such as
w:pfor a paragraph, from this copy of docx or from another. Undefined when the value isn't a component.Checks that need to know what kind of component a child is, such as whether a cell ends with a paragraph, compare this rather than the child's class, so they hold for components from another copy too. The element is also what those checks are really about, because the rules they enforce are rules of the XML: a cell must end with a
w:p, and aw:rcan't be inside another.rootKeyis protected, so it is read through a cast. That is safe for any copy of docx, because every component is constructed with its element asrootKey.