Redigera

Dela via


VisualStyleRenderer.DrawParentBackground Method

Definition

Draws the background of a control's parent in the specified area.

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)

Parameters

dc
IDeviceContext

The IDeviceContext used to draw the background of the parent of childControl. This object typically belongs to the child control.

bounds
Rectangle

A Rectangle in which to draw the parent control's background. This rectangle should be inside the child control's bounds.

childControl
Control

The control whose parent's background will be drawn.

Exceptions

dc is null.

Applies to