CheckBoxRenderer.DrawParentBackground(Graphics, Rectangle, Control) Metoda

Definicja

Rysuje tło elementu nadrzędnego kontrolki w określonym obszarze.

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)

Parametry

g
Graphics

Obiekt Graphics używany do rysowania tła elementu nadrzędnego elementu childControl.

bounds
Rectangle

Element Rectangle , w którym ma być rysowanie tła kontrolki nadrzędnej. Ten prostokąt powinien znajdować się wewnątrz granic kontrolki podrzędnej.

childControl
Control

Kontrolka, której tło obiektu nadrzędnego zostanie narysowane.

Dotyczy