LinkElement Object

SharePoint Designer Developer Reference

Represents a LINK element in an HTML document.

Interfaces
This object implements the following interfaces

Remarks

Use the tags method to return an ElementCollection collection that represents a collection of all the LINK elements in a document. Use the Item method to return an LinkElement object that accesses a specific LINK element, referenced by ordinal number or by the value of the id attribute. The following example accesses the first LINK element in the active document.

Visual Basic for Applications
Dim objLink As LinkElement
Set objLink = ActiveDocument.all.tags("link").Item(0)

Note

The LinkElement object cannot be accessed by using the links property. The links property applies to hyperlinks in a document.

See Also