Back to Devexpress

OpenLinkEventArgs.EditValue Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-openlinkeventargs-bfe453fd.md

latest3.1 KB
Original Source

OpenLinkEventArgs.EditValue Property

Gets or sets the object representing the command to execute.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public object EditValue { get; set; }
vb
Public Property EditValue As Object

Property Value

TypeDescription
Object

The object representing the command to execute.

|

Remarks

The EditValue property specifies the command to execute after performing your RepositoryItemHyperLinkEdit.OpenLink event handler.
The command is obtained from EditValue by calling the ToString method. You can use this property to modify the command.

The OpenLinkEventArgs.Handled property allows you to specify whether default execution of the command is required. By setting OpenLinkEventArgs.Handled to true , you can prevent the default processing

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EditValue property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

xaf-how-to-show-a-hyper-link-url-email-etc-for-a-business-class-property/CS/EFCore/HyperLinkEditorEF/HyperLinkEditorEF.Win/Editors/WinHyperLinkStringPropertyEditor.cs#L39

csharp
private void hyperLinkProperties_OpenLink(object sender, OpenLinkEventArgs e) {
    e.EditValue = GetResolvedUrl(e.EditValue);
}

See Also

Handled

OpenLink

OpenLinkEventArgs Class

OpenLinkEventArgs Members

DevExpress.XtraEditors.Controls Namespace