Partager via


CommandAttribute.KeyGesture Property

Defines the keyboard gesture for this command.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Design
Assembly:  Microsoft.Practices.EnterpriseLibrary.Common (in Microsoft.Practices.EnterpriseLibrary.Common.dll)

Syntax

'Declaration
Public Property KeyGesture As String
public string KeyGesture { get; set; }
public:
property String^ KeyGesture {
    String^ get ();
    void set (String^ value);
}
public function get KeyGesture () : String
public function set KeyGesture (value : String)

Examples

command.KeyGesture = "Ctrl+1";

See Also

CommandAttribute Class

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Design Namespace