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