47 references to AddRange
DesignSurface (1)
MainForm.cs (1)
193cb1.Items.AddRange(new string[] { "a1", "b2", "c3" });
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1297comboBox.Items.AddRange([.. Items.InnerArray]);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\StyleEditorForm.cs (1)
296_columnsOrRowsComboBox.Items.AddRange(
System.Windows.Forms.Tests (24)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (1)
491comboBox.Items.AddRange(
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (8)
31control.Items.AddRange(new[] { item1, item2, item3 }); 94comboBox.Items.AddRange(new[] { "aaa", "aaa", "aaa" }); 133comboBox.Items.AddRange(new[] { "aaa", "aaa", "aaa" }); 198comboBox.Items.AddRange(new[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }); 217comboBox.Items.AddRange(new[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }); 250comboBox.Items.AddRange(new[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }); 389comboBox.Items.AddRange(new[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }); 451comboBox.Items.AddRange(new[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" });
System\Windows\Forms\ComboBox.ComboBoxChildListUiaProviderTests.cs (1)
104comboBox.Items.AddRange(Enumerable.Range(0, 11).Cast<object>().ToArray());
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (11)
248comboBoxObjectCollection.AddRange(new string[] { "a", "b" }); 272comboBoxObjectCollection.AddRange(new Person[] { person1, person2, person3 }); 295comboBoxObjectCollection.AddRange(new string[] { "c", "a", "b" }); 326comboBoxObjectCollection.AddRange(new Person[] { person3, person1, person2 }); 356comboBoxObjectCollection.AddRange(["Name 2", person1, person2]); 377Assert.Throws<ArgumentNullException>("items", () => comboBoxObjectCollection.AddRange(null)); 398Assert.Throws<ArgumentException>(() => comboBoxObjectCollection.AddRange(new string[] { "a", "b" })); 414comboBoxObjectCollection.AddRange(new string[] { "c", "a", "b" }); 432comboBoxObjectCollection.AddRange(new string[] { "a", "b" }); 482comboBoxObjectCollection.AddRange(new string[] { "a", "b" }); 510comboBoxObjectCollection.AddRange([person1, person2]);
System\Windows\Forms\ComboBoxTests.cs (2)
2578ownerDrawComboBox.Items.AddRange( 2699control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" });
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
184_toolStripComboBox.Items.AddRange(items);
TestPassApp (4)
CommonControl1.Designer.cs (2)
320this.comboBox2.Items.AddRange(new object[] { 345this.comboBox1.Items.AddRange(new object[] {
DataControls.Designer.cs (1)
234this.toolStripComboBox1.Items.AddRange(new object[] {
ToolStripContainer.Designer.cs (1)
261this.toolStripComboBox1.Items.AddRange(new object[] {
TrimTest (1)
Form1.Designer.cs (1)
80comboBox1.Items.AddRange(new object[] { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" });
WinFormsControlsTest (15)
Calendar.Designer.cs (1)
142this.daysOfWeekComboBox.Items.AddRange(new object[] {
ComboBoxes.Designer.cs (12)
56this.comboBox1.Items.AddRange(new object[] { 70this.comboBox2.Items.AddRange(new object[] { 88this.comboBox3.Items.AddRange(new object[] { 108this.comboBox4.Items.AddRange(new object[] { 122this.comboBox5.Items.AddRange(new object[] { 134this.comboBox6.Items.AddRange(new object[] { 146this.comboBox7.Items.AddRange(new object[] { 159this.comboBox8.Items.AddRange(new object[] { 172this.comboBox9.Items.AddRange(new object[] { 185this.comboBox10.Items.AddRange(new object[] { 197this.comboBox11.Items.AddRange(new object[] { 212this.comboBox12.Items.AddRange(new object[] {
ToolStripTests.Designer.cs (2)
274this.toolStripComboBox2.Items.AddRange(new object[] { "1", "2", "3", "4", "5" }); 419this.toolStripComboBox1.Items.AddRange(new object[] { "1", "2", "3", "4", "5" });