RepositoryItemHypertextLabel.OpenHyperlink Event
Fires when a hyperlink is clicked, and a browser is about to be opened.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Event Data
The OpenHyperlink event's data class is OpenHyperlinkEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Handled | Gets or sets whether the event is handled. If the event is handled, the browser does not open. |
Link | Get or sets the URL of the clicked hyperlink. Inherited from HyperlinkClickEventArgs. |
MouseArgs | Gets or sets mouse coordinates calculated from the toolbar’s upper left corner. Inherited from HyperlinkClickEventArgs. |
Text | Gets 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.