86 references to AddRange
Accessibility_Core_App (2)
CommonControl1.Designer.cs (2)
245
this.checkedListBox1.Items.
AddRange
(new object[] {
576
this.listBox1.Items.
AddRange
(new object[] {
DesignSurface (1)
MainForm.cs (1)
205
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)
505
checkedListBox.Items.
AddRange
((object[])["1", "2", "3"]);
544
checkedListBox.Items.
AddRange
((object[])["1", "2", "3"]);
578
checkedListBox.Items.
AddRange
((object[])["1", "2", "3"]);
609
checkedListBox.Items.
AddRange
((object[])["1", "2", "3"]);
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (4)
222
listBox.Items.
AddRange
((object[])
257
listBox.Items.
AddRange
(new[] { "Item 1", "Item 2" });
294
listBox.Items.
AddRange
(new[] { "Item 1", "Item 2" });
315
listBox.Items.
AddRange
(new[] { "Item 1", "Item 2", "Item 3" });
System\Windows\Forms\ControlTests.cs (2)
1043
checkedListBox1.Items.
AddRange
((object[])["Foo", "Foo", "Foo"]);
1050
listBox1.Items.
AddRange
((object[])["Foo", "Foo", "Foo"]);
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (64)
109
collection.
AddRange
((object[])[2, 1, 1, 3]);
125
collection.
AddRange
((object[])[2, 1, 1, 3]);
163
collection.
AddRange
((object[])[2, 1, 3]);
204
collection.
AddRange
((object[])[2, 1, 3]);
242
collection.
AddRange
((object[])[2, 1, 3]);
283
collection.
AddRange
((object[])[2, 1, 3]);
498
collection.
AddRange
((object[])[2, 1, 3]);
587
collection.
AddRange
((object[])[2, 1, 3]);
2223
collection.
AddRange
((object[])[2, 1, 1, 3]);
2231
collection.
AddRange
(Array.Empty<object>());
2247
collection.
AddRange
((object[])[2, 1, 1, 3]);
2255
collection.
AddRange
(Array.Empty<object>());
2274
collection.
AddRange
((object[])[2, 1, 1, 3]);
2282
collection.
AddRange
(Array.Empty<object>());
2301
collection.
AddRange
((object[])[2, 1, 1, 3]);
2309
collection.
AddRange
(Array.Empty<object>());
2331
collection.
AddRange
((object[])[2, 1, 1, 3]);
2350
collection.
AddRange
(Array.Empty<object>());
2383
collection.
AddRange
((object[])[2, 1, 1, 3]);
2402
collection.
AddRange
(Array.Empty<object>());
2438
collection.
AddRange
((object[])[2, 1, 1, 3]);
2457
collection.
AddRange
(Array.Empty<object>());
2493
collection.
AddRange
((object[])[2, 1, 1, 3]);
2512
collection.
AddRange
(Array.Empty<object>());
2543
collection.
AddRange
((object[])[0, 5]);
2551
collection.
AddRange
(Array.Empty<object>());
2574
collection.
AddRange
((object[])[0, 5]);
2582
collection.
AddRange
(Array.Empty<object>());
2609
collection.
AddRange
((object[])[0, 2, 4]);
2617
collection.
AddRange
(Array.Empty<object>());
2644
collection.
AddRange
((object[])[0, 2, 4]);
2651
collection.
AddRange
(Array.Empty<object>());
2677
collection.
AddRange
((object[])[0, 5]);
2688
collection.
AddRange
(Array.Empty<object>());
2721
collection.
AddRange
((object[])[0, 5]);
2732
collection.
AddRange
(Array.Empty<object>());
2769
collection.
AddRange
((object[])[0, 2, 4]);
2780
collection.
AddRange
(Array.Empty<object>());
2817
collection.
AddRange
((object[])[0, 2, 5]);
2828
collection.
AddRange
(Array.Empty<object>());
2844
collection.
AddRange
((object[])[2, 1, 1, 3]);
2855
collection.
AddRange
((object[])[2, 1, 1, 3]);
2879
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
2908
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
2940
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
2972
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
3007
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
3064
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
3124
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
3184
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
3239
otherCollection.
AddRange
((object[])[0, 5]);
3275
otherCollection.
AddRange
((object[])[0, 5]);
3315
otherCollection.
AddRange
((object[])[0, 2, 4]);
3355
otherCollection.
AddRange
((object[])[0, 2, 4]);
3393
otherCollection.
AddRange
((object[])[0, 5]);
3442
otherCollection.
AddRange
((object[])[0, 5]);
3495
otherCollection.
AddRange
((object[])[0, 2, 4]);
3548
otherCollection.
AddRange
((object[])[0, 2, 5]);
3580
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
3594
otherCollection.
AddRange
((object[])[2, 1, 1, 3]);
3648
Assert.Throws<ArgumentNullException>("items", () => collection.
AddRange
((object[])null));
3657
Assert.Throws<ArgumentNullException>("item", () => collection.
AddRange
((object[])[null]));
3670
Assert.Throws<ArgumentException>(() => collection.
AddRange
(Array.Empty<object>()));
3694
Assert.Throws<OutOfMemoryException>(() => collection.
AddRange
((object[])[1]));
System\Windows\Forms\ListBoxTests.cs (4)
6121
listBox.Items.
AddRange
((object[])["1", "2", "3"]);
6162
listBox.Items.
AddRange
((object[])["1", "2", "3", "4"]);
6202
listBox.Items.
AddRange
((object[])["1", "2", "3"]);
6238
listBox.Items.
AddRange
((object[])["1", "2", "3"]);
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
606
ListDragSource.Items.
AddRange
("one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten");
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" });