DataGridView.ProcessAKey(Keys) 方法

定义

处理 A 键。Processes the A key.

protected:
 bool ProcessAKey(System::Windows::Forms::Keys keyData);
protected bool ProcessAKey (System.Windows.Forms.Keys keyData);
member this.ProcessAKey : System.Windows.Forms.Keys -> bool
Protected Function ProcessAKey (keyData As Keys) As Boolean

参数

keyData
Keys

Keys 值的按位组合,这些值表示要处理的一个或多个键。A bitwise combination of Keys values that represents the key or keys to process.

返回

Boolean

如果已处理该键,则为 true;否则为 falsetrue if the key was processed; otherwise, false.

注解

true当用户按下 CTRL + A 并且属性为时,此方法返回 MultiSelect trueThis method returns true when the user presses CTRL+A and the MultiSelect property is true. 默认情况下,此方法选择控件中的所有单元格。By default, this selects all cells in the control.

适用于