ClassHyperlinkInfo
Immutable descriptor for hyperlink targets, including URL, email, and in-document addresses with optional screen tips.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class HyperlinkInfo
Inheritance: objectHyperlinkInfo
Properties
Address
Gets the primary target address (URL, email address, or empty for in-document links).
EmailSubject
Gets the email subject line used when Type is Mailto.
Declaration
public string EmailSubject { get; }
Property Value
The email subject.
ScreenTip
Gets the tooltip text displayed when hovering over the hyperlink.
Declaration
public string ScreenTip { get; }
Property Value
The screen tip.
SubAddress
Gets the in-document target (sheet name and range) used when Type is InDocument.
Declaration
public string SubAddress { get; }
Property Value
The sub address.
Type
Gets the hyperlink category (Url, Mailto, or InDocument).
Declaration
public HyperlinkType Type { get; }
Property Value
The type.
Methods
CreateHyperlink(string, string)
Creates a URL hyperlink with the specified web or file address and optional screen tip.
Declaration
public static HyperlinkInfo CreateHyperlink(string address, string screenTip = null)
Parameters
address
The address.
screenTip
The screen tip.
Returns
The hyperlink information.
CreateInDocumentHyperlink(string, string)
Creates a hyperlink navigating to a worksheet location within the same workbook (e.g., "Sheet1!A1:B5").
Declaration
public static HyperlinkInfo CreateInDocumentHyperlink(string subAddress, string screenTip = null)
Parameters
subAddress
The sub address.
screenTip
The screen tip.
Returns
The hyperlink information.
CreateMailtoHyperlink(string)
Creates an email hyperlink for the specified address.
Declaration
public static HyperlinkInfo CreateMailtoHyperlink(string emailAddress)
Parameters
emailAddress
The email address.
Returns
The hyperlink information.
CreateMailtoHyperlink(string, string)
Creates an email hyperlink with the specified address and subject line.
Declaration
public static HyperlinkInfo CreateMailtoHyperlink(string emailAddress, string emailSubject)
Parameters
emailAddress
The email address.
emailSubject
The email subject.
Returns
The hyperlink information.
CreateMailtoHyperlink(string, string, string)
Creates an email hyperlink with the specified address, subject line, and screen tip.
Declaration
public static HyperlinkInfo CreateMailtoHyperlink(string emailAddress, string emailSubject, string screenTip)
Parameters
emailAddress
The email address.
emailSubject
The email subject.
screenTip
The screen tip.
Returns
The hyperlink information.
GetHashCode()
Serves as a hash function for a particular type.