DrawToolTipEventArgs Construtor

Definição

Inicializa uma nova instância da DrawToolTipEventArgs classe.

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)

Parâmetros

graphics
Graphics

O Graphics contexto usado para desenhar a ToolTip.

associatedWindow
IWin32Window

O IWin32Window que a ToolTip é obrigatória.

associatedControl
Control

É Control para isso que a ToolTip está a ser criada.

bounds
Rectangle

A Rectangle que delineia a área onde a ToolTip deve ser exibida.

toolTipText
String

A contendo String o texto da ToolTip.

backColor
Color

O Color do fundo do ToolTip.

foreColor
Color

O Color texto da ToolTip.

font
Font

É usado Font para desenhar o texto da dica de ferramenta.

Observações

O DrawToolTipEventArgs construtor usa os graphicsparâmetros , associatedControl, associatedWindow, bounds, font e toolTipText para inicializar as suas propriedades correspondentes, com nomes semelhantes. Os backColor parâmetros e foreColor são usados pelos DrawBackground métodos e DrawText , respetivamente.

Aplica-se a

Ver também