17 references to PaintHeader
System.Windows.Forms.Tests (17)
System\Windows\Forms\DataGridViewRowTests.cs (17)
5360
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5384
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5410
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5434
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5458
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5482
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5506
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5531
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5556
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5571
Assert.Throws<ArgumentNullException>("graphics", () => row.
PaintHeader
(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5586
Assert.Throws<ArgumentNullException>("graphics", () => row.
PaintHeader
(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5601
Assert.Throws<ArgumentNullException>("graphics", () => row.
PaintHeader
(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5616
Assert.Throws<ArgumentNullException>("graphics", () => row.
PaintHeader
(null, new Rectangle(1, 2, 100, 100), new Rectangle(1, 2, 100, 100), -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5623
Assert.Throws<InvalidOperationException>(() => row.
PaintHeader
(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5641
Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => row.
PaintHeader
(graphics, new Rectangle(1, 2, 100, 100), new Rectangle(1, 2, 100, 100), rowIndex, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5657
Assert.Throws<InvalidOperationException>(() => row.
PaintHeader
(graphics, new Rectangle(1, 2, 100, 100), new Rectangle(1, 2, 100, 100), -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5675
Assert.Throws<InvalidEnumArgumentException>("paintParts", () => row.
PaintHeader
(graphics, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, paintParts));