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