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 vykreslení 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 zobrazovat.

toolTipText
String

A String obsahující text popisu.

backColor
Color

Pozadí Color popisu

foreColor
Color

Text Color popisu

font
Font

Použitý Font k vykreslení textu popisu.

Poznámky

Konstruktor DrawToolTipEventArgs používá graphicsk associatedControlassociatedWindowboundsfont inicializaci odpovídajících, podobně pojmenovaných vlastností , , a toolTipText parametry. Parametry a backColor parametry foreColor se používají v DrawBackgroundDrawText uvedeném pořadí.

Platí pro

Viz také