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