18 instantiations of DataGridViewCellPaintingEventArgs
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
1338
_dgvcpe ??= new
DataGridViewCellPaintingEventArgs
(this);
System.Windows.Forms.Tests (17)
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (17)
27
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, clipBounds, cellBounds, rowIndex, columnIndex, cellState, value, formattedValue, errorText, cellStyle, advancedBorderStyle, 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));
74
Assert.Throws<ArgumentException>("paintParts", () => new
DataGridViewCellPaintingEventArgs
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, paintParts));
86
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), DataGridViewPaintParts.All);
97
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
110
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
123
DataGridViewCellPaintingEventArgs e =
new
(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
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);
18 references to DataGridViewCellPaintingEventArgs
System.Windows.Forms (5)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
319
private
DataGridViewCellPaintingEventArgs
? _dgvcpe;
1334
internal
DataGridViewCellPaintingEventArgs
CellPaintingEventArgs
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
12732
protected internal virtual void OnCellPainting(
DataGridViewCellPaintingEventArgs
e)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
3660
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)
27
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, clipBounds, cellBounds, rowIndex, columnIndex, cellState, value, formattedValue, errorText, cellStyle, advancedBorderStyle, paintParts);
86
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), DataGridViewPaintParts.All);
97
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
110
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, 0, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
123
DataGridViewCellPaintingEventArgs
e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, 0, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All);
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);