Class XlsxHyperlink
- Namespace
- DocToolkit
- Assembly
- DocToolkit.Xlsx.dll
A hyperlink on one cell, pointing at an external URL.
public sealed class XlsxHyperlink
- Inheritance
-
XlsxHyperlink
- Inherited Members
Properties
Cell
The cell carrying the link, such as B2. A single cell, not a range.
public string Cell { get; }
Property Value
Url
The external URL the cell links to.
public string Url { get; }
Property Value
Methods
To(string, string)
Links cell to url.
public static XlsxHyperlink To(string cell, string url)
Parameters
cellstringThe cell carrying the link, such as
B2. A single cell, not a range.urlstringThe external URL. Must be an absolute URI.
Returns
Exceptions
- ArgumentNullException
Either argument is null.
- ArgumentException
cellis blank or names a sheet, orurlis blank or not an absolute URI — checked here, where the caller supplied it, rather than left to surface later as a write failure with no argument to blame.