Description |
---|
Excerpt |
---|
Represents a hyperlink in an Area (which may contain only one cell) that points to an external URL. |
Signature | C# | C# |
---|---|---|
Wiki Markup | ||
{description}
{excerpt}Represents a hyperlink in an [Area|Area] (which may contain only one cell) that points to an external URL.{excerpt}
{signature:C#}
public sealed class Hyperlink
| ||
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public NotInheritable Class Hyperlink
|
Remarks |
---|
To create a Hyperlink object, call Cell.CreateHyperlink or Area.CreateHyperlink. To get an existing A Hyperlink only represents a URL to an external resource such as a web site. To create a link to another location in the workbook, you will need to use Excel's Hyperlink formula. You will need to surround the destination cell in quotes and preface it with a pound sign. For example, a cell with formula =HYPERLINK("#DestinationWorksheet!B3", "Link to B3") will contain the text "Link to B3", and if you click on that text it will bring you to cell B3 on the worksheet named DestinationWorksheet. |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vbnet | vbnet | title |
Properties |
---|
...
Name
...
Description
...
...
...
...
{code}
{example}
{properties}
|| Name || Description ||
| [Area|Hyperlink.Area] | {excerpt-include:Hyperlink.Area|nopanel=true} |
| [Href|Hyperlink.Href]\\ | {excerpt-include:Hyperlink.Href|nopanel=true} |
| [Text|Hyperlink.Text]\\ | {excerpt-include:Hyperlink.Text|nopanel=true} | |