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

Rectangle A 用來繪製家長對照組的背景。 這個矩形應該在子控制的範圍內。

childControl
Control

將抽取父母背景的控制。

例外狀況

dcnull

適用於