RadioButtonRenderer.DrawParentBackground(Graphics, Rectangle, Control) Méthode

Définition

Dessine l’arrière-plan du parent d’un contrôle dans la zone spécifiée.

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)

Paramètres

g
Graphics

Utilisé Graphics pour dessiner l’arrière-plan du parent de childControl.

bounds
Rectangle

Rectangle Dans lequel dessiner l’arrière-plan du contrôle parent. Ce rectangle doit se trouver à l’intérieur des limites du contrôle enfant.

childControl
Control

Contrôle dont l’arrière-plan parent sera dessiné.

Remarques

Si les styles visuels sont activés dans le système d’exploitation et que les styles visuels sont appliqués à l’application actuelle, cette méthode dessine le bouton d’option (également appelé case d’option) avec le style visuel actuel. Dans le cas contraire, cette méthode dessine le bouton d’option avec le style de Windows classique.

S’applique à