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