1 write to Graphics
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemRenderEventArgs.cs (1)
15Graphics = g.OrThrowIfNull();
51 references to Graphics
System.Windows.Forms (34)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (9)
100e.Graphics.DrawRectangle(SystemPens.ButtonHighlight, new Rectangle(0, 0, e.Item.Width - 1, e.Item.Height - 1)); 136Graphics g = e.Graphics; 181e.Graphics.DrawRectangle(SystemPens.ButtonHighlight, 0, 0, e.Item.Width - 1, e.Item.Height - 1); 186Graphics g = e.Graphics; 204Graphics g = e.Graphics; 349Graphics g = e.Graphics; 409Graphics g = e.Graphics; 441Graphics g = e.Graphics; 507Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (14)
157Graphics g = e.Graphics; 232RenderPressedGradient(e.Graphics, bounds); 248RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.Size), e.Vertical); 259Graphics g = e.Graphics; 293RenderPressedGradient(e.Graphics, bounds); 322ControlPaint.DrawBorder3D(e.Graphics, new Rectangle(0, 0, item.Width, item.Height), item.BorderStyle, (Border3DSide)item.BorderSides); 346Graphics g = e.Graphics; 545Graphics g = e.Graphics; 769e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty, imageRect.Size), GraphicsUnit.Pixel); 773e.Graphics.DrawImage(image, imageRect); 1052Graphics g = e.Graphics; 1106Graphics g = e.Graphics; 1215Graphics g = e.Graphics; 1565Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (4)
797e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty, imageRect.Size), GraphicsUnit.Pixel); 801e.Graphics.DrawImage(image, imageRect); 845e.Graphics.DrawImage(image, imageRect, 0, 0, imageRect.Width, 865Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (7)
381Graphics g = e.Graphics; 412Graphics g = e.Graphics; 490RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.Size), e.Vertical); 499ControlPaint.DrawBorder3D(e.Graphics, new Rectangle(0, 0, item.Width - 1, item.Height - 1), item.BorderStyle, (Border3DSide)item.BorderSides); 521Graphics g = e.Graphics; 646Graphics g = e.Graphics; 791Graphics g = e.Graphics;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
1885Graphics g = e.Graphics; 1971Graphics g = e.Graphics;
System.Windows.Forms.Tests (15)
System\Windows\Forms\ToolStripButtonTests.cs (6)
1290Assert.Same(graphics, e.Graphics); 1299Assert.Same(graphics, e.Graphics); 1312Assert.Same(graphics, e.Graphics); 1381Assert.Same(graphics, e.Graphics); 1390Assert.Same(graphics, e.Graphics); 1403Assert.Same(graphics, e.Graphics);
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (3)
65Assert.Equal(g, e.Graphics); 83Assert.Equal(g, e.Graphics); 104Assert.Equal(graphics, e.Graphics);
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (1)
46Assert.Equal(g, e.Graphics);
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (2)
25Assert.Equal(g, e.Graphics); 51Assert.Equal(g, e.Graphics);
System\Windows\Forms\ToolStripSeparatorRenderEventArgsTests.cs (1)
40Assert.Equal(g, e.Graphics);
System\Windows\Forms\ToolStripSeparatorTests.cs (2)
1236Assert.Same(graphics, e.Graphics); 1307Assert.Same(graphics, e.Graphics);