Nevron .NET Vision
NShortcut Class
Members  Example 

Represents a keyboard shortcut combination that can be assigned to a INShortcutProvider instance.
Object Model
NShortcut Class
Syntax
'Declaration
 
<System.ComponentModel.TypeConverterAttribute("Nevron.UI.WinForm.Controls.NShortcutTypeConverter, Nevron.Presentation, Version=21.6.30.12, Culture=neutral, PublicKeyToken=6656c5d1103e75cc")>
<System.ComponentModel.EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="Nevron.Internal.viob, Nevron.Presentation, Version=21.6.30.12, Culture=neutral, PublicKeyToken=6656c5d1103e75cc")>
<System.SerializableAttribute()>
Public Class NShortcut 
   Implements Nevron.Globalization.INLocalizable, INPropertyPageProvider 
[System.ComponentModel.TypeConverter("Nevron.UI.WinForm.Controls.NShortcutTypeConverter, Nevron.Presentation, Version=21.6.30.12, Culture=neutral, PublicKeyToken=6656c5d1103e75cc")]
[System.ComponentModel.Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="Nevron.Internal.viob, Nevron.Presentation, Version=21.6.30.12, Culture=neutral, PublicKeyToken=6656c5d1103e75cc")]
[System.Serializable()]
public class NShortcut : Nevron.Globalization.INLocalizable, INPropertyPageProvider  
Remarks
Using this simple class allows you to create and use practically any keyboard combination, not only the predefined ones in the Windows.Forms.Shortcut enumeration.
Example
The following example creates Control+Shift+O keyboard combination and attaches it to an existing NCommand object:
NShortcut shortcut = new NShortcut(Keys.O, Keys.Control | Keys.Shift);
nCommand1.Shortcut = shortcut;
Inheritance Hierarchy

System.Object
   Nevron.UI.WinForm.Controls.NShortcut

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NShortcut Members
Nevron.UI.WinForm.Controls Namespace

 

 


©2021. Nevron Software LLC.

Send Feedback