12 references to DrawBackground
System.Windows.Forms (10)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.DataGridViewButtonCellRenderer.cs (1)
28DataGridViewButtonRenderer.DrawBackground(g, bounds, Rectangle.Truncate(g.ClipBounds));
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellRenderer.cs (1)
28CheckBoxRenderer.DrawBackground(g, bounds, Rectangle.Truncate(g.ClipBounds));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellRenderer.cs (3)
34VisualStyleRenderer.DrawBackground(g, bounds, cornerClip); 37VisualStyleRenderer.DrawBackground(g, bounds, cornerClip); 41VisualStyleRenderer.DrawBackground(g, bounds, rectClip);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellRenderer.cs (1)
28VisualStyleRenderer.DrawBackground(g, bounds, Rectangle.Truncate(g.ClipBounds));
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellRenderer.cs (1)
28VisualStyleRenderer.DrawBackground(g, bounds, Rectangle.Truncate(g.ClipBounds));
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (3)
238t_visualStyleRenderer.DrawBackground(deviceContext, boxBounds, clipLeft); 239t_visualStyleRenderer.DrawBackground(deviceContext, boxBounds, clipMiddle); 240t_visualStyleRenderer.DrawBackground(deviceContext, boxBounds, clipRight);
System.Windows.Forms.Tests (2)
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (2)
172renderer.DrawBackground(graphics, bounds, clipBounds); 181Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawBackground(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4)));