Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DrawToolTipEventArgs Constructor (Graphics^, IWin32Window^, Control^, Rectangle, String^, Color, Color, Font^)

 

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
Available since 2.0
Return to top
Show:
© 2017 Microsoft