Hyperlink object

[Hyperlink may be altered or unavailable in subsequent versions of the operating system or product.]

Note  The Microsoft ActiveX Hyperlink API is deprecated in Windows Internet Explorer 8 and later, and ActiveX technology as a whole is unsupported in the Microsoft Edge browser in favor of standards-based web APIs. For more information, see Saying goodbye to ActiveX, VBScript, attachEvent... and Get ready for plug-in free browsing.

 

This object implements, at a minimum, an IHlink interface and acts as a link to an object at another location (the target).

Members

The Hyperlink object inherits from the IUnknown interface but does not have additional members.

Remarks

A hyperlink object encapsulates four pieces of reference information:

  • A moniker to the hyperlink target.
  • A string for the sublocation within the target.
  • A friendly name for the target.
  • Additional parameters.

The object also supports the ability to save and load itself by using IPersistStream, and the ability to be transferred through the clipboard or through a drag-and-drop operation by using IDataObject.

It is notable that a document can use the standard hyperlink object to represent hyperlinks within itself, thus encapsulating the work of navigating, saving, loading, dragging, dropping, cutting, and pasting hyperlinks.