System.Windows.Forms.DrawToolTipEventArgs.DrawText Method

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

Syntax

public void DrawText ()

Remarks

The DrawToolTipEventArgs.DrawText method represents the default method of displaying a System.Windows.Forms.ToolTip. This method uses the system specified font and the current value of System.Drawing.SystemColors.InfoText for the font color. The text is drawn as a single line centered horizontally and vertically within the rectangle specified by the DrawToolTipEventArgs.Bounds property; it is equivalent to the following call to the overloaded version of DrawToolTipEventArgs.DrawText(TextFormatFlags):

DrawText(TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine | TextFormatFlags.HidePrefix)

Requirements

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