共用方式為


DrawToolTipEventArgs 建構函式

定義

初始化 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)

參數

graphics
Graphics

繪製工具提示所用的 Graphics 內容。

associatedWindow
IWin32Window

工具提示所繫結的 IWin32Window

associatedControl
Control

Control,工具提示是為其所建立。

bounds
Rectangle

Rectangle,描繪將要顯示工具提示之區域的外框。

toolTipText
String

String,其中包含工具提示的文字。

backColor
Color

工具提示背景的 Color

foreColor
Color

工具提示文字的 Color

font
Font

繪製工具提示文字所用的 Font

備註

DrawToolTipEventArgs 構函式會 graphics 使用 、 associatedControlfontassociatedWindowboundstoolTipText 參數,初始化其對應的類似具名屬性。 backColor和 參數分別由 DrawBackgroundforeColorDrawText 方法使用。

適用於

另請參閱