[]
Specifies the target location where a hyperlink is opened.
Use this enum to control whether a hyperlink opens in a new window or tab, the current frame, the parent frame, or the full browser window body.
public enum HyperLinkTargetType
Public Enum HyperLinkTargetType
HyperLinkCellType cellType = new HyperLinkCellType();
cellType.Text = "Example Website";
cellType.Target = HyperLinkTargetType.Self;
worksheet.Range["A1"].CellType = cellType;
worksheet.Range["A1"].Value = "https://www.example.com/";
| Name | Description |
|---|---|
| Blank | Opens the hyperlinked document in a new window or tab. |
| Parent | Opens the hyperlinked document in the parent frame. |
| Self | Opens the hyperlinked document in the same frame where the user clicked. |
| Top | Opens the hyperlinked document in the full body of the window. |