# Bookmarks and Hyperlinks

## Content

[C1.Word](/componentone/api/services/online-pdf/word/dotnet-standard-api/C1.Pdf/C1.Word.html) supports document navigation through bookmarks and external navigation through hyperlinks. The [AddBookmark](/componentone/api/services/online-pdf/word/dotnet-standard-api/C1.Pdf/C1.Pdf.C1PdfDocument.AddBookmark.html) method can be called as a paired start/end sequence or as a single combined call. The [Hyperlink](/componentone/api/services/online-pdf/word/dotnet-standard-api/C1.Pdf/C1.Word.C1WordDocument.Hyperlink.html) property automatically attaches a URL to objects added after it is set.
The following example builds a two-page document with a table of contents. The contents entry links to a bookmark on the second page, and a link on that page returns the reader to the top of the contents page.

```csharp
C1WordDocument doc = new C1WordDocument();

// Place bookmark at top of TOC page
doc.AddBookmark("TableOfContents");
doc.AddParagraph("Table of Contents", new C1.Util.Font("Arial", 22, C1.Util.FontStyle.Bold), Color.DarkBlue, RtfHorizontalAlignment.Center);
doc.LineBreak();

//TOC entry — build RtfHyperlink directly
RtfHyperlink hyperlink = new RtfHyperlink("Chapter1", Color.RoyalBlue, RtfUnderlineStyle.Single);  // bookmark name as target

RtfParagraph hyperlinkText = new RtfParagraph();
hyperlinkText.Content.Add(new RtfString("1. Indtroduction →", new C1.Util.Font("Arial", 12)));
hyperlink.Content.Add(hyperlinkText);  // add content into hyperlink
doc.Add(hyperlink);  // add hyperlink to document
doc.LineBreak();

// PAGE 2 — CHAPTER 1
doc.PageBreak(false);
doc.AddBookmark("Chapter1");
doc.AddParagraph("1. Introduction", new C1.Util.Font("Arial", 16, C1.Util.FontStyle.Bold, Color.DarkBlue, RtfHorizontalAlignment.Left));
doc.AddParagraph("Introduction Content", new C1.Util.Font("Arial", 12);, Color.Black);
doc.LineBreak();

// Back to TOC link
RtfHyperlink backHyperlink = new RtfHyperlink("TableOfContents", Color.Grey, RtfUnderlineStyle.Single);
RtfParagraph backHyperlinkText = new RtfParagraph();
backHyperlinkText.Content.Add(new RtfString("↑ Back to Table of Contents", new C1.Util.Font("Arial", 12)));
backHyperlink.Content.Add(backHyperlinkText);
doc.Add(backHyperlink);
```

The document behaves like the following demonstration:
![C1Word .NET - Adding hyperlink and bookmark to a document](https://docapp.mescius.io/DOCUMENT_SITE_LINK_PREFIX_HERE/document-site-files/images/e19a89e1-cf55-4b79-a0a2-d14396fed931/hyperlink-20261014.c7745d.gif?width=400)