officefileapi-devexpress-dot-spreadsheet-dot-hyperlinkcollection-dot-remove-x28-devexpress-dot-spreadsheet-dot-hyperlink-x29.md
Removes the specified hyperlink from the collection.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
void Remove(
Hyperlink hyperlink
)
Sub Remove(
hyperlink As Hyperlink
)
| Name | Type | Description |
|---|---|---|
| hyperlink | Hyperlink |
A Hyperlink object to be removed from the collection.
|
After a hyperlink is removed, its descriptive text (Hyperlink.DisplayText) is left in a cell and the formatting of this cell is cleared.
To remove a hyperlink by its index in the collection, use the HyperlinkCollection.RemoveAt method. To remove all hyperlinks from the collection, use the HyperlinkCollection.Clear method. To delete hyperlinks from the specified range of cells, use the Worksheet.ClearHyperlinks method.
To add a hyperlink into a cell or cell range, use the HyperlinkCollection.Add method (see the How to: Add a Hyperlink to a Cell example).
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Remove(Hyperlink) method.
Note
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.
Dim hyperlinkD5 As Hyperlink = worksheet.Hyperlinks.GetHyperlinks(worksheet("D5"))(0)
worksheet.Hyperlinks.Remove(hyperlinkD5)
' Remove comments from cells.
See Also