CheckBoxRenderer.DrawParentBackground(Graphics, Rectangle, Control) Méthode

Définition

Dessine l’arrière-plan du parent d’un contrôle dans la zone spécifiée.

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)

Paramètres

g
Graphics

Graphics utilisé pour dessiner l'arrière-plan du parent de childControl.

bounds
Rectangle

Rectangle dans lequel dessiner l'arrière-plan du contrôle parent. Ce rectangle doit se trouver à l’intérieur des limites du contrôle enfant.

childControl
Control

Le contrôle dont l'arrière-plan du parent sera dessiné.

S’applique à