TXTextControl.HypertextLinkCollection.Remove Method

Removes a hypertext link from a Text Control document.

Remove(HypertextLink)

Removes a hypertext link including its visible text from a Text Control document.

[C#]
public bool Remove(HypertextLink hypertextLink);
[Visual Basic]
Public Function Remove(ByVal hypertextLink As HypertextLink) As Boolean
Parameter Description
hypertextLink

Specifies the hypertext link to remove.

Remove(HypertextLink, Boolean)

Removes a hypertext link from a Text Control document. The visible text is deleted depending on the keepText parameter.

[C#]
public bool Remove(HypertextLink hypertextLink, bool keepText);
[Visual Basic]
Public Function Remove(ByVal hypertextLink As HypertextLink, ByVal keepText As Boolean) As Boolean
Parameter Description
hypertextLink

Specifies the hypertext link to remove.

keepText

If this parameter is set to true, the hypertext link is removed without deleting its text. Otherwise, the link's text is also deleted.

Return Value

The return value is true, if the hypertext link could be removed. Otherwise it is false.

See Also