1 write to Graphics
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
29Graphics = g.OrThrowIfNull();
39 references to Graphics
System.Windows.Forms (34)
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)
401Graphics g = e.Graphics; 464FillWithDoubleGradient(ColorTable.OverflowButtonGradientBegin, ColorTable.OverflowButtonGradientMiddle, ColorTable.OverflowButtonGradientEnd, e.Graphics, edging, _iconWellGradientWidth, _iconWellGradientWidth, LinearGradientMode.Vertical, /*flipHorizontal=*/false); 481Graphics g = e.Graphics; 703FillWithDoubleGradient(begin, ColorTable.ImageMarginGradientMiddle, end, e.Graphics, bounds, _iconWellGradientWidth, _iconWellGradientWidth, LinearGradientMode.Horizontal, /*flipHorizontal=*/(e.ToolStrip.RightToLeft == RightToLeft.Yes)); 909Graphics g = e.Graphics; 1025e.Graphics.DrawLine(p, 0, 0, e.ToolStrip.Width, 0); 1034e.Graphics, 1100RenderBackgroundGradient(e.Graphics, e.ToolStrip, ColorTable.MenuStripGradientBegin, ColorTable.MenuStripGradientEnd, e.ToolStrip.Orientation); 1177FillWithDoubleGradient(ColorTable.ToolStripGradientBegin, ColorTable.ToolStripGradientMiddle, ColorTable.ToolStripGradientEnd, e.Graphics, bounds, _iconWellGradientWidth, _iconWellGradientWidth, mode, /*flipHorizontal=*/false); 1185e.Graphics.FillRectangle(brush, bounds); 1190Graphics g = e.Graphics; 1341Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
1053Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (6)
127Graphics g = e.Graphics; 162FillBackground(e.Graphics, bounds, GetDarkModeColor(SystemColors.Control)); 181Graphics g = e.Graphics; 212Graphics g = e.Graphics; 525Graphics g = e.Graphics; 584e.Graphics.FillRectangle(marginColorBrush, e.AffectedBounds);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (11)
232Graphics g = e.Graphics; 303e.Graphics.DrawRectangle(SystemPens.ControlDark, bounds); 307ControlPaint.DrawBorder3D(e.Graphics, bounds, Border3DStyle.Raised); 314e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0, bounds.Bottom - 1, bounds.Width, bounds.Bottom - 1); 315e.Graphics.DrawLine(SystemPens.InactiveBorder, 0, bounds.Bottom - 2, bounds.Width, bounds.Bottom - 2); 319e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0, bounds.Bottom - 1, bounds.Width, bounds.Bottom - 1); 320e.Graphics.DrawLine(SystemPens.ButtonShadow, 0, bounds.Bottom - 2, bounds.Width, bounds.Bottom - 2); 330Graphics g = e.Graphics; 825e.Graphics.DrawLine(SystemPens.ButtonHighlight, 0, 0, e.ToolStrip.Width, 0); 835vsRenderer.DrawBackground(e.Graphics, new Rectangle(0, 0, e.ToolStrip.Width - 1, e.ToolStrip.Height - 1)); 841e.Graphics.Clear(e.BackColor);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1814Graphics g = e.Graphics; 1828Graphics g = e.Graphics;
System.Windows.Forms.Tests (3)
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (1)
50Assert.Equal(g, e.Graphics);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (2)
46Assert.Same(graphics, e.Graphics); 70Assert.Same(graphics, e.Graphics);