docx
    Preparing search index...

    Function createStringElement

    • Creates a string element using the builder pattern.

      This is an alternative to StringValueElement that uses BuilderElement for more explicit attribute naming.

      Parameters

      • name: string

        The XML element name

      • value: string

        The string value

      Returns XmlComponent

      An XmlComponent with the string value

      createStringElement("w:pStyle", "Heading1");
      // Generates: <w:pStyle w:val="Heading1"/>