Aracılığıyla paylaş


NamedRange.Hyperlinks Özellik

Alır bir Hyperlinks köprüler temsil eden koleksiyonu NamedRange Denetim.

Ad alanı:  Microsoft.Office.Tools.Excel
Derleme:  Microsoft.Office.Tools.Excel (Microsoft.Office.Tools.Excel.dll içinde)

Sözdizimi

'Bildirim
ReadOnly Property Hyperlinks As Hyperlinks
    Get
Hyperlinks Hyperlinks { get; }

Özellik Değeri

Tür: Microsoft.Office.Interop.Excel.Hyperlinks
A Hyperlinks köprüler temsil eden koleksiyonu NamedRange Denetim.

Örnekler

Aşağıdaki kod örneği oluşturur bir NamedRange ve sonra Hyperlinks bir köprü eklemek üzere özellik NamedRange.

Bu örnek, bir belge düzeyinde özelleştirme için bulunur.

Private hyperlinkRange As Microsoft.Office.Tools.Excel.NamedRange

Private Sub AddHyperlink()
    hyperlinkRange = Me.Controls.AddNamedRange( _
        Me.Range("B4"), "hyperlinkRange")
    Me.hyperlinkRange.Hyperlinks.Add( _
        Me.hyperlinkRange.Cells, "https://www.contoso.com", , _
        "Contoso Web Site", "www.contoso.com")
End Sub
Microsoft.Office.Tools.Excel.NamedRange hyperlinkRange;
private void AddHyperlink()
{
    hyperlinkRange = this.Controls.AddNamedRange(
        this.Range["B4", missing], "hyperlinkRange");
    this.hyperlinkRange.Hyperlinks.Add(this.hyperlinkRange.Cells,
        "https://www.contoso.com", missing, "Contoso Web Site",
        "www.contoso.com");
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

NamedRange Arabirim

Microsoft.Office.Tools.Excel Ad Alanı