ToolStripRenderer.DrawToolStripBackground(ToolStripRenderEventArgs) Méthode

Définition

Dessine l’arrière-plan d’un ToolStrip.

public:
 void DrawToolStripBackground(System::Windows::Forms::ToolStripRenderEventArgs ^ e);
public void DrawToolStripBackground(System.Windows.Forms.ToolStripRenderEventArgs e);
member this.DrawToolStripBackground : System.Windows.Forms.ToolStripRenderEventArgs -> unit
Public Sub DrawToolStripBackground (e As ToolStripRenderEventArgs)

Paramètres

e
ToolStripRenderEventArgs

Qui ToolStripRenderEventArgs contient les données pour dessiner l’arrière-plan de l’objet ToolStrip.

Remarques

La DrawToolStripBackground méthode fournit le point d’entrée au code de rendu pour l’arrière-plan d’un ToolStrip. Utilisez cette méthode pour dessiner l’arrière-plan d’un ToolStrip lors de la substitution de la ToolStrip.OnPaintBackground méthode, ou pour forcer l’arrière-plan d’un ToolStrip dessin dans une méthode personnalisée ToolStripRenderer. Pour modifier la façon dont l’arrière-plan d’un ToolStrip est rendu, remplacez la OnRenderToolStripBackground méthode dans une classe dérivée de ToolStripRenderer.

S’applique à