Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Edit Hyperlink Dialog

The Edit Hyperlink dialog allows an end-user to insert and edit hyperlinks. A hyperlink represents a link to another document or website, activated by clicking on the highlighted text or image. The Edit Hyperlink dialog specifies three types of targets for the hyperlink: an existing file or Web page, a place in the current document, or an email address.

EditHyperlinkDialogBox.png

To provide end-users with the capability to invoke the Edit Hyperlink dialog, add the Links Ribbon page group to the SpreadsheetControl. For an example on how to create a Ribbon UI, refer to the Getting Started topic.

HyperlinkInsert.png

An end-user can also insert a hyperlink by right-clicking a cell and selecting the Hyperlink… item from the context menu, or by pressing CTRL+K.

ContextMenuHyperlinkItem

To programmatically create a hyperlink and add it to the HyperlinkCollection collection, use the HyperlinkCollection.Add method. To adjust an existing hyperlink, use the properties of the Hyperlink object. You can also add a hyperlink to a picture using the Shape.InsertHyperlink method, with the hyperlink destination passed as a parameter. For an example on how to add a hyperlink to a worksheet cell, refer to the How to: Add a Hyperlink to a Cell topic.