Export (0) Print
Expand All

ControlPaint.DrawStringDisabled Method (IDeviceContext, String, Font, Color, Rectangle, TextFormatFlags)

Note: This method is new in the .NET Framework version 2.0.

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 TextRenderer.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public static void DrawStringDisabled (
	IDeviceContext dc,
	string s,
	Font font,
	Color color,
	Rectangle layoutRectangle,
	TextFormatFlags format
)
public static void DrawStringDisabled (
	IDeviceContext dc, 
	String s, 
	Font font, 
	Color color, 
	Rectangle layoutRectangle, 
	TextFormatFlags format
)
public static function DrawStringDisabled (
	dc : IDeviceContext, 
	s : String, 
	font : Font, 
	color : Color, 
	layoutRectangle : Rectangle, 
	format : TextFormatFlags
)

Parameters

dc

The GDI-based TextRenderer.

s

The string to draw.

font

The Font to draw the string with.

color

The Color of the background behind the string.

layoutRectangle

The RectangleF that represents the dimensions of the string.

format

The StringFormat to apply to the string.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft