DataGridViewTextBoxEditingControl.EditingControlWantsInputKey 方法

定义

确定指定的键是应由编辑控件处理的常规输入键,还是应由 DataGridView 处理的特殊键。

public:
 virtual bool EditingControlWantsInputKey(System::Windows::Forms::Keys keyData, bool dataGridViewWantsInputKey);
public virtual bool EditingControlWantsInputKey (System.Windows.Forms.Keys keyData, bool dataGridViewWantsInputKey);
abstract member EditingControlWantsInputKey : System.Windows.Forms.Keys * bool -> bool
override this.EditingControlWantsInputKey : System.Windows.Forms.Keys * bool -> bool
Public Overridable Function EditingControlWantsInputKey (keyData As Keys, dataGridViewWantsInputKey As Boolean) As Boolean

参数

keyData
Keys

一个 Keys,表示按下的键。

dataGridViewWantsInputKey
Boolean

DataGridView 要处理 keyData 时,为 true;否则为 false

返回

Boolean

如果指定的键是应由编辑控件处理的常规输入键,则为 true;否则为 false

实现

适用于

另请参阅