Modifier

Partager via


RadioButtonRenderer.DrawParentBackground(Graphics, Rectangle, Control) Method

Definition

Draws the background of a control's parent in the specified area.

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)

Parameters

g
Graphics

The Graphics used to draw the background of the parent of childControl.

bounds
Rectangle

The Rectangle in which to draw the parent control's background. This rectangle should be inside the child control's bounds.

childControl
Control

The control whose parent's background will be drawn.

Remarks

If visual styles are enabled in the operating system and visual styles are applied to the current application, this method will draw the option button (also known as a radio button) with the current visual style. Otherwise, this method will draw the option button with the classic Windows style.

Applies to