Control.RaiseMouseEvent(Object, MouseEventArgs) 方法

定义

引发适当的鼠标事件。Raises the appropriate mouse event.

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

参数

key
Object

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

e
MouseEventArgs

包含事件数据的 MouseEventArgsA MouseEventArgs that contains the event data.

适用于

另请参阅