ComponentFactory.Krypton.Toolkit.MenuItemController.MatchMnemonic C# (CSharp) Method

MatchMnemonic() public method

Determine if the keys value matches the mnemonic setting for this target.
public MatchMnemonic ( char charCode ) : bool
charCode char Key code to test against.
return bool
        public bool MatchMnemonic(char charCode)
        {
            // Can only select if the item is actually enabled
            if (_menuItem.ItemEnabled)
                return Control.IsMnemonic(charCode, _menuItem.ItemText);
            else
                return false;
        }