47 references to AddRange
Accessibility_Core_App (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[] {
DesignSurface (1)
MainForm.cs (1)
198cb1.Items.AddRange(new string[] { "a1", "b2", "c3" });
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1301comboBox.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)
489comboBox.Items.AddRange(
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (8)
29control.Items.AddRange(new[] { item1, item2, item3 }); 92comboBox.Items.AddRange(new[] { "aaa", "aaa", "aaa" }); 131comboBox.Items.AddRange(new[] { "aaa", "aaa", "aaa" }); 196comboBox.Items.AddRange(new[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }); 215comboBox.Items.AddRange(new[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }); 248comboBox.Items.AddRange(new[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }); 387comboBox.Items.AddRange(new[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }); 449comboBox.Items.AddRange(new[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" });
System\Windows\Forms\ComboBox.ComboBoxChildListUiaProviderTests.cs (1)
102comboBox.Items.AddRange(Enumerable.Range(0, 11).Cast<object>().ToArray());
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (11)
246comboBoxObjectCollection.AddRange(new string[] { "a", "b" }); 270comboBoxObjectCollection.AddRange(new Person[] { person1, person2, person3 }); 293comboBoxObjectCollection.AddRange(new string[] { "c", "a", "b" }); 324comboBoxObjectCollection.AddRange(new Person[] { person3, person1, person2 }); 354comboBoxObjectCollection.AddRange(["Name 2", person1, person2]); 375Assert.Throws<ArgumentNullException>("items", () => comboBoxObjectCollection.AddRange(null)); 396Assert.Throws<ArgumentException>(() => comboBoxObjectCollection.AddRange(new string[] { "a", "b" })); 412comboBoxObjectCollection.AddRange(new string[] { "c", "a", "b" }); 430comboBoxObjectCollection.AddRange(new string[] { "a", "b" }); 480comboBoxObjectCollection.AddRange(new string[] { "a", "b" }); 508comboBoxObjectCollection.AddRange([person1, person2]);
System\Windows\Forms\ComboBoxTests.cs (2)
2577ownerDrawComboBox.Items.AddRange( 2698control.Items.AddRange(new string[] { "Item1", "Item2", "Item3" });
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
186_toolStripComboBox.Items.AddRange(items);
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" });