語言

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 風格繪製選項按鈕。

適用於