ControlPaint.DrawStringDisabled Method
.NET Framework 1.1
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.
[Visual Basic] Public Shared Sub DrawStringDisabled( _ ByVal graphics As Graphics, _ ByVal s As String, _ ByVal font As Font, _ ByVal color As Color, _ ByVal layoutRectangle As RectangleF, _ ByVal format As StringFormat _ ) [C#] public static void DrawStringDisabled( Graphics graphics, string s, Font font, Color color, RectangleF layoutRectangle, StringFormat format ); [C++] public: static void DrawStringDisabled( Graphics* graphics, String* s, Font* font, Color color, RectangleF layoutRectangle, StringFormat* format ); [JScript] public static function DrawStringDisabled( graphics : Graphics, s : String, font : Font, color : Color, layoutRectangle : RectangleF, format : StringFormat );
Parameters
- graphics
- The Graphics to draw on.
- s
- The string to draw.
- font
- The Font to draw the string with.
- color
- The Color to draw the string with.
- layoutRectangle
- The RectangleF that represents the dimensions of the string.
- format
- The StringFormat to apply to the string.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
ControlPaint Class | ControlPaint Members | System.Windows.Forms Namespace