DataGridViewCell.OnKeyPress(KeyPressEventArgs, Int32) Metoda

Definicja

Wywoływana, gdy klawisz jest naciśnięty, gdy fokus znajduje się na komórce.

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

Parametry

e
KeyPressEventArgs

Element KeyPressEventArgs zawierający dane zdarzenia.

rowIndex
Int32

Indeks wiersza nadrzędnego komórki.

Uwagi

Ta metoda jest podobna Control.OnKeyPress do metody . Jest wywoływana w tych samych okolicznościach, w których KeyPress jest zgłaszane zdarzenie, ale w rzeczywistości nie zgłasza zdarzenia.

Dotyczy

Zobacz też