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.
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