CheckBoxRenderer.DrawParentBackground(Graphics, Rectangle, Control) Metodo

Definizione

Disegna lo sfondo dell'elemento padre di un controllo nell'area specificata.

public:
 static void DrawParentBackground(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::Control ^ childControl);
public static void DrawParentBackground (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.Control childControl);
static member DrawParentBackground : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.Control -> unit
Public Shared Sub DrawParentBackground (g As Graphics, bounds As Rectangle, childControl As Control)

Parametri

g
Graphics

Oggetto Graphics utilizzato per disegnare lo sfondo del padre di childControl.

bounds
Rectangle

Oggetto Rectangle in cui deve essere disegnato lo sfondo del controllo padre. Questo rettangolo deve trovarsi all'interno dei limiti del controllo figlio.

childControl
Control

Controllo del cui padre verrà disegnato lo sfondo.

Si applica a