51 references to new
System.Windows.Forms (16)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (6)
509dgvabs = new DataGridViewAdvancedBorderStyle(); 525dgvabs = new DataGridViewAdvancedBorderStyle(); 546dgvabs = new DataGridViewAdvancedBorderStyle(); 580dgvabs = new DataGridViewAdvancedBorderStyle 590dgvabs = new DataGridViewAdvancedBorderStyle 605dgvabs = new DataGridViewAdvancedBorderStyle();
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
19335DataGridViewAdvancedBorderStyle dataGridViewAdvancedBorderStylePlaceholder = new(), dgvabsEffective;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
599DataGridViewAdvancedBorderStyle dataGridViewAdvancedBorderStylePlaceholder = new(), dgvabsEffective; 961DataGridViewAdvancedBorderStyle dataGridViewAdvancedBorderStylePlaceholder = new(); 3793DataGridViewAdvancedBorderStyle dataGridViewAdvancedBorderStylePlaceholder = new();
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
492DataGridViewAdvancedBorderStyle dgvabsPlaceholder = new(), dgvabsEffective;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
522DataGridViewAdvancedBorderStyle dgvabsPlaceholder = new(); 1758dgvabsPlaceholder = new DataGridViewAdvancedBorderStyle();
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (2)
1511DataGridViewAdvancedBorderStyle dataGridViewAdvancedBorderStylePlaceholder = new(), dgvabsEffective; 1710DataGridViewAdvancedBorderStyle dataGridViewAdvancedBorderStylePlaceholder = new(), dgvabsEffective;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
519DataGridViewAdvancedBorderStyle dgvabsPlaceholder = new();
System.Windows.Forms.Tests (35)
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (5)
13yield 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 }; 14yield 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 }; 84DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), DataGridViewPaintParts.All); 134DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), DataGridViewPaintParts.All); 184DataGridViewCellPaintingEventArgs e = new(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, rowIndex, columnIndex, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), DataGridViewPaintParts.All);
System\Windows\Forms\DataGridViewCellTests.cs (26)
3074DataGridViewAdvancedBorderStyle controlAdvancedBorderStyleInput = new() 3078DataGridViewAdvancedBorderStyle controlAdvancedBorderStylePlaceholder = new(); 3096DataGridViewAdvancedBorderStyle controlAdvancedBorderStyleInput = new() 3100DataGridViewAdvancedBorderStyle controlAdvancedBorderStylePlaceholder = new(); 3108DataGridViewAdvancedBorderStyle controlAdvancedBorderStylePlaceholder = new(); 3116DataGridViewAdvancedBorderStyle controlAdvancedBorderStyleInput = new() 3121DataGridViewAdvancedBorderStyle controlAdvancedBorderStylePlaceholder = new(); 3127yield return new object[] { new DataGridViewAdvancedBorderStyle { All = DataGridViewAdvancedCellBorderStyle.None } }; 3128yield return new object[] { new DataGridViewAdvancedBorderStyle { All = DataGridViewAdvancedCellBorderStyle.Inset } }; 3129yield return new object[] { new DataGridViewAdvancedBorderStyle { All = DataGridViewAdvancedCellBorderStyle.InsetDouble } }; 3130yield return new object[] { new DataGridViewAdvancedBorderStyle { All = DataGridViewAdvancedCellBorderStyle.Outset } }; 3131yield return new object[] { new DataGridViewAdvancedBorderStyle { All = DataGridViewAdvancedCellBorderStyle.OutsetDouble } }; 3132yield return new object[] { new DataGridViewAdvancedBorderStyle { All = DataGridViewAdvancedCellBorderStyle.OutsetPartial } }; 3133yield return new object[] { new DataGridViewAdvancedBorderStyle { Left = DataGridViewAdvancedCellBorderStyle.Inset, Right = DataGridViewAdvancedCellBorderStyle.Outset } }; 3146yield return new object[] { new DataGridViewAdvancedBorderStyle(), new Rectangle(0, 0, 0, 0) }; 3149new DataGridViewAdvancedBorderStyle(), 3154new DataGridViewAdvancedBorderStyle 3162new DataGridViewAdvancedBorderStyle 3170new DataGridViewAdvancedBorderStyle 3178new DataGridViewAdvancedBorderStyle 3186new DataGridViewAdvancedBorderStyle 3194new DataGridViewAdvancedBorderStyle 3202new DataGridViewAdvancedBorderStyle 6029cell.PaintBorder(graphics, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle()); 6036Assert.Throws<ArgumentNullException>("graphics", () => cell.PaintBorder(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle())); 6045Assert.Throws<ArgumentNullException>("cellStyle", () => cell.PaintBorder(graphics, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), null, new DataGridViewAdvancedBorderStyle()));
System\Windows\Forms\DataGridViewRowTests.cs (4)
3732DataGridViewAdvancedBorderStyle dataGridViewAdvancedBorderStyleInput = new() 3736DataGridViewAdvancedBorderStyle dataGridViewAdvancedBorderStylePlaceholder = new(); 3885DataGridViewAdvancedBorderStyle dataGridViewAdvancedBorderStyleInput = new() 3889DataGridViewAdvancedBorderStyle dataGridViewAdvancedBorderStylePlaceholder = new();