DataGridViewCheckBoxCell.OnKeyUp(KeyEventArgs, Int32) 方法

定义

当焦点位于单元格上时释放字符键时调用。

protected:
 override void OnKeyUp(System::Windows::Forms::KeyEventArgs ^ e, int rowIndex);
protected override void OnKeyUp(System.Windows.Forms.KeyEventArgs e, int rowIndex);
override this.OnKeyUp : System.Windows.Forms.KeyEventArgs * int -> unit
Protected Overrides Sub OnKeyUp (e As KeyEventArgs, rowIndex As Integer)

参数

e
KeyEventArgs

包含事件数据的 A KeyEventArgs

rowIndex
Int32

当前单元格的行索引,或 -1 该单元格不由行拥有。

注解

当由 SPACEBAR 键激活(等效于Keys.Space值)时,此方法将更新单元格的用户界面(UI),并在拥有OnCellClick时引发DataGridView该事件。

此方法类似于 Control.OnKeyUp 该方法。 它在引发事件的相同情况下 Control.KeyUp 调用,但实际上不会引发该事件。

适用于

另请参阅