Table of Contents

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

The cell carrying the link, such as B2. A single cell, not a range.

public string Cell { get; }

Property Value

string

The external URL the cell links to.

public string Url { get; }

Property Value

string

Methods

Links cell to url.

public static XlsxHyperlink To(string cell, string url)

Parameters

cell string

The cell carrying the link, such as B2. A single cell, not a range.

url string

The external URL. Must be an absolute URI.

Returns

XlsxHyperlink

Exceptions

ArgumentNullException

Either argument is null.

ArgumentException

cell is blank or names a sheet, or url is 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.