Export (0) Print
Expand All

ControlPaint.DrawStringDisabled Method (Graphics, String, Font, Color, RectangleF, StringFormat)

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.

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

public static void DrawStringDisabled (
	Graphics graphics,
	string s,
	Font font,
	Color color,
	RectangleF layoutRectangle,
	StringFormat format
)
public static void DrawStringDisabled (
	Graphics graphics, 
	String s, 
	Font font, 
	Color color, 
	RectangleF layoutRectangle, 
	StringFormat format
)
public static function DrawStringDisabled (
	graphics : Graphics, 
	s : String, 
	font : Font, 
	color : Color, 
	layoutRectangle : RectangleF, 
	format : StringFormat
)
Not applicable.

Parameters

graphics

The Graphics to draw on.

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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft