4 references to DrawFocus
System.Windows.Forms.Tests (4)
System\Windows\Forms\DataGridViewRowTests.cs (4)
4206
row.
DrawFocus
(graphics, clipBounds, bounds, rowIndex, rowState, cellStyle, cellsPaintSelectionBackground);
4215
Assert.Throws<InvalidOperationException>(() => row.
DrawFocus
(graphics, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), -1, DataGridViewElementStates.None, new DataGridViewCellStyle(), true));
4229
Assert.Throws<ArgumentNullException>("graphics", () => row.
DrawFocus
(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), -1, DataGridViewElementStates.None, new DataGridViewCellStyle(), true));
4245
Assert.Throws<ArgumentNullException>("cellStyle", () => row.
DrawFocus
(graphics, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), -1, DataGridViewElementStates.None, null, true));