Compartir vía


VisualStyleRenderer.DrawParentBackground Método

Definición

Dibuja el fondo del elemento primario de un control en el área especificada.

public:
 void DrawParentBackground(System::Drawing::IDeviceContext ^ dc, System::Drawing::Rectangle bounds, System::Windows::Forms::Control ^ childControl);
public void DrawParentBackground (System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds, System.Windows.Forms.Control childControl);
member this.DrawParentBackground : System.Drawing.IDeviceContext * System.Drawing.Rectangle * System.Windows.Forms.Control -> unit
Public Sub DrawParentBackground (dc As IDeviceContext, bounds As Rectangle, childControl As Control)

Parámetros

dc
IDeviceContext

IDeviceContext que se utiliza para dibujar el fondo del control primario de childControl. Este objeto pertenece normalmente al control secundario.

bounds
Rectangle

Rectangle donde se va a dibujar el fondo del control primario. Este rectángulo debe encontrarse dentro de los límites del control secundario.

childControl
Control

Control a cuyo control principal se va a dibujar el fondo.

Excepciones

dc es null.

Se aplica a