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.

適用於

另請參閱