8 references to new
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
11795DataGridViewCellFormattingEventArgs dgvcfe = new(
System.Windows.Forms.Tests (7)
System\Windows\Forms\DataGridViewCellFormattingEventArgsTests.cs (5)
22DataGridViewCellFormattingEventArgs e = new(columnIndex, rowIndex, value, desiredType, cellStyle); 34Assert.Throws<ArgumentOutOfRangeException>("columnIndex", () => new DataGridViewCellFormattingEventArgs(-2, 0, "value", typeof(string), null)); 40Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => new DataGridViewCellFormattingEventArgs(0, -2, "value", typeof(string), null)); 53DataGridViewCellFormattingEventArgs e = new(1, 2, "value", typeof(string), new DataGridViewCellStyle()) 65DataGridViewCellFormattingEventArgs e = new(1, 2, "value", typeof(string), new DataGridViewCellStyle())
System\Windows\Forms\DataGridViewTests.cs (2)
3690DataGridViewCellFormattingEventArgs cellFormattingEventArgs = new(0, 0, dataGridView.Rows[0].Cells[0].Value, dataGridView.Rows[0].Cells[0].ValueType, dataGridView.Rows[0].Cells[0].InheritedStyle); 3695cellFormattingEventArgs = new(0, 1, dataGridView.Rows[1].Cells[0].Value, dataGridView.Rows[1].Cells[0].ValueType, dataGridView.Rows[1].Cells[0].InheritedStyle);