31 references to Graphics
System.Windows.Forms (31)
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (3)
53
Graphics g = e.
Graphics
;
228
Graphics g = e.
Graphics
;
255
Graphics g = e.
Graphics
;
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (1)
42
Graphics g = e.
Graphics
;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (14)
363
Graphics g = e.
Graphics
;
415
FillWithDoubleGradient(ColorTable.OverflowButtonGradientBegin, ColorTable.OverflowButtonGradientMiddle, ColorTable.OverflowButtonGradientEnd, e.
Graphics
, edging, iconWellGradientWidth, iconWellGradientWidth, LinearGradientMode.Vertical, /*flipHorizontal=*/false);
431
Graphics g = e.
Graphics
;
610
Graphics g = e.
Graphics
;
618
FillWithDoubleGradient(begin, ColorTable.ImageMarginGradientMiddle, end, e.
Graphics
, bounds, iconWellGradientWidth, iconWellGradientWidth, LinearGradientMode.Horizontal, /*flipHorizontal=*/(e.ToolStrip.RightToLeft == RightToLeft.Yes));
796
Graphics g = e.
Graphics
;
898
e.
Graphics
.DrawLine(SystemPens.ButtonHighlight, 0,0,e.ToolStrip.Width, 0);
903
RenderBackgroundGradient(e.
Graphics
, statusStrip, ColorTable.StatusStripGradientBegin, ColorTable.StatusStripGradientEnd, statusStrip.Orientation);
952
RenderBackgroundGradient(e.
Graphics
, e.ToolStrip, ColorTable.MenuStripGradientBegin, ColorTable.MenuStripGradientEnd, e.ToolStrip.Orientation);
1013
Graphics g = e.
Graphics
;
1018
FillWithDoubleGradient(ColorTable.ToolStripGradientBegin, ColorTable.ToolStripGradientMiddle, ColorTable.ToolStripGradientEnd, e.
Graphics
, bounds, iconWellGradientWidth, iconWellGradientWidth, mode, /*flipHorizontal=*/false);
1027
e.
Graphics
.FillRectangle(b, bounds);
1033
Graphics g = e.
Graphics
;
1159
Graphics g = e.
Graphics
;
winforms\Managed\System\WinForms\ToolStripRenderer.cs (1)
1017
Graphics g = e.
Graphics
;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (12)
175
Graphics g = e.
Graphics
;
220
Graphics g = e.
Graphics
;
233
e.
Graphics
.DrawRectangle(new Pen(SystemColors.ControlDark), bounds);
236
ControlPaint.DrawBorder3D(e.
Graphics
, bounds, Border3DStyle.Raised);
241
e.
Graphics
.DrawLine(SystemPens.ButtonHighlight, 0,bounds.Bottom-1,bounds.Width, bounds.Bottom-1);
242
e.
Graphics
.DrawLine(SystemPens.InactiveBorder, 0,bounds.Bottom-2,bounds.Width,bounds.Bottom-2);
245
e.
Graphics
.DrawLine(SystemPens.ButtonHighlight, 0,bounds.Bottom-1,bounds.Width, bounds.Bottom-1);
246
e.
Graphics
.DrawLine(SystemPens.ButtonShadow, 0,bounds.Bottom-2,bounds.Width,bounds.Bottom-2);
257
Graphics g = e.
Graphics
;
680
e.
Graphics
.DrawLine(SystemPens.ButtonHighlight, 0,0,e.ToolStrip.Width, 0);
688
vsRenderer.DrawBackground(e.
Graphics
,new Rectangle(0,0,e.ToolStrip.Width-1, e.ToolStrip.Height-1));
692
e.
Graphics
.Clear(e.BackColor);