System.Windows.Forms.DrawToolTipEventArgs.Graphics Property

Gets the graphics surface used to draw the System.Windows.Forms.ToolTip.

Syntax

public System.Drawing.Graphics Graphics { get; }

Value

Documentation for this section has not yet been entered.

Remarks

You use the System.Drawing.Graphics object to customize the drawing of certain visual aspects of a System.Windows.Forms.ToolTip. For example, you can draw your own ToolTip background by using the System.Drawing.Graphics.FillRectangle(System.Drawing.Brush, System.Drawing.RectangleF) method.

Any custom drawing that is done outside of the rectangle specified by the DrawToolTipEventArgs.Bounds property will not show up. You can increase the bounds of the System.Windows.Forms.ToolTip before it is shown by handling the ToolTip.Popup event.

The System.Windows.Forms.DrawToolTipEventArgs class also provides the DrawToolTipEventArgs.DrawBackground, DrawToolTipEventArgs.DrawText and DrawToolTipEventArgs.DrawBorder methods to draw individual parts of the System.Windows.Forms.ToolTip in the standard way used by the operating system. You can use these methods, together with the System.Drawing.Graphics object methods, to make some parts of your ToolTip standard, while customizing other parts.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0