New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public class HyperlinkInfo

Inheritance: objectHyperlinkInfo

Methods

Creates a URL hyperlink with the specified web or file address and optional screen tip.

C#
public static HyperlinkInfo CreateHyperlink(string address, string screenTip = null)
Parameters:addressstring

The address.

screenTipstring

The screen tip.

Returns:

HyperlinkInfo

The hyperlink information.

Creates a hyperlink navigating to a worksheet location within the same workbook (e.g., "Sheet1!A1:B5").

C#
public static HyperlinkInfo CreateInDocumentHyperlink(string subAddress, string screenTip = null)
Parameters:subAddressstring

The sub address.

screenTipstring

The screen tip.

Returns:

HyperlinkInfo

The hyperlink information.

Creates an email hyperlink with the specified address, subject line, and screen tip.

C#
public static HyperlinkInfo CreateMailtoHyperlink(string emailAddress, string emailSubject, string screenTip)
Parameters:emailAddressstring

The email address.

emailSubjectstring

The email subject.

screenTipstring

The screen tip.

Returns:

HyperlinkInfo

The hyperlink information.

Creates an email hyperlink with the specified address and subject line.

C#
public static HyperlinkInfo CreateMailtoHyperlink(string emailAddress, string emailSubject)
Parameters:emailAddressstring

The email address.

emailSubjectstring

The email subject.

Returns:

HyperlinkInfo

The hyperlink information.

Creates an email hyperlink for the specified address.

C#
public static HyperlinkInfo CreateMailtoHyperlink(string emailAddress)
Parameters:emailAddressstring

The email address.

Returns:

HyperlinkInfo

The hyperlink information.

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Properties

Gets the primary target address (URL, email address, or empty for in-document links).

C#
public string Address { get; }
Property Value:

The address.

Gets the email subject line used when Type is Mailto.

C#
public string EmailSubject { get; }
Property Value:

The email subject.

Gets the tooltip text displayed when hovering over the hyperlink.

C#
public string ScreenTip { get; }
Property Value:

The screen tip.

Gets the in-document target (sheet name and range) used when Type is InDocument.

C#
public string SubAddress { get; }
Property Value:

The sub address.

Gets the hyperlink category (Url, Mailto, or InDocument).

C#
public HyperlinkType Type { get; }
Property Value:

The type.