GH_MenuShortcut

Maintains information about context and dropdown menu shortcuts.

Constructors

GH_MenuShortcut

#
Create a new blank instance of the GH_MenuShortcutInfo class.
public GH_MenuShortcut()

GH_MenuShortcut

#
Create a new instance of the GH_MenuShortcutInfo class.
public GH_MenuShortcut(
itemPath,
Path to menu item in menu hierarchy. Use back-slash symbols to separate parent-child items.
shortcut,
Shortcut to use for menu item.
shortcutText
Text override to display for menu shortcut. Leave blank for default display.
)

GH_MenuShortcut

#
Create a new instance of the GH_MenuShortcutInfo class.
public GH_MenuShortcut(
itemPath
Path to menu item in menu hierarchy. Use back-slash symbols to separate parent-child items.
)

Properties

ItemHierarchy

#
Gets the menu item hierarchy.
public string[] ItemHierarchy { get; }

ItemPath

#
Gets or sets the menu item path. Submenus are indicated using back-slash symbols (i.e. "File\Special Folders\Components Folder")
public string ItemPath { get; set; }

Shortcut

#
Gets or sets the menu shortcut keys.
public Keys Shortcut { get; set; }

ShortcutText

#
Gets or sets the menu shortcut display string. Leave blank for default display.
public string ShortcutText { get; set; }

Methods

ApplyToMenu

#
Apply this shortcut to an actual menu item.
public ToolStripMenuItem ApplyToMenu(
menu,
Menu that contains relevant menu item.
filter
A collection of mutable menu items.
)
The menu item that was changed or null on failure.

Read

#
public bool Read(
reader
)
Read

Write

#
public bool Write(
writer
)
Write