CheckBoxRenderer::DrawParentBackground Method (Graphics^, Rectangle, Control^)

 

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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
static void DrawParentBackground(
	Graphics^ g,
	Rectangle bounds,
	Control^ childControl
)

Parameters

g
Type: System.Drawing::Graphics^

The Graphics used to draw the background of the parent of childControl.

bounds
Type: System.Drawing::Rectangle

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

childControl
Type: System.Windows.Forms::Control^

The control whose parent's background will be drawn.

.NET Framework
Available since 2.0
Return to top
Show: