Back to Devexpress

RepositoryItemHypertextLabel.OpenHyperlink Event

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemhypertextlabel.md

latest3.1 KB
Original Source

RepositoryItemHypertextLabel.OpenHyperlink Event

Fires when a hyperlink is clicked, and a browser is about to be opened.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Action")]
public event OpenHyperlinkEventHandler OpenHyperlink
vb
<DXCategory("Action")>
Public Event OpenHyperlink As OpenHyperlinkEventHandler

Event Data

The OpenHyperlink event's data class is OpenHyperlinkEventArgs. The following properties provide information specific to this event:

PropertyDescription
HandledGets or sets whether the event is handled. If the event is handled, the browser does not open.
LinkGet or sets the URL of the clicked hyperlink. Inherited from HyperlinkClickEventArgs.
MouseArgsGets or sets mouse coordinates calculated from the toolbar’s upper left corner. Inherited from HyperlinkClickEventArgs.
TextGets or sets the hyperlink alt text. Note that modifying this text does not change the item caption. Inherited from HyperlinkClickEventArgs.

Remarks

If the current label contains a hyperlink and the SingleClick option is enabled, a browser opens when a user clicks or double-clicks the label. The OpenHyperlink event fires before the browser is opened and allows you to cancel the action.

Use the BrowserWindowStyle property to specify whether the browser window is maximized, minimized, or collapsed when opened.

See Also

SingleClick

BrowserWindowStyle

RepositoryItemHypertextLabel Class

RepositoryItemHypertextLabel Members

DevExpress.XtraEditors.Repository Namespace