語言

ToolStripManager.IsShortcutDefined(Keys) 方法

定義

取得一個值,表示表單中任 ToolStrip 一控制項是否使用指定的快捷鍵。

public:
 static bool IsShortcutDefined(System::Windows::Forms::Keys shortcut);
public static bool IsShortcutDefined(System.Windows.Forms.Keys shortcut);
static member IsShortcutDefined : System.Windows.Forms.Keys -> bool
Public Shared Function IsShortcutDefined (shortcut As Keys) As Boolean

參數

shortcut
Keys

搜尋的快捷鍵。

傳回

true如果表單上任一ToolStrip使用快捷鍵;否則,。 false

適用於

另請參閱