[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.HyperlinkCollection.Add

Add Method

Add()

Adds a Hyperlink to this collection at the End location.

Declaration
public Hyperlink Add()
Public Function Add() As Hyperlink
Returns
Type Description
Hyperlink

The added Hyperlink.

Add(string, string, string, string)

Adds a Hyperlink to this collection at the End location.

Declaration
public Hyperlink Add(string anchor, string text, string screenTip = null, string target = null)
Public Function Add(anchor As String, text As String, Optional screenTip As String = Nothing, Optional target As String = Nothing) As Hyperlink
Parameters
Type Name Description
string anchor

The name of a bookmark in the current document which shall be the target of this hyperlink.

string text

The display text of the specified hyperlink.

string screenTip

The text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.

string target

The name of the frame or window in which you want to load the specified hyperlink.

Returns
Type Description
Hyperlink

The added Hyperlink.

Add(Uri, string, string, string, string)

Adds a Hyperlink to this collection at the End location.

Declaration
public Hyperlink Add(Uri address, string anchor, string text, string screenTip = null, string target = null)
Public Function Add(address As Uri, anchor As String, text As String, Optional screenTip As String = Nothing, Optional target As String = Nothing) As Hyperlink
Parameters
Type Name Description
Uri address

The address for the specified link. The address can be an e-mail address, an Internet address, or a file name.

string anchor

The name of a bookmark in the current document which shall be the target of this hyperlink.

string text

The display text of the specified hyperlink.

string screenTip

The text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink.

string target

The name of the frame or window in which you want to load the specified hyperlink.

Returns
Type Description
Hyperlink

The added Hyperlink.