NativeExcel2 for .Net Developer's Reference

IWorksheet.Hyperlinks Property

Returns an IHyperlinks interface that represents the hyperlinks for the specified worksheet.

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

Property Value

IHyperlinks interface.

Example

This example adds a hyperlink to cell D3.

[C#]
book.Worksheets[1].Hyperlinks.Add("D3", "http://www.nika-soft.com/");   
[VisualBasic]
book.Worksheets(1).Hyperlinks.Add("D3", "http://www.nika-soft.com/")   
[C++]
book->Worksheets->Item[1]->Hyperlinks->Add(S"D3", S"http://www.nika-soft.com/");   
This example changes ScreenTip of hyperlink one on worksheet one.
[C#]
book.Worksheets[1].Hyperlinks[1].ScreenTip = "First hyperlink on worksheet";
[VisualBasic]
book.Worksheets(1).Hyperlinks(1).ScreenTip = "First hyperlink on worksheet"
[C++]
book->Worksheets->Item[1]->Hyperlinks->Item[1]->ScreenTip = 
     S"First hyperlink on worksheet"; 
This example deletes hyperlinks from worksheet one.
[C#]
book.Worksheets[1].Hyperlinks.Delete(); 
[VisualBasic]
book.Worksheets(1).Hyperlinks.Delete(); 
[C++]
book->Worksheets->Item[1]->Hyperlinks->Delete(); 

See Also

IWorksheet Interface | NativeExcel Namespace | IHyperlinks Interface