Modifica

Condividi tramite


Hyperlink Interface

Definition

Represents a hyperlink.

public interface class Hyperlink
[System.Runtime.InteropServices.Guid("00024431-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface Hyperlink
Public Interface Hyperlink
Attributes

Remarks

The Hyperlink object is a member of the Hyperlinks collection.

Use the Hyperlink property to return the hyperlink for a shape (a shape can have only one hyperlink).

A range or worksheet can have more than one hyperlink. Use Hyperlinks(index), where index is the hyperlink number, to return a single Hyperlink object.

Properties

Address

Returns or sets the address of the target document.

Application

Returns an Application object that represents the Microsoft Excel application.

Creator

Returns a 32-bit integer that indicates the application in which this object was created.

EmailSubject

Returns or sets the text string of the specified hyperlink’s e-mail subject line. The subject line is appended to the hyperlink’s address.

Name

Returns the name of the object. Read-only String.

Parent

Returns the parent object for the specified object.

Range

Returns a Range object that represents the range the specified hyperlink is attached to.

ScreenTip

Returns or sets the ScreenTip text for the specified hyperlink.

Shape

Returns a Shape object that represents the shape attached to the specified comment, diagram node, or hyperlink.

SubAddress

Returns or sets the location within the document associated with the hyperlink.

TextToDisplay

Returns or sets the text to be displayed for the specified hyperlink. The default value is the address of the hyperlink.

Type

Returns the location of the HTML frame.

Methods

AddToFavorites()

Adds a shortcut to the workbook or hyperlink to the Favorites folder.

CreateNewDocument(String, Boolean, Boolean)

Creates a new document linked to the specified hyperlink.

Delete()

Deletes the object.

Follow(Object, Object, Object, Object, Object)

Displays a cached document if it’s already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document, and displays the document in the appropriate application.

Applies to