18 instantiations of DataGridViewCellPaintingEventArgs
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
1342
_dgvcpe ??= new
DataGridViewCellPaintingEventArgs
(this);
System.Windows.Forms.Tests (17)
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (17)
25
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, clipBounds, cellBounds, rowIndex, columnIndex, cellState, value, formattedValue, errorText, cellStyle, advancedBorderStyle, paintParts);
46
Assert.Throws<ArgumentNullException>("dataGridView", () => new
DataGridViewCellPaintingEventArgs
(null, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All));
53
Assert.Throws<ArgumentNullException>("graphics", () => new
DataGridViewCellPaintingEventArgs
(dataGridView, null, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All));
62
Assert.Throws<ArgumentNullException>("cellStyle", () => new
DataGridViewCellPaintingEventArgs
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, null, null, DataGridViewPaintParts.All));
72
Assert.Throws<ArgumentException>("paintParts", () => new
DataGridViewCellPaintingEventArgs
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, paintParts));
84
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), DataGridViewPaintParts.All);
95
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
108
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
121
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
134
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), DataGridViewPaintParts.All);
145
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
158
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
171
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
184
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), DataGridViewPaintParts.All);
195
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
208
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
221
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
18 references to DataGridViewCellPaintingEventArgs
System.Windows.Forms (5)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
319
private
DataGridViewCellPaintingEventArgs
? _dgvcpe;
1338
internal
DataGridViewCellPaintingEventArgs
CellPaintingEventArgs
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
12721
protected internal virtual void OnCellPainting(
DataGridViewCellPaintingEventArgs
e)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
3658
DataGridViewCellPaintingEventArgs
dgvcpe = dataGridView.CellPaintingEventArgs;
System\Windows\Forms\Controls\DataGridView\DataGridViewEventHandlers.cs (1)
26
public delegate void DataGridViewCellPaintingEventHandler(object? sender,
DataGridViewCellPaintingEventArgs
e);
System.Windows.Forms.Tests (13)
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (13)
25
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, clipBounds, cellBounds, rowIndex, columnIndex, cellState, value, formattedValue, errorText, cellStyle, advancedBorderStyle, paintParts);
84
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), DataGridViewPaintParts.All);
95
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
108
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
121
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
134
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), DataGridViewPaintParts.All);
145
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
158
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
171
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
184
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), DataGridViewPaintParts.All);
195
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
208
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
221
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);