ToolStripManager.IsShortcutDefined(Keys) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得一個值,表示表單中任 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