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

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

适用于