Skip to main content
.NET Framework 4.5.2+

SubDocument.Hyperlinks Property

Provides access to a collection of hyperlinks in the document.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v22.1.Core.dll


Property Value

Type Description

A HyperlinkCollection interface which exposes a collection of hyperlinks.


Use the HyperlinkCollection.Create method to add a new hyperlink.


The hyperlink attached to a shape is not added to the HyperlinkCollection. Check the Shape.Hyperlink property to retrieve the hyperlink.


The code snippet below finds a specific range in the document and converts it to a hyperlink with the specified URI and tooltip:


using DevExpress.XtraRichEdit;
using DevExpress.XtraRichEdit.API.Native;

using (var wordProcessor = new RichEditDocumentServer())
  Document document = wordProcessor.Document;

  // Find a specific text string
  DocumentRange[] foundRanges =
          document.FindAll("DevExpress WinForms Rich Text Editor",

  if (foundRanges.Length > 0)
      // Convert the found range to a hyperlink
      Hyperlink hyperlink =  document.Hyperlinks.Create(foundRanges[0]);

      // Specify the URI and the tooltip
      hyperlink.NavigateUri =
      hyperlink.ToolTip = "WinForms Rich Text Editor";

The following code snippets (auto-collected from DevExpress Examples) contain references to the Hyperlinks property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also