aspose.cells

Class Hyperlink

Encapsulates the object that represents a hyperlink.

Example:

//Instantiating a Workbook object
var workbook = new aspose.cells.Workbook();
//Adding a new worksheet to the Workbook object
workbook.getWorksheets().add();
//Obtaining the reference of the newly added worksheet by passing its sheet index
var worksheet = workbook.getWorksheets().get(0);
//Adding a hyperlink to a URL at "A1" cell
worksheet.getHyperlinks().add("A1", 1, 1, "http://www.aspose.com");
//Saving the Excel file
workbook.save("Book1.xls");

Property Getters/Setters Summary
functiongetAddress()
function
setAddress(value)
           Represents the address of a hyperlink.
functiongetArea()
Gets the range of hyperlink.
functiongetScreenTip()
function
           Returns or sets the ScreenTip text for the specified hyperlink.
functiongetTextToDisplay()
function
           Represents the text to be displayed for the specified hyperlink. The default value is the address of the hyperlink.
 

    • Property Getters/Setters Detail

      • getAddress/setAddress : String 

        function getAddress() / function setAddress(value)
        
        Represents the address of a hyperlink.
      • getTextToDisplay/setTextToDisplay : String 

        function getTextToDisplay() / function setTextToDisplay(value)
        
        Represents the text to be displayed for the specified hyperlink. The default value is the address of the hyperlink.
      • getArea : CellArea 

        function getArea()
        
        Gets the range of hyperlink.
      • getScreenTip/setScreenTip : String 

        function getScreenTip() / function setScreenTip(value)
        
        Returns or sets the ScreenTip text for the specified hyperlink.