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 L’info-bulle est liée.

associatedControl
Control

Pour Control lequel l’info-bulle est créée.

bounds
Rectangle

Qui Rectangle décrit la zone dans laquelle l’info-bulle doit être affichée.

toolTipText
String

Contenant String le texte de l’info-bulle.

backColor
Color

Arrière-plan Color de l’info-bulle.

foreColor
Color

Texte Color de l’info-bulle.

font
Font

Font Utilisé pour dessiner le texte de l’info-bulle.

Remarques

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

S’applique à

Voir aussi