Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.UIControls.v4.4 Assembly / Xceed.Chart.UIControls Namespace / Shortcut Class
Members Example


In This Topic
    Shortcut Class
    In This Topic
    Represents a keyboard shortcut combination, which can be assigned to a Command object.
    Object Model
    Shortcut Class
    Syntax
    'Declaration
     
    <SerializableAttribute()>
    Public Class Shortcut 
    'Usage
     
    Dim instance As Shortcut
    [Serializable()]
    public class Shortcut 
    Remarks
    By using this class you can use as shortcut practically any keyboard combination, not only the predefined ones in the Windows.Forms.Shortcut enumeration.
    Example
    The following example creates Control+Shift+O shortcut and attaches it to an existing Command object:
    Dim shortcut As Shortcut =  New Shortcut(Keys.O,Keys.Control Or Keys.Shift) 
    nCommand1.Shortcut = shortcut
    Shortcut shortcut = new Shortcut(Keys.O, Keys.Control | Keys.Shift);
    nCommand1.Shortcut = shortcut;
    Inheritance Hierarchy

    System.Object
       Xceed.Chart.UIControls.Shortcut

    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