docx
    Preparing search index...

    Class Bookmark

    Represents a bookmark in a WordprocessingML document.

    A bookmark identifies a location or range of content that can be referenced elsewhere, such as from a hyperlink or table of contents. The bookmark consists of a start marker, content, and an end marker.

    Reference: http://officeopenxml.com/WPbookmark.php

    <xsd:element name="bookmarkStart" type="CT_Bookmark"/>
    <xsd:element name="bookmarkEnd" type="CT_MarkupRange"/>

    <xsd:complexType name="CT_Bookmark">
    <xsd:complexContent>
    <xsd:extension base="CT_BookmarkRange">
    <xsd:attribute name="name" type="s:ST_String" use="required"/>
    </xsd:extension>
    </xsd:complexContent>
    </xsd:complexType>
    // Create a bookmark around a heading
    new Bookmark({
    id: "section1",
    children: [new TextRun("Section 1 Heading")],
    });

    // Link to the bookmark from elsewhere
    new InternalHyperlink({
    children: [new TextRun("Go to Section 1")],
    anchor: "section1",
    });
    Index

    Constructors

    Properties

    Constructors

    Properties

    children: readonly ParagraphChild[]