86 references to AddRange
DesignSurface (1)
MainForm.cs (1)
197
lb1.Items.
AddRange
(new string[] { "a1", "b2", "c3" });
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
47
AddRange
(value);
System.Windows.Forms.Tests (78)
CheckedListBoxTests.cs (4)
507
checkedListBox.Items.
AddRange
((object[])["1", "2", "3"]);
546
checkedListBox.Items.
AddRange
((object[])["1", "2", "3"]);
580
checkedListBox.Items.
AddRange
((object[])["1", "2", "3"]);
611
checkedListBox.Items.
AddRange
((object[])["1", "2", "3"]);
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (4)
222
listBox.Items.
AddRange
((object[])
255
listBox.Items.
AddRange
(new[] { "Item 1", "Item 2" });
292
listBox.Items.
AddRange
(new[] { "Item 1", "Item 2" });
313
listBox.Items.
AddRange
(new[] { "Item 1", "Item 2", "Item 3" });
System\Windows\Forms\ControlTests.cs (2)
1045
checkedListBox1.Items.
AddRange
((object[])["Foo", "Foo", "Foo"]);
1052
listBox1.Items.
AddRange
((object[])["Foo", "Foo", "Foo"]);
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (64)
111
collection.
AddRange
((object[])[2, 1, 1, 3]);
127
collection.
AddRange
((object[])[2, 1, 1, 3]);
165
collection.
AddRange
((object[])[2, 1, 3]);
206
collection.
AddRange
((object[])[2, 1, 3]);
244
collection.
AddRange
((object[])[2, 1, 3]);
285
collection.
AddRange
((object[])[2, 1, 3]);
500
collection.
AddRange
((object[])[2, 1, 3]);
589
collection.
AddRange
((object[])[2, 1, 3]);
2225
collection.
AddRange
((object[])[2, 1, 1, 3]);
2233
collection.
AddRange
(Array.Empty<object>());
2249
collection.
AddRange
((object[])[2, 1, 1, 3]);
2257
collection.
AddRange
(Array.Empty<object>());
2276
collection.
AddRange
((object[])[2, 1, 1, 3]);
2284
collection.
AddRange
(Array.Empty<object>());
2303
collection.
AddRange
((object[])[2, 1, 1, 3]);
2311
collection.
AddRange
(Array.Empty<object>());
2333
collection.
AddRange
((object[])[2, 1, 1, 3]);
2352
collection.
AddRange
(Array.Empty<object>());
2385
collection.
AddRange
((object[])[2, 1, 1, 3]);
2404
collection.
AddRange
(Array.Empty<object>());
2440
collection.
AddRange
((object[])[2, 1, 1, 3]);
2459
collection.
AddRange
(Array.Empty<object>());
2495
collection.
AddRange
((object[])[2, 1, 1, 3]);
2514
collection.
AddRange
(Array.Empty<object>());
2545
collection.
AddRange
((object[])[0, 5]);
2553
collection.
AddRange
(Array.Empty<object>());
2576
collection.
AddRange
((object[])[0, 5]);
2584
collection.
AddRange
(Array.Empty<object>());
2611
collection.
AddRange
((object[])[0, 2, 4]);
2619
collection.
AddRange
(Array.Empty<object>());
2646
collection.
AddRange
((object[])[0, 2, 4]);
2653
collection.
AddRange
(Array.Empty<object>());
2679
collection.
AddRange
((object[])[0, 5]);
2690
collection.
AddRange
(Array.Empty<object>());
2723
collection.
AddRange
((object[])[0, 5]);
2734
collection.
AddRange
(Array.Empty<object>());
2771
collection.
AddRange
((object[])[0, 2, 4]);
2782
collection.
AddRange
(Array.Empty<object>());
2819
collection.
AddRange
((object[])[0, 2, 5]);
2830
collection.
AddRange
(Array.Empty<object>());
2846
collection.
AddRange
((object[])[2, 1, 1, 3]);
2857
collection.
AddRange
((object[])[2, 1, 1, 3]);
2881
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
2910
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
2942
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
2974
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
3009
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
3066
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
3126
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
3186
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
3241
otherCollection.
AddRange
((object[])[0, 5]);
3277
otherCollection.
AddRange
((object[])[0, 5]);
3317
otherCollection.
AddRange
((object[])[0, 2, 4]);
3357
otherCollection.
AddRange
((object[])[0, 2, 4]);
3395
otherCollection.
AddRange
((object[])[0, 5]);
3444
otherCollection.
AddRange
((object[])[0, 5]);
3497
otherCollection.
AddRange
((object[])[0, 2, 4]);
3550
otherCollection.
AddRange
((object[])[0, 2, 5]);
3582
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
3596
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
3650
Assert.Throws<ArgumentNullException>("items", () => collection.
AddRange
((object[])null));
3659
Assert.Throws<ArgumentNullException>("item", () => collection.
AddRange
((object[])[null]));
3672
Assert.Throws<ArgumentException>(() => collection.
AddRange
(Array.Empty<object>()));
3696
Assert.Throws<OutOfMemoryException>(() => collection.
AddRange
((object[])[1]));
System\Windows\Forms\ListBoxTests.cs (4)
6123
listBox.Items.
AddRange
((object[])["1", "2", "3"]);
6164
listBox.Items.
AddRange
((object[])["1", "2", "3", "4"]);
6204
listBox.Items.
AddRange
((object[])["1", "2", "3"]);
6240
listBox.Items.
AddRange
((object[])["1", "2", "3"]);
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
665
ListDragSource.Items.
AddRange
("one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten");
TestPassApp (2)
CommonControl1.Designer.cs (2)
245
this.checkedListBox1.Items.
AddRange
(new object[] {
576
this.listBox1.Items.
AddRange
(new object[] {
WinFormsControlsTest (3)
MultipleControls.Designer.cs (2)
227
this.checkedListBox1.Items.
AddRange
(new object[] {
283
this.checkedListBox2.Items.
AddRange
(new object[] {
ScrollableControls.Designer.cs (1)
428
listBox1.Items.
AddRange
(new object[] { "asdfasdf", "as", "df", "asd", "f", "a", "sd", "f", "asd", "f", "a", "asdfadsf", "sdf" });