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