Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


DrawToolTipEventArgs Constructor

Definition

Initializes a new instance of the DrawToolTipEventArgs class.

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);

Parameters

graphics
Graphics

The Graphics context used to draw the ToolTip.

associatedWindow
IWin32Window

The IWin32Window that the ToolTip is bound to.

associatedControl
Control

The Control that the ToolTip is being created for.

bounds
Rectangle

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

toolTipText
String

A String containing the text for the ToolTip.

backColor
Color

The Color of the ToolTip background.

foreColor
Color

The Color of the ToolTip text.

font
Font

The Font used to draw the ToolTip text.

Remarks

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.

Applies to

Termék Verziók
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also