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