DrawToolTipEventArgs Costruttore

Definizione

Inizializza una nuova istanza della 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)

Parametri

graphics
Graphics

Contesto Graphics utilizzato per disegnare la descrizione comando.

associatedWindow
IWin32Window

Oggetto IWin32Window a cui è associata la descrizione comando.

associatedControl
Control

Oggetto Control per cui viene creata la descrizione comando.

bounds
Rectangle

Oggetto Rectangle che delinea l'area in cui deve essere visualizzata la descrizione comando.

toolTipText
String

Oggetto String contenente il testo per la descrizione comando.

backColor
Color

Oggetto Color dello sfondo della descrizione comando.

foreColor
Color

Oggetto Color del testo della descrizione comando.

font
Font

Oggetto Font utilizzato per disegnare il testo della descrizione comando.

Commenti

Il DrawToolTipEventArgs costruttore usa i graphicsparametri , associatedControlassociatedWindow, bounds, font e toolTipText per inizializzare le proprietà corrispondenti, denominate in modo analogo. I backColor parametri e vengono usati rispettivamente dai foreColor metodi e DrawBackgroundDrawText .

Si applica a

Vedi anche