docx
    Preparing search index...

    Class ImportedRootElementAttributes

    Represents attributes for imported root elements.

    This class is used internally to handle attributes on root elements that are being imported from external XML. It passes through the attributes without transformation.

    const attrs = new ImportedRootElementAttributes({
    "xmlns:w": "http://schemas.openxmlformats.org/wordprocessingml/2006/main"
    });

    Hierarchy (View Summary)

    Index
    • get writtenAs(): readonly BaseXmlComponent[] | undefined
      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.

      Returns readonly BaseXmlComponent[] | undefined