Description
The Hyperlinks collection contains all hyperlinks in a worksheet. The Worksheet.Hyperlinks property returns a Hyperlinks
collection.
C#
[DefaultMember( "Item" )] public sealed class Hyperlinks : System.Collections.Generic.IEnumerable<Hyperlink> |
vb.net
<DefaultMember( "Item" )> _ Public NotInheritable Class Hyperlinks Implements System.Collections.Generic.IEnumerable(Of Hyperlink) |
Examples
C#
ExcelApplication xla = new ExcelApplication(); Workbook wb = xla.Open( @"C:\MySpreadsheet.xls" ); Worksheet ws = wb.Worksheets[0]; Hyperlinks links = ws.Hyperlinks; |
vb.net
Dim xla As New ExcelApplication() Dim wb As Workbook = xla.Open( "C:\MySpreadsheet.xls" ) Dim ws As Worksheet = wb.Worksheets(0) Dim links As Hyperlinks = ws.Hyperlinks |
Properties
Name |
Description |
---|---|
Returns the number of hyperlinks in the worksheet. |
Indexers
Name |
Description |
---|---|
Returns the hyperlink at the specified 0-based index in the collection of hyperlinks in the worksheet. |
Methods
Name |
Description |
---|---|
Creates a new hyperlink in the specified area of cells. All cell values in the area will be converted to hyperlinks. | |
Creates a new hyperlink in the specified area of cells. All cell values in the area will be converted to hyperlinks. | |
Returns an IEnumerator for the Hyperlinks in a Worksheet |