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 도구 설명이 표시될 영역을 간략하게 설명하는 A입니다.

toolTipText
String

String 도구 설명에 대한 텍스트가 들어 있는 항목입니다.

backColor
Color

Color 도구 설명 배경의

foreColor
Color

Color 도구 설명 텍스트의

font
Font

Font 도구 설명 텍스트를 그리는 데 사용됩니다.

설명

DrawToolTipEventArgs 생성자는 , graphics, associatedControlassociatedWindowboundsfont 매개 변수를 사용하여 toolTipText비슷한 이름의 해당 속성을 초기화합니다. backColorforeColor 매개 변수는 각각 및 DrawBackground 메서드에서 DrawText 사용됩니다.

적용 대상

추가 정보