151 references to Add
PresentationUI (12)
MS\Internal\Documents\RequestedSignatureDialog.cs (6)
138
_intentComboBox.Items.
Add
(SR.DigSigIntentString1);
139
_intentComboBox.Items.
Add
(SR.DigSigIntentString2);
140
_intentComboBox.Items.
Add
(SR.DigSigIntentString3);
141
_intentComboBox.Items.
Add
(SR.DigSigIntentString4);
142
_intentComboBox.Items.
Add
(SR.DigSigIntentString5);
143
_intentComboBox.Items.
Add
(SR.DigSigIntentString6);
MS\Internal\Documents\SigningDialog.cs (6)
248
_reasonComboBox.Items.
Add
(SR.DigSigIntentString1);
249
_reasonComboBox.Items.
Add
(SR.DigSigIntentString2);
250
_reasonComboBox.Items.
Add
(SR.DigSigIntentString3);
251
_reasonComboBox.Items.
Add
(SR.DigSigIntentString4);
252
_reasonComboBox.Items.
Add
(SR.DigSigIntentString5);
253
_reasonComboBox.Items.
Add
(SR.DigSigIntentString6);
System.Windows.Forms (2)
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (2)
174
return
Add
(item!);
321
Add
(item);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
697
_columnTypesCombo.Items.
Add
(new ComboBoxItem(type));
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
204
_keyComboBox.Items.
Add
(KeysConverter.ConvertToString(keyCode)!);
System.Windows.Forms.Tests (131)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (2)
2651
comboBox.Items.
Add
("Item One");
2652
comboBox.Items.
Add
("Item Two");
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (4)
300
comboBox.Items.
Add
(i);
658
comboBox.Items.
Add
(1);
659
comboBox.Items.
Add
(2);
660
comboBox.Items.
Add
(3);
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (23)
285
comboBox.Items.
Add
("Some test text for testing GetLineFromCharIndex method");
308
comboBox.Items.
Add
("Some test text for testing GetLineFromCharIndex method");
347
comboBox.Items.
Add
("Some test text for testing GetLineIndex method");
369
comboBox.Items.
Add
("Some test text for testing GetLineIndex method");
436
comboBox.Items.
Add
(text);
464
comboBox.Items.
Add
(text);
502
comboBox.Items.
Add
(text);
541
comboBox.Items.
Add
(text);
625
comboBox.Items.
Add
(text);
644
comboBox.Items.
Add
(text);
662
comboBox.Items.
Add
(text);
678
comboBox.Items.
Add
(text);
781
comboBox.Items.
Add
("Some test text for testing");
822
comboBox.Items.
Add
("Some test text for testing");
849
comboBox.Items.
Add
("Some test text for testing");
868
comboBox.Items.
Add
("Some test text for testing");
951
comboBox.Items.
Add
("Some test text for testing");
981
comboBox.Items.
Add
("Some test text for testing");
1012
comboBox.Items.
Add
("Some test text for testing");
1043
comboBox.Items.
Add
("Some long long test text for testing GetFirstVisibleLine method");
1063
comboBox.Items.
Add
("Some long long test text for testing GetFirstVisibleLine method");
1151
comboBox.Items.
Add
("Some test text for testing GetLineFromCharIndex method");
1172
comboBox.Items.
Add
("Some long long test text for testing GetFirstVisibleLine method");
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (35)
52
comboBoxObjectCollection.
Add
(person1);
53
comboBoxObjectCollection.
Add
(person2);
74
int firstIndex = comboBoxObjectCollection.
Add
("a");
75
int secondIndex = comboBoxObjectCollection.
Add
("a");
95
Assert.Throws<ArgumentNullException>("item", () => comboBoxObjectCollection.
Add
(null));
116
Assert.Throws<ArgumentException>(() => comboBoxObjectCollection.
Add
("a"));
168
comboBoxObjectCollection.
Add
(person3);
169
comboBoxObjectCollection.
Add
(person1);
170
comboBoxObjectCollection.
Add
(person2);
200
comboBoxObjectCollection.
Add
(person2);
201
comboBoxObjectCollection.
Add
(person1);
202
comboBoxObjectCollection.
Add
("Name 2");
225
int firstIndex = comboBoxObjectCollection.
Add
("c");
226
int secondIndex = comboBoxObjectCollection.
Add
("a");
227
int thirdIndex = comboBoxObjectCollection.
Add
("b");
715
comboBoxObjectCollection.
Add
(person1);
716
comboBoxObjectCollection.
Add
(person2);
745
comboBoxObjectCollection.
Add
(person1);
746
comboBoxObjectCollection.
Add
("Name 2");
862
comboBoxObjectCollection.
Add
("a");
993
comboBoxObjectCollection.
Add
(person1);
994
comboBoxObjectCollection.
Add
(person2);
1041
comboBoxObjectCollection.
Add
("a");
1115
comboBoxObjectCollection.
Add
(person1);
1116
comboBoxObjectCollection.
Add
(person2);
1222
comboBoxObjectCollection.
Add
(person1);
1223
comboBoxObjectCollection.
Add
(person2);
1274
comboBoxObjectCollection.
Add
(person1);
1275
comboBoxObjectCollection.
Add
(person2);
1452
comboBox.Items.
Add
("item1");
1453
comboBox.Items.
Add
("item2");
1465
comboBox.Items.
Add
("item1");
1466
comboBox.Items.
Add
("item2");
1478
comboBox.Items.
Add
("item1");
1479
comboBox.Items.
Add
("item2");
System\Windows\Forms\ComboBoxTests.cs (51)
1327
control.Items.
Add
(new DataClass { Value = "Value1" });
1328
control.Items.
Add
(new DataClass { Value = "Value2" });
1352
control.Items.
Add
(new DataClass { Value = "Value1" });
1353
control.Items.
Add
(new DataClass { Value = "Value2" });
1509
controlWithItems.Items.
Add
(new DataClass { Value = "abc" });
1510
controlWithItems.Items.
Add
(new DataClass { Value = "abc" });
1511
controlWithItems.Items.
Add
(new DataClass { Value = "ABC" });
1512
controlWithItems.Items.
Add
(new DataClass { Value = "def" });
1513
controlWithItems.Items.
Add
(new DataClass { Value = "" });
1514
controlWithItems.Items.
Add
(new DataClass { Value = null });
1590
control.Items.
Add
("item");
1616
controlWithItems.Items.
Add
(new DataClass { Value = "abc" });
1617
controlWithItems.Items.
Add
(new DataClass { Value = "abc" });
1618
controlWithItems.Items.
Add
(new DataClass { Value = "ABC" });
1619
controlWithItems.Items.
Add
(new DataClass { Value = "def" });
1620
controlWithItems.Items.
Add
(new DataClass { Value = "" });
1621
controlWithItems.Items.
Add
(new DataClass { Value = null });
1714
control.Items.
Add
("item");
2164
control.Items.
Add
("item1");
2165
control.Items.
Add
("item2");
2178
comboBox.Items.
Add
("item1");
2179
comboBox.Items.
Add
("item2");
2198
comboBox.Items.
Add
("item1");
2199
comboBox.Items.
Add
("item2");
2220
comboBox.Items.
Add
("item1");
2221
comboBox.Items.
Add
("item2");
2240
comboBox.Items.
Add
("item1");
2241
comboBox.Items.
Add
("item2");
2263
comboBox.Items.
Add
(i.ToString());
2286
comboBox.Items.
Add
("item1");
2287
comboBox.Items.
Add
("item2");
2303
comboBox.Items.
Add
("item1");
2304
comboBox.Items.
Add
("item2");
2326
comboBox.Items.
Add
("item1");
2327
comboBox.Items.
Add
("item2");
2343
comboBox.Items.
Add
("item1");
2344
comboBox.Items.
Add
("item2");
2362
comboBox.Items.
Add
("item1");
2363
comboBox.Items.
Add
("item2");
2376
comboBox.Items.
Add
("item1");
2377
comboBox.Items.
Add
("item2");
2393
comboBox.Items.
Add
("item1");
2394
comboBox.Items.
Add
("item2");
2411
comboBox.Items.
Add
("item1");
2412
comboBox.Items.
Add
("item2");
2491
comboBox.Items.
Add
(item);
2635
control.Items.
Add
("Item1");
2636
control.Items.
Add
("Item2");
2637
control.Items.
Add
("Item3");
2748
comboBox.Items.
Add
($"item{i}");
2950
Items.
Add
($"Item {i}");
System\Windows\Forms\ToolStripComboBoxTests.cs (16)
195
_toolStripComboBox.Items.
Add
("Item1");
196
_toolStripComboBox.Items.
Add
("Item2");
209
_toolStripComboBox.Items.
Add
("Item1");
210
_toolStripComboBox.Items.
Add
("Item2");
220
_toolStripComboBox.Items.
Add
("Item1");
221
_toolStripComboBox.Items.
Add
("Item2");
232
_toolStripComboBox.Items.
Add
("Item1");
233
_toolStripComboBox.Items.
Add
("Item2");
299
_toolStripComboBox.Items.
Add
("Item1");
300
_toolStripComboBox.Items.
Add
("Item2");
329
_toolStripComboBox.Items.
Add
("Item1");
330
_toolStripComboBox.Items.
Add
("Item2");
377
_toolStripComboBox.Items.
Add
("Item1");
378
_toolStripComboBox.Items.
Add
("Item2");
413
_toolStripComboBox.Items.
Add
("Item1");
414
_toolStripComboBox.Items.
Add
("Item2");
WinFormsControlsTest (4)
CollectionEditors.cs (1)
35
_stringList.ForEach(s => comboBox1.Items.
Add
(s));
ComboBoxesWithScrollBars.cs (3)
17
comboBox1.Items.
Add
(i);
18
comboBox2.Items.
Add
(i);
19
comboBox3.Items.
Add
(i);