System.Windows.Forms.DrawToolTipEventArgs.DrawText Method

Draws the text of the System.Windows.Forms.ToolTip using the system text color and font, and the specified text layout.

Syntax

public void DrawText (TextFormatFlags flags)

Parameters

flags
A System.Windows.Forms.TextFormatFlags containing a bitwise combination of values that specifies the display and layout for the DrawToolTipEventArgs.ToolTipText.

Remarks

The DrawToolTipEventArgs.DrawText(TextFormatFlags) method is used to customize certain visual aspects of a System.Windows.Forms.ToolTip, including the layout of the ToolTip text. This method uses the system specified font and the current value of System.Drawing.SystemColors.InfoText for the font color.

Requirements

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