Export (0) Print
Expand All

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


Type: System.Drawing.Graphics

The Graphics context used to draw the ToolTip.

Type: System.Windows.Forms.IWin32Window

The IWin32Window that the ToolTip is bound to.

Type: System.Windows.Forms.Control

The Control that the ToolTip is being created for.

Type: System.Drawing.Rectangle

A Rectangle that outlines the area where the ToolTip is to be displayed.

Type: System.String

A String containing the text for the ToolTip.

Type: System.Drawing.Color

The Color of the ToolTip background.

Type: System.Drawing.Color

The Color of the ToolTip text.

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

Windows 8.1, Windows Server 2012 R2, 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.

© 2014 Microsoft