다음을 통해 공유


XmlMappedRange.Hyperlinks Property

Definition

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

Applies to