Control.RaiseKeyEvent(Object, KeyEventArgs) Control.RaiseKeyEvent(Object, KeyEventArgs) Control.RaiseKeyEvent(Object, KeyEventArgs) Control.RaiseKeyEvent(Object, KeyEventArgs) Method

定义

引发适当的键事件。Raises the appropriate key event.

protected:
 void RaiseKeyEvent(System::Object ^ key, System::Windows::Forms::KeyEventArgs ^ e);
protected void RaiseKeyEvent (object key, System.Windows.Forms.KeyEventArgs e);
member this.RaiseKeyEvent : obj * System.Windows.Forms.KeyEventArgs -> unit
Protected Sub RaiseKeyEvent (key As Object, e As KeyEventArgs)

参数

key
Object Object Object Object

要引发的事件。The event to raise.

e
KeyEventArgs KeyEventArgs KeyEventArgs KeyEventArgs

包含事件数据的 KeyEventArgsA KeyEventArgs that contains the event data.

适用于

另请参阅