Share via


CheckBoxRenderer.DrawParentBackground(Graphics, Rectangle, Control) 方法

定義

在指定的區域中繪製控制項父代的背景。

public:
 static void DrawParentBackground(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::Control ^ childControl);
public static void DrawParentBackground (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.Control childControl);
static member DrawParentBackground : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.Control -> unit
Public Shared Sub DrawParentBackground (g As Graphics, bounds As Rectangle, childControl As Control)

參數

g
Graphics

Graphics,用於繪製 childControl 的父代背景。

bounds
Rectangle

Rectangle,會在其中繪製父控制項的背景。 這個矩形應該位於子控制項的範圍內。

childControl
Control

要繪製其父代背景的控制項。

適用於