Skip to main content
A newer version of this page is available. .

RepositoryItemHypertextLabel.OpenHyperlink Event

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

Event Data

The OpenHyperlink event's data class is DevExpress.Utils.OpenHyperlinkEventArgs.

Remarks

If the current label contains a hyperlink, single or double clicking the link (see RepositoryItemHypertextLabel.SingleClick) invokes a browser. The OpenHyperlink event fires before the browser is opened, allowing you to cancel the action. The event handler receives the following arguments:

  • Handled - gets or sets whether the event is handled. Set this argument to true, to prevent the browser from being opened;
  • Link - gets or sets the hyperlink that is about to be opened;
  • Text - gets or sets the hyperlink text;
  • MouseArgs - gets or sets data for the mouse click event.

To specify whether the browser window is maximized, minimized or collapsed when opened, use the RepositoryItemHypertextLabel.BrowserWindowStyle property.

See Also