NativeExcel for .Net Developer's Reference

IRange.Hyperlinks Property

Returns an IHyperlinks interface that represents the collection of hyperlinks in the specified range.

[Visual Basic]
PropertyReadOnlyHyperlinksAsIHyperlinks
[C#]
IHyperlinksHyperlinks{get;}
[C++]
__propertyIHyperlinks*get_Hyperlinks();
[JScript]
functiongetHyperlinks():IHyperlinks

Property Value

IHyperlinks interface.

Example

The following example creates a new hyperlink for cell A1.

[C#]
 book.Worksheets[1].Range.Hyperlinks.Add("A1", "http://www.nika-soft.com/");
[VisualBasic]
 book.Worksheets(1).Range.Hyperlinks.Add("A1", "http://www.nika-soft.com/")
[C++]
 book->Worksheets->Item[1]->Range->Hyperlinks->Add(S"A1", S"http://www.nika-soft.com/");
This example deletes hyperlinks from range A1:F5
[C#]
 book.Worksheets[1].Range["A1:F5"].Hyperlinks.Delete();
[VisualBasic]
 book.Worksheets(1).Range("A1:F5").Hyperlinks.Delete()
[C++]
 book->Worksheets->Item[1]->Range->Item[S"A1:F5"]->Hyperlinks->Delete();

See Also

IRange Interface | NativeExcel Namespace | IHyperlinks Interface