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.

返回

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

注解

当用户按下 CTRL + A 且 MultiSelect 属性 @no__t 为-2 时,此方法将返回 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.

安全性

SecurityPermission
用于调用非托管代码。for calling unmanaged code. 需求值: LinkDemandDemand value: LinkDemand. 权限值: UnmanagedCodePermission value: UnmanagedCode

适用于

另请参阅