Skip to main content
Row

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

HyperlinkCollection.Clear() Method

In This Article

Removes all hyperlinks from the collection.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

void Clear()

#Remarks

After hyperlinks are removed, their descriptive text (Hyperlink.DisplayText) is left in the cells and the formatting of these cells is cleared.

SpreadsheetControl_HyperlinkCollection_Clear

To delete an individual hyperlink from the collection, use the HyperlinkCollection.Remove or HyperlinkCollection.RemoveAt 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).

See Also