System.Windows.Forms.ControlPaint.DrawStringDisabled Method

Draws the specified string in a disabled state on the specified graphics surface, within the specified bounds, and in the specified font, color, and format, using the specified GDI-based System.Windows.Forms.TextRenderer.

Syntax

public static void DrawStringDisabled (System.Drawing.IDeviceContext dc, string s, System.Drawing.Font font, System.Drawing.Color color, System.Drawing.Rectangle layoutRectangle, TextFormatFlags format)

Parameters

dc
The GDI-based System.Windows.Forms.TextRenderer.
s
The string to draw.
font
The System.Drawing.Font to draw the string with.
color
The System.Drawing.Color of the background behind the string.
layoutRectangle
The System.Drawing.RectangleF that represents the dimensions of the string.
format
The System.Drawing.StringFormat to apply to the string.

Remarks

Documentation for this section has not yet been entered.

Requirements

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