public class Hyperlink
Example:
//Instantiating a Workbook object
Workbook workbook = new 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
Worksheet 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("C:\\book1.xls");
Property Getters/Setters Summary | ||
---|---|---|
java.lang.String | getAddress() | |
void | setAddress(java.lang.Stringvalue) | |
Represents the address of a hyperlink. | ||
CellArea | getArea() | |
Gets the range of hyperlink.
|
||
int | getLinkType() | |
Gets the link type.
The value of the property is TargetModeType integer constant. |
||
java.lang.String | getScreenTip() | |
void | setScreenTip(java.lang.Stringvalue) | |
Returns or sets the ScreenTip text for the specified hyperlink. | ||
java.lang.String | getTextToDisplay() | |
void | setTextToDisplay(java.lang.Stringvalue) | |
Represents the text to be displayed for the specified hyperlink. The default value is the address of the hyperlink. |
Method Summary | ||
---|---|---|
void | delete() | |
Deletes this hyperlink
|
public java.lang.String getAddress() / public void setAddress(java.lang.String value)
public java.lang.String getTextToDisplay() / public void setTextToDisplay(java.lang.String value)
public CellArea getArea()
public java.lang.String getScreenTip() / public void setScreenTip(java.lang.String value)
public int getLinkType()