Control.InvokePaint(Control, PaintEventArgs) Control.InvokePaint(Control, PaintEventArgs) Control.InvokePaint(Control, PaintEventArgs) Control.InvokePaint(Control, PaintEventArgs) Method

定义

为指定的控件引发 Paint 事件。Raises the Paint event for the specified control.

protected:
 void InvokePaint(System::Windows::Forms::Control ^ c, System::Windows::Forms::PaintEventArgs ^ e);
protected void InvokePaint (System.Windows.Forms.Control c, System.Windows.Forms.PaintEventArgs e);
member this.InvokePaint : System.Windows.Forms.Control * System.Windows.Forms.PaintEventArgs -> unit
Protected Sub InvokePaint (c As Control, e As PaintEventArgs)

参数

c
Control Control Control Control

要为之分配 Control 事件的 PaintThe Control to assign the Paint event to.

e
PaintEventArgs PaintEventArgs PaintEventArgs PaintEventArgs

包含事件数据的 PaintEventArgsAn PaintEventArgs that contains the event data.

适用于

另请参阅