DrawToolTipEventArgs Constructor
Initializes a new instance of the DrawToolTipEventArgs class.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public DrawToolTipEventArgs( Graphics graphics, IWin32Window associatedWindow, Control associatedControl, Rectangle bounds, string toolTipText, Color backColor, Color foreColor, Font font )
Parameters
- graphics
- Type: System.Drawing.Graphics
The Graphics context used to draw the ToolTip.
- associatedWindow
- Type: System.Windows.Forms.IWin32Window
The IWin32Window that the ToolTip is bound to.
- associatedControl
- Type: System.Windows.Forms.Control
The Control that the ToolTip is being created for.
- bounds
- Type: System.Drawing.Rectangle
A Rectangle that outlines the area where the ToolTip is to be displayed.
- toolTipText
- Type: System.String
A String containing the text for the ToolTip.
- backColor
- Type: System.Drawing.Color
The Color of the ToolTip background.
- foreColor
- Type: System.Drawing.Color
The Color of the ToolTip text.
- font
- Type: System.Drawing.Font
The Font used to draw the ToolTip text.
The DrawToolTipEventArgs constructor uses the graphics, associatedControl, associatedWindow, bounds, font and toolTipText parameters to initialize their corresponding, similarly named properties. The backColor and foreColor parameters are used by the DrawBackground and DrawText methods, respectively.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.