共用方式為


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樣式繪製選項按鈕。

適用於