[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.SimpleField.AddHyperlink

AddHyperlink Method

Adds a Hyperlink to the end of the current simple field.

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

The added Hyperlink.

Adds a Hyperlink to the end of the current simple field.

Declaration
public Hyperlink AddHyperlink(string anchor, string text, string screenTip = null, string target = null)
Public Function AddHyperlink(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.

Adds a Hyperlink to the end of the current simple field.

Declaration
public Hyperlink AddHyperlink(Uri address, string anchor, string text, string screenTip = null, string target = null)
Public Function AddHyperlink(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.