31 references to Graphics
System.Windows.Forms (31)
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (3)
53 Graphics g = e.Graphics; 228 Graphics g = e.Graphics; 255 Graphics g = e.Graphics;
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (1)
42Graphics g = e.Graphics;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (14)
363Graphics g = e.Graphics; 415FillWithDoubleGradient(ColorTable.OverflowButtonGradientBegin, ColorTable.OverflowButtonGradientMiddle, ColorTable.OverflowButtonGradientEnd, e.Graphics, edging, iconWellGradientWidth, iconWellGradientWidth, LinearGradientMode.Vertical, /*flipHorizontal=*/false); 431Graphics g = e.Graphics; 610Graphics g = e.Graphics; 618FillWithDoubleGradient(begin, ColorTable.ImageMarginGradientMiddle, end, e.Graphics, bounds, iconWellGradientWidth, iconWellGradientWidth, LinearGradientMode.Horizontal, /*flipHorizontal=*/(e.ToolStrip.RightToLeft == RightToLeft.Yes)); 796Graphics g = e.Graphics; 898e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0,0,e.ToolStrip.Width, 0); 903RenderBackgroundGradient(e.Graphics, statusStrip, ColorTable.StatusStripGradientBegin, ColorTable.StatusStripGradientEnd, statusStrip.Orientation); 952RenderBackgroundGradient(e.Graphics, e.ToolStrip, ColorTable.MenuStripGradientBegin, ColorTable.MenuStripGradientEnd, e.ToolStrip.Orientation); 1013Graphics g = e.Graphics; 1018FillWithDoubleGradient(ColorTable.ToolStripGradientBegin, ColorTable.ToolStripGradientMiddle, ColorTable.ToolStripGradientEnd, e.Graphics, bounds, iconWellGradientWidth, iconWellGradientWidth, mode, /*flipHorizontal=*/false); 1027e.Graphics.FillRectangle(b, bounds); 1033Graphics g = e.Graphics; 1159Graphics g = e.Graphics;
winforms\Managed\System\WinForms\ToolStripRenderer.cs (1)
1017Graphics g = e.Graphics;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (12)
175Graphics g = e.Graphics; 220Graphics g = e.Graphics; 233e.Graphics.DrawRectangle(new Pen(SystemColors.ControlDark), bounds); 236ControlPaint.DrawBorder3D(e.Graphics, bounds, Border3DStyle.Raised); 241e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0,bounds.Bottom-1,bounds.Width, bounds.Bottom-1); 242e.Graphics.DrawLine(SystemPens.InactiveBorder, 0,bounds.Bottom-2,bounds.Width,bounds.Bottom-2); 245e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0,bounds.Bottom-1,bounds.Width, bounds.Bottom-1); 246e.Graphics.DrawLine(SystemPens.ButtonShadow, 0,bounds.Bottom-2,bounds.Width,bounds.Bottom-2); 257Graphics g = e.Graphics; 680e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0,0,e.ToolStrip.Width, 0); 688vsRenderer.DrawBackground(e.Graphics,new Rectangle(0,0,e.ToolStrip.Width-1, e.ToolStrip.Height-1)); 692e.Graphics.Clear(e.BackColor);