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