# GH_MenuShortcut class

Namespace: [Grasshopper.GUI](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_MenuShortcut : GH_ISerializable
```

Maintains information about context and dropdown menu shortcuts.

## Constructors

- [GH_MenuShortcut](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menushortcut/ctor.md): (3 overloads) Create a new blank instance of the GH_MenuShortcutInfo class.

## Properties

- [ItemHierarchy](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menushortcut/itemhierarchy.md): Gets the menu item hierarchy.
- [ItemPath](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menushortcut/itempath.md): Gets or sets the menu item path. Submenus are indicated using back-slash symbols (i.e. "File\Special Folders\Components Folder")
- [Shortcut](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menushortcut/shortcut.md): Gets or sets the menu shortcut keys.
- [ShortcutText](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menushortcut/shortcuttext.md): Gets or sets the menu shortcut display string. Leave blank for default display.

## Methods

- [ApplyToMenu](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menushortcut/applytomenu.md): Apply this shortcut to an actual menu item.
- [Read](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menushortcut/read.md)
- [Write](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.gh-menushortcut/write.md)
