Back to Devexpress

HyperlinkCollection.Clear() Method

officefileapi-devexpress-dot-spreadsheet-dot-hyperlinkcollection.md

latest2.0 KB
Original Source

HyperlinkCollection.Clear() Method

Removes all hyperlinks from the collection.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void Clear()
vb
Sub Clear

Remarks

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

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

HyperlinkCollection Interface

HyperlinkCollection Members

DevExpress.Spreadsheet Namespace