Proprietà Document.Hyperlinks (System 2007)

Aggiornamento: novembre 2007

Ottiene un insieme di Hyperlinks che rappresenta tutti i collegamenti ipertestuali del documento.

Spazio dei nomi:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Sintassi

<BrowsableAttribute(False)> _
Public ReadOnly Property Hyperlinks As Hyperlinks

Dim instance As Document
Dim value As Hyperlinks

value = instance.Hyperlinks
[BrowsableAttribute(false)]
public Hyperlinks Hyperlinks { get; }

Valore proprietà

Tipo: Microsoft.Office.Interop.Word.Hyperlinks

Insieme di Hyperlinks che rappresenta tutti i collegamenti ipertestuali del documento.

Esempi

Nell'esempio di codice riportato di seguito viene illustrato come impostare Microsoft Office Word affinché venga aperta una nuova finestra del browser vuota quando si fa clic su collegamenti ipertestuali nel documento.

Questo esempio è per una personalizzazione a livello di documento.

Private Sub DocumentDefaultTargetFrame()
    Me.DefaultTargetFrame = "_blank"
    Dim address As Object = "https://www.msn.com/"
    Me.Hyperlinks.Add(Me.Paragraphs(1).Range, address)
End Sub

private void DocumentDefaultTargetFrame()
{
    this.DefaultTargetFrame = "_blank";
    object address = "https://www.msn.com/";
    this.Hyperlinks.Add(this.Paragraphs[1].Range, ref address, ref missing, 
        ref missing, ref missing,ref missing);
}

Autorizzazioni

Vedere anche

Riferimenti

Document Classe

Membri Document

Spazio dei nomi Microsoft.Office.Tools.Word