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

用于绘制 childControl 的父级的背景的 Graphics

bounds
Rectangle

一个 Rectangle,将在其中绘制父控件的背景。 此矩形应位于子控件的边界之内。

childControl
Control

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

适用于