[]
Represents a hyperlink cell type.
Used to display a clickable hyperlink in a cell. Supports configuring link color, visited link color, display text, tooltip, and target type. Apply it to a range via CellType.
public class HyperLinkCellType : BaseCellType
Public Class HyperLinkCellType
Inherits BaseCellType
HyperLinkCellType cellType = new HyperLinkCellType();
cellType.Text = "Google";
cellType.LinkColor = "Blue";
cellType.VisitedLinkColor = "Green";
cellType.LinkToolTip = "Search by google";
cellType.Target = HyperLinkTargetType.Self;
worksheet.Range["A1"].CellType = cellType;
worksheet.Range["A1"].Value = "https://www.google.com";
| Name | Description |
|---|---|
| HyperLinkCellType() | Initializes a new instance of the HyperLinkCellType class. |
| Name | Description |
|---|---|
| ActiveOnClick | Gets or sets whether to move to the active cell when clicked. |
| LinkColor | Gets or sets the color of the hyperlink. |
| LinkToolTip | Gets or sets the tooltip for the hyperlink. |
| Target | Gets or sets the type for the hyperlink's target. |
| Text | Gets or sets the text string for the hyperlink. |
| VisitedLinkColor | Gets or sets the color of visited links. |