DataGrid.ProcessDialogKey(Keys) 方法

定义

获取或设置一个值,该值指示是否应进一步处理某键。Gets or sets a value that indicates whether a key should be processed further.

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

参数

keyData
Keys

一个 Keys,它包含有关被按下键的数据。A Keys that contains data about the pressed key.

返回

Boolean

如果应处理该键,则为 true;否则为 falsetrue, the key should be processed; otherwise, false.

注解

方法重写 ProcessDialogKey 方法以实现网格的键盘导航。The method overrides the ProcessDialogKey method to implement keyboard navigation of the grid.

适用于