DrawToolTipEventArgs Oluşturucu

Tanım

DrawToolTipEventArgs sınıfının yeni bir örneğini başlatır.

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)

Parametreler

graphics
Graphics

ToolTip'i Graphics çizmek için kullanılan bağlam.

associatedWindow
IWin32Window

ToolTip'in IWin32Window bağlı olduğu.

associatedControl
Control

ToolTip'in Control oluşturulduğu.

bounds
Rectangle

Rectangle Araç İpucunun görüntüleneceği alanı özetleyen bir.

toolTipText
String

String Araç İpucu metnini içeren.

backColor
Color

Color ToolTip arka planının.

foreColor
Color

Color ToolTip metninin.

font
Font

Font ToolTip metnini çizmek için kullanılan.

Açıklamalar

Oluşturucu, DrawToolTipEventArgs karşılık gelen, benzer adlandırılmış özelliklerini başlatmak için , associatedControl``associatedWindow, bounds, ve font toolTipText parametrelerini kullanırgraphics. backColor ve foreColor parametreleri sırasıyla ve DrawText yöntemleri tarafından DrawBackground kullanılır.

Şunlara uygulanır

Ayrıca bkz.