Hyperlinks Interface
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Hyperlinks Interface

Represents the collection of Hyperlink objects in a document, range, or selection.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

public interface Hyperlinks : IEnumerable

Use the Hyperlinks property of a Document, Range, or Selection object to return the Hyperlinks collection.

Use the Add method to create a hyperlink and add it to the Hyperlinks collection.

Use Hyperlinks(index), where index is the index number, to return a single Hyperlink object in a document, range, or selection.

The Count property for this collection in a document returns the number of items in the main story only. To count items in other stories, use the collection with the Range object.

© 2015 Microsoft