Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DrawToolTipEventArgs Constructor

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft