System.Windows.Forms.ThemeWin32Classic.DrawStringDisabled20 C# (CSharp) Method

DrawStringDisabled20() private method

private DrawStringDisabled20 ( Graphics g, string s, Font font, Rectangle layoutRectangle, Color color, TextFormatFlags flags, bool useDrawString ) : void
g System.Drawing.Graphics
s string
font System.Drawing.Font
layoutRectangle System.Drawing.Rectangle
color System.Drawing.Color
flags TextFormatFlags
useDrawString bool
return void
		private void DrawStringDisabled20 (Graphics g, string s, Font font, Rectangle layoutRectangle, Color color, TextFormatFlags flags, bool useDrawString)
		{
			CPColor cpcolor = ResPool.GetCPColor (color);

			layoutRectangle.Offset (1, 1);
			TextRenderer.DrawTextInternal (g, s, font, layoutRectangle, cpcolor.LightLight, flags, useDrawString);

			layoutRectangle.Offset (-1, -1);
			TextRenderer.DrawTextInternal (g, s, font, layoutRectangle, cpcolor.Dark, flags, useDrawString);
		}
ThemeWin32Classic