Sdílet prostřednictvím


DrawToolTipEventArgs Konstruktor

Definice

Inicializuje novou instanci DrawToolTipEventArgs třídy.

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

Kontext Graphics použitý k nakreslení popisu

associatedWindow
IWin32Window

Popis IWin32Window je vázán.

associatedControl
Control

Popis Control , pro který se vytváří.

bounds
Rectangle

A Rectangle , která popisuje oblast, ve které se má popis zobrazit.

toolTipText
String

A String obsahující text popisu.

backColor
Color

Pozadí Color popisu

foreColor
Color

Text Color popisu

font
Font

Použitý Font k nakreslení textu popisku

Poznámky

Konstruktor DrawToolTipEventArgs k inicializaci odpovídajících, podobně pojmenovaných vlastností používá graphicsparametr , bounds``font associatedControl``associatedWindowa toolTipText parametry. Parametry a foreColor parametry backColor jsou používány metodami a DrawText metodamiDrawBackground.

Platí pro

Viz také