XmlMappedRange.Hyperlinks Property
Gets a Hyperlinks collection that represents the hyperlinks for the XmlMappedRange control.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Syntax
'Declaration
ReadOnly Property Hyperlinks As Hyperlinks
Hyperlinks Hyperlinks { get; }
Property Value
Type: Hyperlinks
A Hyperlinks collection that represents the hyperlinks for the XmlMappedRange control.
Examples
The following code example uses the Hyperlinks property to add a hyperlink to an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.
Private Sub AddHyperlink()
Me.CustomerLastNameCell.Hyperlinks.Add( _
Me.CustomerLastNameCell.Cells, "https://www.contoso.com", _
ScreenTip:="Contoso Web Site", TextToDisplay:="www.contoso.com")
End Sub
private void AddHyperlink()
{
this.CustomerLastNameCell.Hyperlinks.Add(
this.CustomerLastNameCell.Cells, "https://www.contoso.com",
"Contoso Web Site", "www.contoso.com");
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.