Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can use a hyperlink cell to contain text that functions as a single hyperlink.
You can set the color of the hyperlink and change the color after the link has been accessed. You can display text in the cell that is different from the hyperlink. You can also display a tooltip.
Clicking the link opens a new page and navigates to the link URL.
Image Removed
Using Code你可以使用超链接单元格来表示一个可以点击的链接。

你可以设置超链接的颜色和已访问过超链接的颜色。

你也可以在单元格上显示一个提示。

点击该按钮,将会弹出一个标签页并打开指定的地址。
Image Added
示例代码
The following code creates a hyperlink cell.

JavaScript

Copy Code

var cellType = new GC.Spread.Sheets.CellTypes.HyperLink();cellType.linkColor("blue");cellType.visitedLinkColor("#FF2235");cellType.text("GrapeCity");cellType.linkToolTip("Company Web Site");activeSheet.getCell(1, 1).cellType(cellType).value("http://spread.grapecity.com/");activeSheet.getRange(1, -1, 1, -1).height(30);

 

See Also另见
HyperLink class
HyperLinkTargetType Enumeration