XmlMappedRange.Hyperlinks Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a Hyperlinks collection that represents the hyperlinks for the XmlMappedRange control.
public:
property Microsoft::Office::Interop::Excel::Hyperlinks ^ Hyperlinks { Microsoft::Office::Interop::Excel::Hyperlinks ^ get(); };
public Microsoft.Office.Interop.Excel.Hyperlinks Hyperlinks { get; }
member this.Hyperlinks : Microsoft.Office.Interop.Excel.Hyperlinks
Public ReadOnly Property Hyperlinks As Hyperlinks
Property Value
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 void AddHyperlink()
{
this.CustomerLastNameCell.Hyperlinks.Add(
this.CustomerLastNameCell.Cells, "http://www.contoso.com",
"Contoso Web Site", "www.contoso.com");
}
Private Sub AddHyperlink()
Me.CustomerLastNameCell.Hyperlinks.Add( _
Me.CustomerLastNameCell.Cells, "http://www.contoso.com", _
ScreenTip:="Contoso Web Site", TextToDisplay:="www.contoso.com")
End Sub