238 references to DataGridViewPaintParts
PresentationUI (5)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (5)
1005
DataGridViewPaintParts
paintParts)
1012
if ((paintParts &
DataGridViewPaintParts
.Background) ==
1013
DataGridViewPaintParts
.Background)
1022
if ((paintParts &
DataGridViewPaintParts
.Border) ==
1023
DataGridViewPaintParts
.Border)
System.Windows.Forms (143)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (18)
19392
DataGridViewPaintParts
.Background |
DataGridViewPaintParts
.Border |
DataGridViewPaintParts
.ContentBackground |
DataGridViewPaintParts
.ContentForeground |
DataGridViewPaintParts
.ErrorIcon |
DataGridViewPaintParts
.SelectionBackground);
19466
DataGridViewPaintParts
.Background |
DataGridViewPaintParts
.Border |
DataGridViewPaintParts
.ContentBackground |
DataGridViewPaintParts
.ContentForeground |
DataGridViewPaintParts
.ErrorIcon |
DataGridViewPaintParts
.SelectionBackground);
19694
DataGridViewPaintParts
.Background |
DataGridViewPaintParts
.Border |
DataGridViewPaintParts
.ContentBackground |
DataGridViewPaintParts
.ContentForeground |
DataGridViewPaintParts
.ErrorIcon |
DataGridViewPaintParts
.SelectionBackground);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (6)
174
DataGridViewPaintParts
.ContentForeground,
197
DataGridViewPaintParts
.ContentForeground,
243
DataGridViewPaintParts
.ContentForeground,
266
DataGridViewPaintParts
.ContentForeground,
607
DataGridViewPaintParts
paintParts)
645
DataGridViewPaintParts
paintParts,
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (17)
3079
DataGridViewPaintParts
paintParts)
3094
DataGridViewPaintParts
paintParts)
3110
internal static bool PaintBackground(
DataGridViewPaintParts
paintParts)
3112
return (paintParts &
DataGridViewPaintParts
.Background) != 0;
3115
internal static bool PaintBorder(
DataGridViewPaintParts
paintParts)
3117
return (paintParts &
DataGridViewPaintParts
.Border) != 0;
3515
internal static bool PaintContentBackground(
DataGridViewPaintParts
paintParts)
3517
return (paintParts &
DataGridViewPaintParts
.ContentBackground) != 0;
3520
internal static bool PaintContentForeground(
DataGridViewPaintParts
paintParts)
3522
return (paintParts &
DataGridViewPaintParts
.ContentForeground) != 0;
3580
internal static bool PaintErrorIcon(
DataGridViewPaintParts
paintParts)
3582
return (paintParts &
DataGridViewPaintParts
.ErrorIcon) != 0;
3585
internal static bool PaintFocus(
DataGridViewPaintParts
paintParts)
3587
return (paintParts &
DataGridViewPaintParts
.Focus) != 0;
3626
internal static bool PaintSelectionBackground(
DataGridViewPaintParts
paintParts)
3628
return (paintParts &
DataGridViewPaintParts
.SelectionBackground) != 0;
3638
DataGridViewPaintParts
paintParts)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellPaintingEventArgs.cs (12)
26
DataGridViewPaintParts
paintParts)
28
if ((paintParts & ~
DataGridViewPaintParts
.All) != 0)
76
public
DataGridViewPaintParts
PaintParts { get; private set; }
78
public void Paint(Rectangle clipBounds,
DataGridViewPaintParts
paintParts)
119
DataGridViewPaintParts
paintParts =
DataGridViewPaintParts
.Background |
DataGridViewPaintParts
.Border;
122
paintParts |=
DataGridViewPaintParts
.SelectionBackground;
168
DataGridViewPaintParts
.ContentBackground |
DataGridViewPaintParts
.ContentForeground |
DataGridViewPaintParts
.ErrorIcon);
183
DataGridViewPaintParts
paintParts)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (5)
469
DataGridViewPaintParts
.ContentForeground,
486
DataGridViewPaintParts
.ContentForeground,
544
DataGridViewPaintParts
.ContentForeground,
1006
DataGridViewPaintParts
paintParts)
1049
DataGridViewPaintParts
paintParts,
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (4)
245
DataGridViewPaintParts
.ContentForeground,
258
DataGridViewPaintParts
.ContentForeground,
722
DataGridViewPaintParts
paintParts)
752
DataGridViewPaintParts
paintParts,
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (7)
761
DataGridViewPaintParts
.ContentForeground,
779
DataGridViewPaintParts
.ContentForeground,
864
DataGridViewPaintParts
.ContentForeground,
882
DataGridViewPaintParts
.ContentForeground,
1785
DataGridViewPaintParts
.ContentForeground,
1820
DataGridViewPaintParts
paintParts)
1863
DataGridViewPaintParts
paintParts,
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
525
DataGridViewPaintParts
paintParts)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (6)
259
DataGridViewPaintParts
.ContentForeground,
275
DataGridViewPaintParts
.ContentForeground,
325
DataGridViewPaintParts
.ContentForeground,
340
DataGridViewPaintParts
.ContentForeground,
688
DataGridViewPaintParts
paintParts)
726
DataGridViewPaintParts
paintParts,
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (5)
454
DataGridViewPaintParts
.ContentForeground,
470
DataGridViewPaintParts
.ContentForeground,
525
DataGridViewPaintParts
.ContentForeground,
843
DataGridViewPaintParts
paintParts)
881
DataGridViewPaintParts
paintParts,
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (8)
1445
DataGridViewPaintParts
paintParts = dgvrprepe.PaintParts;
1492
DataGridViewPaintParts
paintParts)
1501
if (paintParts is <
DataGridViewPaintParts
.None or >
DataGridViewPaintParts
.All)
1685
DataGridViewPaintParts
paintParts)
1694
if (paintParts is <
DataGridViewPaintParts
.None or >
DataGridViewPaintParts
.All)
1696
throw new InvalidEnumArgumentException(nameof(paintParts), (int)paintParts, typeof(
DataGridViewPaintParts
));
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (5)
216
DataGridViewPaintParts
.ContentForeground,
232
DataGridViewPaintParts
.ContentForeground,
279
DataGridViewPaintParts
.ContentForeground,
584
DataGridViewPaintParts
paintParts)
622
DataGridViewPaintParts
paintParts,
System\Windows\Forms\Controls\DataGridView\DataGridViewRowPostPaintEventArgs.cs (16)
79
public void PaintCells(Rectangle clipBounds,
DataGridViewPaintParts
paintParts)
104
DataGridViewPaintParts
paintParts =
DataGridViewPaintParts
.Background |
DataGridViewPaintParts
.Border;
107
paintParts |=
DataGridViewPaintParts
.SelectionBackground;
136
DataGridViewPaintParts
.ContentBackground |
DataGridViewPaintParts
.ContentForeground |
DataGridViewPaintParts
.ErrorIcon);
141
DataGridViewPaintParts
paintParts =
DataGridViewPaintParts
.Background |
DataGridViewPaintParts
.Border |
DataGridViewPaintParts
.ContentBackground |
DataGridViewPaintParts
.ContentForeground |
DataGridViewPaintParts
.ErrorIcon;
144
paintParts |=
DataGridViewPaintParts
.SelectionBackground;
150
public void PaintHeader(
DataGridViewPaintParts
paintParts)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowPrePaintEventArgs.cs (21)
12
private
DataGridViewPaintParts
_paintParts;
36
_paintParts =
DataGridViewPaintParts
.All;
65
public
DataGridViewPaintParts
PaintParts
70
if ((value & ~
DataGridViewPaintParts
.All) != 0)
96
public void PaintCells(Rectangle clipBounds,
DataGridViewPaintParts
paintParts)
121
DataGridViewPaintParts
paintParts =
DataGridViewPaintParts
.Background |
DataGridViewPaintParts
.Border;
124
paintParts |=
DataGridViewPaintParts
.SelectionBackground;
153
DataGridViewPaintParts
.ContentBackground |
DataGridViewPaintParts
.ContentForeground |
DataGridViewPaintParts
.ErrorIcon);
158
DataGridViewPaintParts
paintParts =
DataGridViewPaintParts
.Background |
DataGridViewPaintParts
.Border |
DataGridViewPaintParts
.ContentBackground |
DataGridViewPaintParts
.ContentForeground |
DataGridViewPaintParts
.ErrorIcon;
161
paintParts |=
DataGridViewPaintParts
.SelectionBackground;
167
public void PaintHeader(
DataGridViewPaintParts
paintParts)
207
_paintParts =
DataGridViewPaintParts
.All;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (6)
290
DataGridViewPaintParts
.ContentForeground,
306
DataGridViewPaintParts
.ContentForeground,
351
DataGridViewPaintParts
.ContentForeground,
375
DataGridViewPaintParts
.ContentForeground,
606
DataGridViewPaintParts
paintParts)
649
DataGridViewPaintParts
paintParts,
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (6)
57
DataGridViewPaintParts
.ContentForeground,
73
DataGridViewPaintParts
.ContentForeground,
106
DataGridViewPaintParts
.ContentForeground,
124
DataGridViewPaintParts
.ContentForeground,
176
DataGridViewPaintParts
paintParts)
214
DataGridViewPaintParts
paintParts,
System.Windows.Forms.Tests (90)
System\Windows\Forms\DataGridViewButtonCellTests.cs (1)
478
DataGridViewPaintParts
.All);
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (25)
14
yield return new object[] { Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null,
DataGridViewPaintParts
.All };
15
yield return new object[] { new Rectangle(-1, -2, -3, -4), new Rectangle(-1, -2, -3, -4), -1, -1, DataGridViewElementStates.Displayed, "value", "formattedValue", "", new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(),
DataGridViewPaintParts
.All };
16
yield return new object[] { new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 0, 1, (DataGridViewElementStates)7, "value", "formattedValue", "errorText", new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(),
DataGridViewPaintParts
.All };
21
public void DataGridViewCellPaintingEventArgs_Ctor_Rectangle_Rectangle_Int_Int_DataGridViewElementStates_Object_Object_String_DataGridViewCellStyle_DataGridViewAdvancedBorderStyle_DataGridViewPaintParts(Rectangle clipBounds, Rectangle cellBounds, int rowIndex, int columnIndex, DataGridViewElementStates cellState, object value, object formattedValue, string errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle,
DataGridViewPaintParts
paintParts)
48
Assert.Throws<ArgumentNullException>("dataGridView", () => new DataGridViewCellPaintingEventArgs(null, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null,
DataGridViewPaintParts
.All));
55
Assert.Throws<ArgumentNullException>("graphics", () => new DataGridViewCellPaintingEventArgs(dataGridView, null, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null,
DataGridViewPaintParts
.All));
64
Assert.Throws<ArgumentNullException>("cellStyle", () => new DataGridViewCellPaintingEventArgs(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, null, null,
DataGridViewPaintParts
.All));
68
[InlineData((
DataGridViewPaintParts
.All + 1))]
69
public void DataGridViewCellPaintingEventArgs_Ctor_InvalidPaintParts_ThrowsArgumentException(
DataGridViewPaintParts
paintParts)
86
DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(),
DataGridViewPaintParts
.All);
87
e.Paint(new Rectangle(1, 2, 3, 4),
DataGridViewPaintParts
.None);
97
DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null,
DataGridViewPaintParts
.All);
98
Assert.Throws<ArgumentNullException>("advancedBorderStyle", () => e.Paint(new Rectangle(1, 2, 3, 4),
DataGridViewPaintParts
.None));
110
DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null,
DataGridViewPaintParts
.All);
111
Assert.Throws<InvalidOperationException>(() => e.Paint(new Rectangle(1, 2, 3, 4),
DataGridViewPaintParts
.None));
123
DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null,
DataGridViewPaintParts
.All);
124
Assert.Throws<InvalidOperationException>(() => e.Paint(new Rectangle(1, 2, 3, 4),
DataGridViewPaintParts
.None));
136
DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(),
DataGridViewPaintParts
.All);
147
DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null,
DataGridViewPaintParts
.All);
160
DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null,
DataGridViewPaintParts
.All);
173
DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null,
DataGridViewPaintParts
.All);
186
DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(),
DataGridViewPaintParts
.All);
197
DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null,
DataGridViewPaintParts
.All);
210
DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null,
DataGridViewPaintParts
.All);
223
DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null,
DataGridViewPaintParts
.All);
System\Windows\Forms\DataGridViewCellTests.cs (3)
6013
cell.Paint(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, null, null, null, null, null,
DataGridViewPaintParts
.All);
6022
cell.Paint(graphics, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, null, null, null, null, null,
DataGridViewPaintParts
.All);
6677
public new void Paint(Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates cellState, object value, object formattedValue, string errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle,
DataGridViewPaintParts
paintParts)
System\Windows\Forms\DataGridViewHeaderCellTests.cs (2)
4622
Assert.Throws<ArgumentNullException>("cellStyle", () => cell.Paint(graphics, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, null, null, null, null, null,
DataGridViewPaintParts
.All));
4721
DataGridViewPaintParts
paintParts)
System\Windows\Forms\DataGridViewLinkCellTests.cs (1)
670
DataGridViewPaintParts
.All
System\Windows\Forms\DataGridViewRowPostPaintEventArgsTests.cs (4)
116
e.PaintCells(new Rectangle(1, 2, 3, 4),
DataGridViewPaintParts
.None);
129
Assert.Throws<InvalidOperationException>(() => e.PaintCells(new Rectangle(1, 2, 3, 4),
DataGridViewPaintParts
.None));
188
e.PaintHeader(
DataGridViewPaintParts
.None);
214
Assert.Throws<InvalidOperationException>(() => e.PaintHeader(
DataGridViewPaintParts
.None));
System\Windows\Forms\DataGridViewRowPrePaintEventArgsTests.cs (10)
37
Assert.Equal(
DataGridViewPaintParts
.All, e.PaintParts);
86
[InlineData(
DataGridViewPaintParts
.None)]
87
[InlineData(
DataGridViewPaintParts
.All)]
88
public void PaintParts_Set_GetReturnsExpected(
DataGridViewPaintParts
value)
101
[InlineData((
DataGridViewPaintParts
.All + 1))]
102
public void PaintParts_SetInvalidValue_ThrowsArgumentException(
DataGridViewPaintParts
value)
143
e.PaintCells(new Rectangle(1, 2, 3, 4),
DataGridViewPaintParts
.None);
156
Assert.Throws<InvalidOperationException>(() => e.PaintCells(new Rectangle(1, 2, 3, 4),
DataGridViewPaintParts
.None));
215
e.PaintHeader(
DataGridViewPaintParts
.None);
241
Assert.Throws<InvalidOperationException>(() => e.PaintHeader(
DataGridViewPaintParts
.None));
System\Windows\Forms\DataGridViewRowTests.cs (44)
4822
Assert.Equal(
DataGridViewPaintParts
.All, e.PaintParts);
5016
yield return new object[] { Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true,
DataGridViewPaintParts
.All };
5017
yield return new object[] { new Rectangle(1, 2, 100, 100), new Rectangle(1, 2, 100, 100), 0, DataGridViewElementStates.Displayed | DataGridViewElementStates.Displayed, true, false,
DataGridViewPaintParts
.All };
5018
yield return new object[] { new Rectangle(1, 2, 100, 100), new Rectangle(1, 2, 100, 100), 0, DataGridViewElementStates.Displayed | DataGridViewElementStates.Displayed, false, true,
DataGridViewPaintParts
.None };
5019
yield return new object[] { new Rectangle(1000, 2000, 100, 100), new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.Displayed | DataGridViewElementStates.Displayed, true, false,
DataGridViewPaintParts
.All };
5024
public void DataGridViewRow_PaintCells_Invoke_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5047
public void DataGridViewRow_PaintCells_InvokeHeadersInvisible_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5071
public void DataGridViewRow_PaintCells_InvokeFrozen_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5097
public void DataGridViewRow_PaintCells_InvokeRightToLeft_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5121
public void DataGridViewRow_PaintCells_InvokeSingleVerticalBorderAddedDataGridView_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5145
public void DataGridViewRow_PaintCells_InvokeSingleHorizontalBorderAddedDataGridView_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5169
public void DataGridViewRow_PaintCells_InvokeFirstDisplayedScrollingColumnIndex_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5193
public void DataGridViewRow_PaintCells_InvokeFirstDisplayedScrollingColumnIndexRightToLeft_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5218
public void DataGridViewRow_PaintCells_InvokeSingleHorizontalBorderAddedDisplayedDataGridView_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5252
Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true,
DataGridViewPaintParts
.All));
5266
Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true,
DataGridViewPaintParts
.All));
5280
Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 100, 100), -1, DataGridViewElementStates.None, true, true,
DataGridViewPaintParts
.All));
5294
Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, new Rectangle(1, 2, 1000, 10000), new Rectangle(1, 2, 1000, 1000), 1, DataGridViewElementStates.None, true, true,
DataGridViewPaintParts
.All));
5301
Assert.Throws<InvalidOperationException>(() => row.PaintCells(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true,
DataGridViewPaintParts
.All));
5321
Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => row.PaintCells(graphics, new Rectangle(1, 2, 100, 100), new Rectangle(1, 2, 100, 100), rowIndex, DataGridViewElementStates.None, true, true,
DataGridViewPaintParts
.All));
5325
[InlineData((
DataGridViewPaintParts
.None - 1))]
5326
[InlineData((
DataGridViewPaintParts
.All + 1))]
5327
public void DataGridViewRow_PaintCells_InvalidPaintParts_ThrowsArgumentException(
DataGridViewPaintParts
paintParts)
5344
public void DataGridViewRow_PaintHeader_Invoke_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5367
public void DataGridViewRow_PaintHeader_InvokeHeadersInvisible_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5391
public void DataGridViewRow_PaintHeader_InvokeFrozen_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5417
public void DataGridViewRow_PaintHeader_InvokeRightToLeft_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5441
public void DataGridViewRow_PaintHeader_InvokeSingleVerticalBorderAddedDataGridView_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5465
public void DataGridViewRow_PaintHeader_InvokeSingleHorizontalBorderAddedDataGridView_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5489
public void DataGridViewRow_PaintHeader_InvokeFirstDisplayedScrollingColumnIndex_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5513
public void DataGridViewRow_PaintHeader_InvokeFirstDisplayedScrollingColumnIndexRightToLeft_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5538
public void DataGridViewRow_PaintHeader_InvokeSingleHorizontalBorderAddedDisplayedDataGridView_Success(Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
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));
5663
[InlineData((
DataGridViewPaintParts
.None - 1))]
5664
[InlineData((
DataGridViewPaintParts
.All + 1))]
5665
public void DataGridViewRow_PaintHeader_InvalidPaintParts_ThrowsInvalidEnumArgumentException(
DataGridViewPaintParts
paintParts)
5782
public new void PaintCells(Graphics graphics, Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)
5787
public new void PaintHeader(Graphics graphics, Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow,
DataGridViewPaintParts
paintParts)