TextBoxBase.ProcessCmdKey(Message, Keys) 方法

定義

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

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

參數

msg
Message

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

keyData
Keys

其中一個 Keys 值,它代表要處理的快速鍵。One of the Keys values that represents the shortcut key to process.

傳回

Boolean

若命令按鍵已由控制項處理,則為 true;否則為 falsetrue if the command key was processed by the control; otherwise, false.

適用於