officefileapi-devexpress-dot-xtrarichedit-dot-hyperlinkoptions.md
Gets or sets the modifier keys (CTRL, SHIFT, and ALT) required to activate a hyperlink.
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
[TypeConverter("DevExpress.XtraRichEdit.Design.ModifiersConverter, DevExpress.XtraRichEdit.v25.2.Design")]
[XtraSerializableProperty]
public PortableKeys ModifierKeys { get; set; }
<XtraSerializableProperty>
<TypeConverter("DevExpress.XtraRichEdit.Design.ModifiersConverter, DevExpress.XtraRichEdit.v25.2.Design")>
Public Property ModifierKeys As PortableKeys
| Type | Description |
|---|---|
| DevExpress.Portable.Input.PortableKeys |
The equivalent of the System.Windows.Forms.Keys enumeration. Represents the modifier keys.
|
You can access this nested property as listed below:
| Object Type | Path to ModifierKeys |
|---|---|
| RichEditControlOptionsBase |
.Hyperlinks .ModifierKeys
|
Use the Modifiers property to specify which modifier keys a user should press to open a hyperlink. Set this property to Keys.None to use only the mouse to activate hyperlinks.
Tip
Handle the RichEditControl.HyperlinkClick event to perform any actions when a hyperlink is clicked.
The following code snippets (auto-collected from DevExpress Examples) contain references to the ModifierKeys 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.
word-processing-table-of-contents-practical-guide/CS/Program.cs#L38
{
wordProcessor.Options.Hyperlinks.ModifierKeys = PortableKeys.None;
wordProcessor.LoadDocument("Employees.rtf");
winforms-richedit-table-of-contents-practical-guide/CS/Form1.cs#L15
InitializeComponent();
richEditControl1.Options.Hyperlinks.ModifierKeys = PortableKeys.None;
btnLoadTemplate_Click(btnLoadTemplate, EventArgs.Empty);
word-processing-table-of-contents-practical-guide/VB/Program.vb#L34
Using wordProcessor As New RichEditDocumentServer()
wordProcessor.Options.Hyperlinks.ModifierKeys = PortableKeys.None
wordProcessor.LoadDocument("Employees.rtf")
winforms-richedit-table-of-contents-practical-guide/VB/Form1.vb#L23
InitializeComponent()
richEditControl1.Options.Hyperlinks.ModifierKeys = PortableKeys.None
btnLoadTemplate_Click(btnLoadTemplate, EventArgs.Empty)
See Also