1 write to Graphics
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
29Graphics = g.OrThrowIfNull();
33 references to Graphics
System.Windows.Forms (28)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (3)
56Graphics g = e.Graphics; 259Graphics g = e.Graphics; 288Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (1)
54Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (12)
402Graphics g = e.Graphics; 465FillWithDoubleGradient(ColorTable.OverflowButtonGradientBegin, ColorTable.OverflowButtonGradientMiddle, ColorTable.OverflowButtonGradientEnd, e.Graphics, edging, _iconWellGradientWidth, _iconWellGradientWidth, LinearGradientMode.Vertical, /*flipHorizontal=*/false); 482Graphics g = e.Graphics; 704FillWithDoubleGradient(begin, ColorTable.ImageMarginGradientMiddle, end, e.Graphics, bounds, _iconWellGradientWidth, _iconWellGradientWidth, LinearGradientMode.Horizontal, /*flipHorizontal=*/(e.ToolStrip.RightToLeft == RightToLeft.Yes)); 910Graphics g = e.Graphics; 1026e.Graphics.DrawLine(p, 0, 0, e.ToolStrip.Width, 0); 1035e.Graphics, 1101RenderBackgroundGradient(e.Graphics, e.ToolStrip, ColorTable.MenuStripGradientBegin, ColorTable.MenuStripGradientEnd, e.ToolStrip.Orientation); 1178FillWithDoubleGradient(ColorTable.ToolStripGradientBegin, ColorTable.ToolStripGradientMiddle, ColorTable.ToolStripGradientEnd, e.Graphics, bounds, _iconWellGradientWidth, _iconWellGradientWidth, mode, /*flipHorizontal=*/false); 1186e.Graphics.FillRectangle(brush, bounds); 1191Graphics g = e.Graphics; 1342Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
966Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (11)
186Graphics g = e.Graphics; 251e.Graphics.DrawRectangle(SystemPens.ControlDark, bounds); 255ControlPaint.DrawBorder3D(e.Graphics, bounds, Border3DStyle.Raised); 262e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0, bounds.Bottom - 1, bounds.Width, bounds.Bottom - 1); 263e.Graphics.DrawLine(SystemPens.InactiveBorder, 0, bounds.Bottom - 2, bounds.Width, bounds.Bottom - 2); 267e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0, bounds.Bottom - 1, bounds.Width, bounds.Bottom - 1); 268e.Graphics.DrawLine(SystemPens.ButtonShadow, 0, bounds.Bottom - 2, bounds.Width, bounds.Bottom - 2); 278Graphics g = e.Graphics; 766e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0, 0, e.ToolStrip.Width, 0); 776vsRenderer.DrawBackground(e.Graphics, new Rectangle(0, 0, e.ToolStrip.Width - 1, e.ToolStrip.Height - 1)); 782e.Graphics.Clear(e.BackColor);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1856Graphics g = e.Graphics; 1870Graphics g = e.Graphics;
System.Windows.Forms.Tests (3)
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (1)
48Assert.Equal(g, e.Graphics);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (2)
44Assert.Same(graphics, e.Graphics); 68Assert.Same(graphics, e.Graphics);