26 references to AddRange
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (1)
39list.AddRange(colHeaders);
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
159_listViewCannedMasks.Columns.AddRange(
System\Windows\Forms\Design\StyleEditorForm.cs (1)
306_columnsAndRowsListView.Columns.AddRange(
System.Windows.Forms.Tests (21)
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (6)
39control.Columns.AddRange((ColumnHeader[])[new(), new(), new()]); 54control.Columns.AddRange((ColumnHeader[])[new(), new(), new()]); 71control.Columns.AddRange((ColumnHeader[])[new(), new(), new()]); 102control.Columns.AddRange((ColumnHeader[])[new(), new(), new()]); 117control.Columns.AddRange((ColumnHeader[])[new(), new(), new()]); 169listView1.Columns.AddRange((ColumnHeader[])[columnHeader1, columnHeader2, columnHeader3]);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (8)
28list.Columns.AddRange( 65list.Columns.AddRange( 640list.Columns.AddRange( 687list.Columns.AddRange( 728list.Columns.AddRange( 764list.Columns.AddRange( 877listView.Columns.AddRange([new() { Width = 120, Text = "Column 1" }, new() { Width = 120, Text = "Column 2" }]); 899listView.Columns.AddRange([new() { Width = 120, Text = "Column 1" }, new() { Width = 120, Text = "Column 2" }]);
System\Windows\Forms\ColumnHeaderCollectionTests.cs (4)
361collection.AddRange(items); 397collection.AddRange(items); 418Assert.Throws<ArgumentNullException>("values", () => collection.AddRange(null)); 426Assert.Throws<ArgumentNullException>("values", () => collection.AddRange([null]));
System\Windows\Forms\ListViewTests.cs (3)
5016listView.Columns.AddRange( 5072listView.Columns.AddRange( 5429listView.Columns.AddRange(
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
520listView.Columns.AddRange([columnHeader1, columnHeader2, columnHeader3]);
WinFormsControlsTest (1)
ListViewTest.Designer.cs (1)
67this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {