Version

Insert(Int32,WorksheetHyperlink) Method

Inserts the specified hyperlink in the collection.
Syntax
public void Insert( 
   int index,
   WorksheetHyperlink hyperlink
)

Parameters

index
The 0-based index in the collection where the hyperlink should be inserted.
hyperlink
The hyperlink to insert in the collection.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionindex is less than zero or index is greater than Count.
System.ArgumentNullExceptionOccurs when the hyperlink is null.
System.ArgumentExceptionOccurs when the hyperlink already belongs to a Worksheet.Hyperlinks collection.
System.ArgumentExceptionOccurs when the hyperlink has a source cell or region from a different worksheet than the owner of the collection.
System.ArgumentExceptionOccurs when the hyperlink was created with a string address which cannot be parsed in the cell reference mode of the owning workbook.
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also