Back to Devexpress

RepositoryItemHyperLinkEdit.SingleClick Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemhyperlinkedit-573b6b87.md

latest3.8 KB
Original Source

RepositoryItemHyperLinkEdit.SingleClick Property

Gets or sets whether hyperlink functionality is activated a single or double click.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Behavior")]
public bool SingleClick { get; set; }
vb
<DXCategory("Behavior")>
Public Property SingleClick As Boolean

Property Value

TypeDescription
Boolean

true if the hyperlink functionality is activated by single clicking; otherwise, the user needs to double click the edit box in order to execute the hyperlink command.

|

Remarks

Use the SingleClick property to control how the end-user activates the hyperlink: by a single or double click. When the hyperlink is activated, the editor executes the command determined by the editor’s BaseEdit.EditValue or BaseEdit.Text (the property is just the text representation of the edit value). Before starting the command, the RepositoryItemHyperLinkEdit.OpenLink event is fired and this enables you to override the default processing.

You can also activate the hyperlink by pressing the RepositoryItemHyperLinkEdit.StartKey shortcut or by calling the HyperLinkEdit.ShowBrowser method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SingleClick 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#L31

csharp
RepositoryItemHyperLinkEdit hyperLinkProperties = (RepositoryItemHyperLinkEdit)item;
hyperLinkProperties.SingleClick = View is ListView;
hyperLinkProperties.TextEditStyle = TextEditStyles.Standard;

See Also

OpenLink

StartKey

ShowBrowser

RepositoryItemHyperLinkEdit Class

RepositoryItemHyperLinkEdit Members

DevExpress.XtraEditors.Repository Namespace