Gtk.Accelerator.Parse Method
Parses a string representing an accelerator. The format looks like "<Control>a" or "<Shift><Alt>F1" or "<Release>z" (the last one is for key release). The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "<Ctl>" and "<Ctrl>".

Syntax

public static void Parse (string accelerator, out uint accelerator_key, out Gdk.ModifierType accelerator_mods)

Parameters

accelerator
a string
accelerator_key
a uint, thekey to map to.
accelerator_mods
a Gdk.ModifierType to fill with data.

Remarks

If the parse fails, accelerator_key and accelerator_mods will be set to 0 (zero).

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)