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

childControlの親の背景を描画するために使用されるIDeviceContext。 通常、このオブジェクトは子コントロールに属します。

bounds
Rectangle

親コントロールの背景を描画する Rectangle 。 この四角形は、子コントロールの境界内にある必要があります。

childControl
Control

親の背景を描画するコントロール。

例外

dcnullです。

適用対象