DrawToolTipEventArgs Construtor

Definição

Inicializa uma nova instância da classe 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)

Parâmetros

graphics
Graphics

O Graphics contexto usado para desenhar a Dica de Ferramenta.

associatedWindow
IWin32Window

Ao IWin32Window qual a Dica de Ferramenta está associada.

associatedControl
Control

Para Control o qual a Dica de Ferramenta está sendo criada.

bounds
Rectangle

Um Rectangle que descreve a área onde a Dica de Ferramenta deve ser exibida.

toolTipText
String

Um String que contém o texto da Dica de Ferramenta.

backColor
Color

O Color plano de fundo da Dica de Ferramenta.

foreColor
Color

O Color texto da Dica de Ferramenta.

font
Font

O Font usado para desenhar o texto da Dica de Ferramenta.

Comentários

O DrawToolTipEventArgs construtor usa os graphicsparâmetros, , associatedControlassociatedWindowboundsfonte toolTipText , para inicializar suas propriedades correspondentes, nomeadas da mesma forma. Os backColor parâmetros e os parâmetros foreColor são usados pelos métodos e DrawBackground pelos DrawText métodos, respectivamente.

Aplica-se a

Confira também