Represents a hyperlink for a cell or region.
Inheritance
object
Constructors
Section titled "Constructors"constructor
public WorksheetHyperlink(WorksheetCell sourceCell, object target, string displayText = null, string toolTip = null) Returns WorksheetHyperlink
constructor
public WorksheetHyperlink(WorksheetRegion sourceRegion, object target, string displayText = null, string toolTip = null) Returns WorksheetHyperlink
constructor
public WorksheetHyperlink(string sourceAddress, object target, string displayText = null, string toolTip = null) Returns WorksheetHyperlink
Properties
Section titled "Properties"DisplayText
Section titled "DisplayText"Gets or sets the text to display in the cell when the hyperlink is added to a worksheet, or null to use the target text.
public string DisplayText { get; set; } IsSealed
Section titled "IsSealed"Gets the value indicating whether the hyperlink is sealed and cannot be modified.
public bool IsSealed { get; } SourceAddress
Section titled "SourceAddress"Gets or sets the address of the cell or region on which the hyperlink resides.
public string SourceAddress { get; set; } SourceCell
Section titled "SourceCell"Gets or sets the cell on which the hyperlink resides.
public WorksheetCell SourceCell { get; set; } SourceRegion
Section titled "SourceRegion"Gets or sets the region on which the hyperlink resides.
public WorksheetRegion SourceRegion { get; set; } Target
Section titled "Target"Gets or sets the target of the hyperlink, which can be a string, , , or instance. For bookmarks in an external document, separate the sub-address with a #, such as "File.xlsx#Sheet1!C3". For email addresses, use a target string with the format "mailto:joe" or "mailto:joe".
public object Target { get; set; } TargetAddress
Section titled "TargetAddress"Gets or sets the target address of the hyperlink. For bookmarks in an external document, separate the sub-address with a #, such as "File.xlsx#Sheet1!C3". For email addresses, use a target string with the format "mailto:joe" or "mailto:joe".
public string TargetAddress { get; set; } TargetCell
Section titled "TargetCell"Gets or sets the target cell of the hyperlink.
public WorksheetCell TargetCell { get; set; } TargetNamedReference
Section titled "TargetNamedReference"Gets or sets the target named reference of the hyperlink.
public NamedReference TargetNamedReference { get; set; } TargetRegion
Section titled "TargetRegion"Gets or sets the target region of the hyperlink.
public WorksheetRegion TargetRegion { get; set; } ToolTip
Section titled "ToolTip"Gets or sets the text to use in a tool tip when hovering over the source cell or region, or null to use the default tool tip.
public string ToolTip { get; set; } Worksheet
Section titled "Worksheet"Gets the worksheet to which the hyperlink belongs.
public Worksheet Worksheet { get; } Methods
Section titled "Methods"ToString()
Section titled "ToString()"Gets the string representation of the hyperlink.
public override string ToString()