DrawToolTipEventArgs Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy 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)

Parametry

graphics
Graphics

Kontekst Graphics używany do rysowania etykietki narzędzia.

associatedWindow
IWin32Window

Etykietka IWin32Window narzędzia jest powiązana z.

associatedControl
Control

Etykietka Control narzędzia, dla którego jest tworzona.

bounds
Rectangle

Element Rectangle , który przedstawia obszar, w którym ma być wyświetlana etykietka narzędzia.

toolTipText
String

Tekst String zawierający etykietkę narzędzia.

backColor
Color

Tło Color etykietki narzędzia.

foreColor
Color

Tekst Color etykietki narzędzia.

font
Font

Element Font używany do rysowania tekstu etykietki narzędzia.

Uwagi

Konstruktor DrawToolTipEventArgs używa parametrów graphics, , associatedControl, boundsassociatedWindowi fonttoolTipText do inicjowania odpowiadających im właściwości, podobnie nazwanych. Parametry backColor i są używane odpowiednio przez DrawBackground metody i DrawTextforeColor.

Dotyczy

Zobacz też