NativeExcel2 for .Net Developer's Reference

IHyperlinks.DeleteMethod

Deletes all hyperlinks from a IHyperlinks collection.

[Visual Basic]
SubDelete()
[C#]
voidDelete();
[C++]
voidDelete();
[JScript]
functionDelete();

Example

This example deletes all hyperlinks from worksheet one.

[C#]
book.Worksheets[1].Heperlinks.Delete();
[VisualBasic]
book.Worksheets(1).Heperlinks.Delete()
[C++]
book->Worksheets->Item[1]->Hyperlinks->Delete();
This example deletes all hyperlinks from a range A1:C5.
[C#]
book.Worksheets[1].Range["A1:C5"].Heperlinks.Delete();
[VisualBasic]
book.Worksheets(1).Range("A1:C5").Heperlinks.Delete()
[C++]
book->Worksheets->Item[1]->Range->Item[S"A1:C5"]->Hyperlinks->Delete();

See Also

IHyperlinks Interface | NativeExcel Namespace | IWorksheet.Hyperlinks Property | IRange.Hyperlinks Property | IHyperlink Interface