w:bookmarkStart (Bookmark Start)
Marks the beginning of a named bookmark range that can be targeted by hyperlinks or cross-references.
Parent elements
Description
w:bookmarkStart marks the beginning of a named bookmark. It is defined in ECMA-376 Part 1 §17.13.6.1.
Bookmarks span from w:bookmarkStart to the matching w:bookmarkEnd (with the same w:id). They are used as cross-reference targets, hyperlink anchors (via w:anchor on w:hyperlink), and by field instructions such as REF. Bookmark names must be unique within the document.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
w:id |
ST_DecimalNumber |
Non-negative integer, unique among bookmark start/end pairs. | Pairs this element with its matching w:bookmarkEnd. |
w:name |
ST_Bookmark |
Non-empty string, unique bookmark name, no spaces, max 40 chars. | The bookmark identifier used in field instructions and hyperlinks. |
w:colFirst |
xsd:integer |
Column index (for table-scoped bookmarks). | First column index when bookmark is restricted to table columns. |
w:colLast |
xsd:integer |
Column index (for table-scoped bookmarks). | Last column index when bookmark is restricted to table columns. |
Examples
<w:p>
<w:bookmarkStart w:id="0" w:name="intro"/>
<w:r><w:t>Introduction</w:t></w:r>
<w:bookmarkEnd w:id="0"/>
</w:p>
new Paragraph(
new BookmarkStart { Id = "0", Name = "intro" },
new Run(new Text("Introduction")),
new BookmarkEnd { Id = "0" });