Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

HyperlinkCollection.Clear() Method

Removes all hyperlinks from the collection.

Namespace: DevExpress.Spreadsheet

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

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