Share via


DrawToolTipEventArgs Constructeur

Définition

Initialise une nouvelle instance de la classe DrawToolTipEventArgs.

public:
 DrawToolTipEventArgs(System::Drawing::Graphics ^ graphics, System::Windows::Forms::IWin32Window ^ associatedWindow, System::Windows::Forms::Control ^ associatedControl, System::Drawing::Rectangle bounds, System::String ^ toolTipText, System::Drawing::Color backColor, System::Drawing::Color foreColor, System::Drawing::Font ^ font);
public DrawToolTipEventArgs (System.Drawing.Graphics graphics, System.Windows.Forms.IWin32Window associatedWindow, System.Windows.Forms.Control associatedControl, System.Drawing.Rectangle bounds, string toolTipText, System.Drawing.Color backColor, System.Drawing.Color foreColor, System.Drawing.Font font);
public DrawToolTipEventArgs (System.Drawing.Graphics graphics, System.Windows.Forms.IWin32Window? associatedWindow, System.Windows.Forms.Control? associatedControl, System.Drawing.Rectangle bounds, string? toolTipText, System.Drawing.Color backColor, System.Drawing.Color foreColor, System.Drawing.Font? font);
new System.Windows.Forms.DrawToolTipEventArgs : System.Drawing.Graphics * System.Windows.Forms.IWin32Window * System.Windows.Forms.Control * System.Drawing.Rectangle * string * System.Drawing.Color * System.Drawing.Color * System.Drawing.Font -> System.Windows.Forms.DrawToolTipEventArgs
Public Sub New (graphics As Graphics, associatedWindow As IWin32Window, associatedControl As Control, bounds As Rectangle, toolTipText As String, backColor As Color, foreColor As Color, font As Font)

Paramètres

graphics
Graphics

Contexte Graphics utilisé pour dessiner l'info-bulle.

associatedWindow
IWin32Window

IWin32Window auquel l'info-bulle est liée.

associatedControl
Control

Control pour lequel l'info-bulle est créée.

bounds
Rectangle

Rectangle qui trace le contour de la zone où l'info-bulle sera affichée.

toolTipText
String

String contenant le texte de l'info-bulle.

backColor
Color

Color de l'arrière-plan de l'info-bulle.

foreColor
Color

Color du texte info-bulle.

font
Font

Font utilisé pour dessiner le texte info-bulle.

Remarques

Le DrawToolTipEventArgs constructeur utilise les graphicsparamètres , associatedControl, associatedWindow, boundsfont et toolTipText pour initialiser leurs propriétés correspondantes, nommées de la même façon. Les backColor paramètres et foreColor sont utilisés par les DrawBackground méthodes et DrawText , respectivement.

S’applique à

Voir aussi