System.Windows.Forms.VisualStyles.VisualStyleRenderer.DrawText Method

Draws text in the specified bounding rectangle with the option of displaying disabled text and applying other text formatting.

Syntax

public void DrawText (System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds, string textToDraw, bool drawDisabled, System.Windows.Forms.TextFormatFlags flags)

Parameters

dc
The System.Drawing.IDeviceContext used to draw the text.
bounds
A System.Drawing.Rectangle in which to draw the text.
textToDraw
The text to draw.
drawDisabled
true to draw grayed-out text; otherwise, false.
flags
A bitwise combination of the System.Windows.Forms.TextFormatFlags values.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Windows.Forms.VisualStyles
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0