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です。

適用対象