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

DrawCheckBoxText() public method

public DrawCheckBoxText ( Graphics g, CheckBox cb, Rectangle textBounds ) : void
g System.Drawing.Graphics
cb CheckBox
textBounds System.Drawing.Rectangle
return void
		public virtual void DrawCheckBoxText (Graphics g, CheckBox cb, Rectangle textBounds)
		{
			if (cb.Enabled)
				TextRenderer.DrawTextInternal (g, cb.Text, cb.Font, textBounds, cb.ForeColor, cb.TextFormatFlags, cb.UseCompatibleTextRendering);
			else
				DrawStringDisabled20 (g, cb.Text, cb.Font, textBounds, cb.BackColor, cb.TextFormatFlags, cb.UseCompatibleTextRendering);
		}
ThemeWin32Classic