17 references to PaintHeader
System.Windows.Forms.Tests (17)
System\Windows\Forms\DataGridViewRowTests.cs (17)
5362
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5386
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5412
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5436
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5460
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5484
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5508
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5533
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5558
row.
PaintHeader
(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
5573
Assert.Throws<ArgumentNullException>("graphics", () => row.
PaintHeader
(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5588
Assert.Throws<ArgumentNullException>("graphics", () => row.
PaintHeader
(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5603
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));
5618
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));
5625
Assert.Throws<InvalidOperationException>(() => row.
PaintHeader
(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5643
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));
5659
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));
5677
Assert.Throws<InvalidEnumArgumentException>("paintParts", () => row.
PaintHeader
(graphics, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, paintParts));