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

注釈

コンストラクターは、、、、associatedWindowboundsfont、および toolTipText パラメーターを使用して、対応する同様の名前付きプロパティを初期化します。 associatedControlgraphicsDrawToolTipEventArgs backColorパラメーターと foreColor パラメーターは、 メソッドと DrawText メソッドでDrawBackgroundそれぞれ使用されます。

適用対象

こちらもご覧ください