DataGridViewCell.OnKeyUp(KeyEventArgs, Int32) DataGridViewCell.OnKeyUp(KeyEventArgs, Int32) DataGridViewCell.OnKeyUp(KeyEventArgs, Int32) DataGridViewCell.OnKeyUp(KeyEventArgs, Int32) Method

定義

當焦點在儲存格上,放開字元鍵時呼叫。Called when a character key is released while the focus is on a cell.

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

參數

e
KeyEventArgs KeyEventArgs KeyEventArgs KeyEventArgs

KeyEventArgs,其中包含事件資料。A KeyEventArgs that contains the event data.

rowIndex
Int32 Int32 Int32 Int32

儲存格的父資料列索引。The index of the cell's parent row.

備註

這個方法與Control.OnKeyUp方法類似。This method is similar to the Control.OnKeyUp method. 在引發KeyUp事件的相同情況下呼叫它,但實際上並不會引發事件。It is called in the same circumstances in which a KeyUp event is raised, but it does not actually raise the event.

適用於

另請參閱