HyperlinkCollection.Clear() Method | Office File API | DevExpress Documentation Skip to main content
Row

HyperlinkCollection.Clear() Method

Removes all hyperlinks from the collection.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v26.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
Use of this site constitutes acceptance of our Website Terms of Use and Privacy Policy (Updated). Cookies Settings