TextBox.IsInputKey(Keys) 方法

定義

判斷指定的按鍵是輸入按鍵還是需要前置處理的特殊按鍵。Determines whether the specified key is an input key or a special key that requires preprocessing.

protected:
 override bool IsInputKey(System::Windows::Forms::Keys keyData);
protected override bool IsInputKey (System.Windows.Forms.Keys keyData);
override this.IsInputKey : System.Windows.Forms.Keys -> bool
Protected Overrides Function IsInputKey (keyData As Keys) As Boolean

參數

keyData
Keys

其中一個按鍵的值。One of the key's values.

傳回

Boolean

如果指定的按鍵是輸入按鍵,則為 true,否則為 falsetrue if the specified key is an input key; otherwise, false.

備註

IsInputKey truekeyData 包含 Return 值且 AcceptsReturn 屬性為時,方法會傳回 trueThe IsInputKey method returns true when keyData includes the Return value and the AcceptsReturn property is true.

適用於