RadioButtonRenderer.DrawParentBackground(Graphics, Rectangle, Control) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在指定的區域中繪製控制項父代的背景。
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)
參數
- childControl
- Control
要繪製其父代背景的控制項。
備註
如果在作業系統中啟用視覺化樣式,而視覺化樣式會套用至目前的應用程式,這個方法將會繪製選項按鈕 (也稱為選項按鈕,) 目前的視覺化樣式。 否則,此方法會使用傳統Windows樣式繪製選項按鈕。