6 references to DrawGrid
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\GroupBoxDesigner.cs (1)
82
ControlPaint.
DrawGrid
(pe.Graphics, rectangle, GridSize, control.BackColor);
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
2043
ControlPaint.
DrawGrid
(pe.Graphics, paintRect, GridSize, control.BackColor);
System.Windows.Forms.Tests (4)
System\Windows\Forms\ControlPaintTests.cs (4)
1282
ControlPaint.
DrawGrid
(graphics, area, pixelsBetweenDots, backColor);
1285
ControlPaint.
DrawGrid
(graphics, area, pixelsBetweenDots, backColor);
1291
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.
DrawGrid
(null, new Rectangle(1, 2, 3, 4), new Size(1, 1), Color.Red));
1303
Assert.Throws<ArgumentOutOfRangeException>("pixelsBetweenDots", () => ControlPaint.
DrawGrid
(graphics, new Rectangle(0, 0, width, height), new Size(width, height), Color.Red));