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 utilizado para dibujar el fondo del elemento primario de childControl. Este objeto normalmente pertenece al control secundario.

bounds
Rectangle

objeto Rectangle en el que se va a dibujar el fondo del control primario. Este rectángulo debe estar dentro de los límites del control secundario.

childControl
Control

Control cuyo fondo primario se dibujará.

Excepciones

dc es null.

Se aplica a