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

適用対象

こちらもご覧ください