XmlMappedRange.Hyperlinks 属性

获取一个 Hyperlinks 集合,该集合表示 XmlMappedRange 控件的超链接。

命名空间:  Microsoft.Office.Tools.Excel
程序集:  Microsoft.Office.Tools.Excel(在 Microsoft.Office.Tools.Excel.dll 中)

语法

声明
ReadOnly Property Hyperlinks As Hyperlinks
    Get
Hyperlinks Hyperlinks { get; }

属性值

类型:Microsoft.Office.Interop.Excel.Hyperlinks
一个 Hyperlinks 集合,表示 XmlMappedRange 控件的超链接。

示例

下面的代码示例使用 Hyperlinks 属性向 XmlMappedRange 添加超链接。 此代码示例假定当前工作表包含一个名为 CustomerLastNameCell 的 XmlMappedRange

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", 
        missing, "Contoso Web Site", "www.contoso.com");
}

.NET Framework 安全性

请参见

参考

XmlMappedRange 接口

Microsoft.Office.Tools.Excel 命名空间