DrawToolTipEventArgs Constructor

Definición

Inicializa una nueva instancia de la clase 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

Contexto Graphics usado para dibujar la información sobre herramientas.

associatedWindow
IWin32Window

al IWin32Window que está enlazada la información sobre herramientas.

associatedControl
Control

para Control el que se va a crear la información sobre herramientas.

bounds
Rectangle

Rectangle que describe el área donde se va a mostrar la información sobre herramientas.

toolTipText
String

que String contiene el texto de la información sobre herramientas.

backColor
Color

Color del fondo de información sobre herramientas.

foreColor
Color

Color del texto de información sobre herramientas.

font
Font

Font utilizado para dibujar el texto de información sobre herramientas.

Comentarios

El DrawToolTipEventArgs constructor usa los graphicsparámetros , associatedControl, associatedWindow, boundsy fonttoolTipText para inicializar sus propiedades correspondientes, con nombre similar. Los backColor métodos y usan los foreColor parámetros y DrawBackgroundDrawText , respectivamente.

Se aplica a

Consulte también