Export (0) Print
Expand All

VisualStyleRenderer.DrawParentBackground Method

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

Namespace: System.Windows.Forms.VisualStyles
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public void DrawParentBackground (
	IDeviceContext dc,
	Rectangle bounds,
	Control childControl
)
public void DrawParentBackground (
	IDeviceContext dc, 
	Rectangle bounds, 
	Control childControl
)
public function DrawParentBackground (
	dc : IDeviceContext, 
	bounds : Rectangle, 
	childControl : Control
)
Not applicable.

Parameters

dc

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

bounds

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

childControl

The control whose parent's background will be drawn.

Exception typeCondition

ArgumentNullException

dc is a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft