Xceed SmartUI for WinForms v3.6 Documentation
Shortcut Property (MenuItem)


Xceed.SmartUI.Controls.v3.6 Assembly > Xceed.SmartUI.Controls.MenuBar Namespace > MenuItem Class : Shortcut Property
Gets or sets the shortcut associated with the SmartItem.
Syntax
'Declaration
 
<DescriptionAttribute("Gets or sets the shortcut associated with the SmartItem.")>
<CategoryAttribute("Appearance")>
<DefaultValueAttribute()>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<BrowsableAttribute(True)>
<MergablePropertyAttribute(False)>
<LocalizableAttribute(True)>
Public Property Shortcut As Shortcut
'Usage
 
Dim instance As MenuItem
Dim value As Shortcut
 
instance.Shortcut = value
 
value = instance.Shortcut
[Description("Gets or sets the shortcut associated with the SmartItem.")]
[Category("Appearance")]
[DefaultValue()]
[RefreshProperties(RefreshProperties.Repaint)]
[Browsable(true)]
[MergableProperty(false)]
[Localizable(true)]
public Shortcut Shortcut {get; set;}

Property Value

A System.Windows.Forms.Shortcut value representing the shortcut associated with the SmartItem. By default, no shortcut is associated.
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

MenuItem Class
MenuItem Members
ShortcutText Property
ShowShortcut Property