Hyperlink Class

Encapsulates the object that represents a hyperlink.
Inheritance Hierarchy
SystemObject
  Aspose.CellsHyperlink

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.11.0.0 (20.11)
Syntax
public class Hyperlink

The Hyperlink type exposes the following members.

Properties
  NameDescription
Public propertyAddress
Represents the address of a hyperlink.
Public propertyArea
Gets the range of hyperlink.
Public propertyLinkType
Gets the link type.
Public propertyScreenTip
Returns or sets the ScreenTip text for the specified hyperlink.
Public propertyTextToDisplay
Represents the text to be displayed for the specified hyperlink. The default value is the address of the hyperlink.
Methods
  NameDescription
Public methodDelete
Deletes this hyperlink
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Examples
[C#]

//Instantiating a Workbook object
Workbook workbook = new Workbook();
//Adding a new worksheet to the Workbook object
workbook.Worksheets.Add();
//Obtaining the reference of the newly added worksheet by passing its sheet index
Worksheet worksheet = workbook.Worksheets[0];
//Adding a hyperlink to a URL at "A1" cell
worksheet.Hyperlinks.Add("A1", 1, 1, "http://www.aspose.com");
//Saving the Excel file
workbook.Save("C:\\book1.xls");

[Visual Basic]

'Instantiating a Workbook object
Dim workbook As Workbook = New Workbook()
'Adding a new worksheet to the Workbook object
workbook.Worksheets.Add()
'Obtaining the reference of the newly added worksheet by passing its sheet index
Dim worksheet As Worksheet = workbook.Worksheets(0)
'Adding a hyperlink to a URL at "A1" cell
worksheet.Hyperlinks.Add("A1", 1, 1, "http://www.aspose.com")
'Saving the Excel file
workbook.Save("C:\book1.xls")
See Also