VisualStyleRenderer.DrawParentBackground 方法

定义

绘制指定区域中控件父级的背景。

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)

参数

dc
IDeviceContext

IDeviceContext用于绘制父级childControl的背景。 此对象通常属于子控件。

bounds
Rectangle

要在其中绘制父控件的背景的 A Rectangle 。 此矩形应位于子控件的边界内。

childControl
Control

将绘制其父级背景的控件。

例外

dcnull

适用于