ToolStrip.ProcessCmdKey(Message, Keys) ToolStrip.ProcessCmdKey(Message, Keys) ToolStrip.ProcessCmdKey(Message, Keys) ToolStrip.ProcessCmdKey(Message, Keys) Method

定義

處理命令按鍵。Processes a command key.

protected:
 override bool ProcessCmdKey(System::Windows::Forms::Message % m, System::Windows::Forms::Keys keyData);
protected override bool ProcessCmdKey (ref System.Windows.Forms.Message m, System.Windows.Forms.Keys keyData);
override this.ProcessCmdKey :  * System.Windows.Forms.Keys -> bool
Protected Overrides Function ProcessCmdKey (ByRef m As Message, keyData As Keys) As Boolean

參數

m
Message Message Message Message

由參考所傳遞的 Message,代表要處理的視窗訊息。A Message, passed by reference, that represents the window message to process.

keyData
Keys Keys Keys Keys

其中一個 Keys 值,表示要處理的按鍵。One of the Keys values that represents the key to process.

傳回

如果字元已由控制項處理,則為 true,否則為 falsetrue if the character was processed by the control; otherwise, false.

安全性

SecurityPermission
立即呼叫端和繼承類別呼叫這個方法。for the immediate caller and inheriting classes to call this method. 關聯的列舉型別:UnmanagedCodeAssociated enumeration: UnmanagedCode.

適用於