DrawToolTipEventArgs Konstruktor

Definition

Initialisiert eine neue Instanz der DrawToolTipEventArgs-Klasse.

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)

Parameter

graphics
Graphics

Der Graphics Kontext, der zum Zeichnen der QuickInfo verwendet wird.

associatedWindow
IWin32Window

Die IWin32Window QuickInfo ist gebunden.

associatedControl
Control

Die Control QuickInfo wird erstellt.

bounds
Rectangle

A Rectangle that outlines the area where the ToolTip is to be displayed.

toolTipText
String

A String mit dem Text für die QuickInfo.

backColor
Color

Der QuickInfo-Hintergrund Color .

foreColor
Color

Der Color QuickInfo-Text.

font
Font

Wird Font verwendet, um den QuickInfo-Text zu zeichnen.

Hinweise

Der DrawToolTipEventArgs Konstruktor verwendet die graphicsassociatedControlassociatedWindowboundsfont entsprechenden, ähnlich benannten Eigenschaften und toolTipText Parameter, um die entsprechenden, ähnlich benannten Eigenschaften zu initialisieren. Die backColor Parameter werden foreColor von den DrawBackground jeweiligen Methoden bzw DrawText . methoden verwendet.

Gilt für:

Weitere Informationen