RadioButtonRenderer.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

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

注解

如果在操作系统中启用了视觉样式,并且视觉样式应用于当前应用程序,此方法将使用当前视觉样式绘制选项按钮(也称为单选按钮)。 否则,此方法将使用经典Windows样式绘制选项按钮。

适用于