Skip to main content
A newer version of this page is available.
All docs
V19.1
.NET Standard 2.0+

Shape.AddHyperlink() Method

Associates a hyperlink with a shape object.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

Returns

Type Description
Hyperlink

A Hyperlink object that is a hyperlink associated with the shape.

Remarks

The code sample below inserts a floating picture and attaches a hyperlink to it.

XtraRichEdit_HyperlinkPicture

Document document = richEditDocumentServer.Document;
Shape picture = document.Shapes.InsertPicture(richEditDocumentServer.Document.Range.Start, DocumentImageSource.FromFile("Documents//DevExpress.png"));
Hyperlink pictureHyperlink = picture.AddHyperlink();
pictureHyperlink.NavigateUri = "https://community.devexpress.com/blogs/";
pictureHyperlink.ToolTip = "Check the recent DevExpress blogs";
See Also