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