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 dell'oggetto Graphics utilizzato per disegnare la descrizione comandi.

associatedWindow
IWin32Window

Oggetto IWin32Window a cui è associata la descrizione comandi.

associatedControl
Control

Oggetto Control per cui è stata creata la descrizione comandi.

bounds
Rectangle

Oggetto Rectangle che delinea l'area di visualizzazione della descrizione comandi.

toolTipText
String

Oggetto String contenente il testo della descrizione comandi.

backColor
Color

Oggetto Color dello sfondo della descrizione comandi.

foreColor
Color

Oggetto Color del testo della descrizione comandi.

font
Font

Oggetto Font utilizzato per disegnare il testo della descrizione comandi.

Commenti

Il DrawToolTipEventArgs costruttore usa i parametri , , associatedWindowfontassociatedControlbounds, e toolTipText per inizializzare le graphicsproprietà corrispondenti, denominate in modo analogo. I backColor parametri e vengono usati rispettivamente dai DrawBackground metodi e DrawTextforeColor.

Si applica a

Vedi anche