Version

LinkClicked Event

Occurs when the user clicks a link.
Syntax
'Declaration
 
Public Event LinkClicked As LinkClickedEventHandler
public event LinkClickedEventHandler LinkClicked
Event Data

The event handler receives an argument of type LinkClickedEventArgs containing data related to this event. The following LinkClickedEventArgs properties provide information specific to this event.

PropertyDescription
AddToVisitedLinks Specifies whether to add the link to the visited links list. Default value is true when the Left mouse button is clicked and false for any other mouse button.
Button Gets which mouse button was pressed.
Context Editor context that specifies the object, for example a grid cell, that the action was performed on.
LinkRef Identifies the link that was clicked. This is the value of the href attribute of the anchor tag. If the href attribute was specified as relative url, then this will also be relative.
LinkText The text enclosed inside the anchor tag.
OpenLink Specifies whether the control should open the link. The link will be opened using the .NET Process class. The default value is true when the Left mouse button is clicked and false for any other mouse button.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also