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);
1453
comboBox.Items.
Add
("item1");
1454
comboBox.Items.
Add
("item2");
1466
comboBox.Items.
Add
("item1");
1467
comboBox.Items.
Add
("item2");
1479
comboBox.Items.
Add
("item1");
1480
comboBox.Items.
Add
("item2");
System\Windows\Forms\ComboBoxTests.cs (51)
1326
control.Items.
Add
(new DataClass { Value = "Value1" });
1327
control.Items.
Add
(new DataClass { Value = "Value2" });
1351
control.Items.
Add
(new DataClass { Value = "Value1" });
1352
control.Items.
Add
(new DataClass { Value = "Value2" });
1508
controlWithItems.Items.
Add
(new DataClass { Value = "abc" });
1509
controlWithItems.Items.
Add
(new DataClass { Value = "abc" });
1510
controlWithItems.Items.
Add
(new DataClass { Value = "ABC" });
1511
controlWithItems.Items.
Add
(new DataClass { Value = "def" });
1512
controlWithItems.Items.
Add
(new DataClass { Value = "" });
1513
controlWithItems.Items.
Add
(new DataClass { Value = null });
1589
control.Items.
Add
("item");
1615
controlWithItems.Items.
Add
(new DataClass { Value = "abc" });
1616
controlWithItems.Items.
Add
(new DataClass { Value = "abc" });
1617
controlWithItems.Items.
Add
(new DataClass { Value = "ABC" });
1618
controlWithItems.Items.
Add
(new DataClass { Value = "def" });
1619
controlWithItems.Items.
Add
(new DataClass { Value = "" });
1620
controlWithItems.Items.
Add
(new DataClass { Value = null });
1713
control.Items.
Add
("item");
2163
control.Items.
Add
("item1");
2164
control.Items.
Add
("item2");
2177
comboBox.Items.
Add
("item1");
2178
comboBox.Items.
Add
("item2");
2197
comboBox.Items.
Add
("item1");
2198
comboBox.Items.
Add
("item2");
2219
comboBox.Items.
Add
("item1");
2220
comboBox.Items.
Add
("item2");
2239
comboBox.Items.
Add
("item1");
2240
comboBox.Items.
Add
("item2");
2262
comboBox.Items.
Add
(i.ToString());
2285
comboBox.Items.
Add
("item1");
2286
comboBox.Items.
Add
("item2");
2302
comboBox.Items.
Add
("item1");
2303
comboBox.Items.
Add
("item2");
2325
comboBox.Items.
Add
("item1");
2326
comboBox.Items.
Add
("item2");
2342
comboBox.Items.
Add
("item1");
2343
comboBox.Items.
Add
("item2");
2361
comboBox.Items.
Add
("item1");
2362
comboBox.Items.
Add
("item2");
2375
comboBox.Items.
Add
("item1");
2376
comboBox.Items.
Add
("item2");
2392
comboBox.Items.
Add
("item1");
2393
comboBox.Items.
Add
("item2");
2410
comboBox.Items.
Add
("item1");
2411
comboBox.Items.
Add
("item2");
2490
comboBox.Items.
Add
(item);
2634
control.Items.
Add
("Item1");
2635
control.Items.
Add
("Item2");
2636
control.Items.
Add
("Item3");
2747
comboBox.Items.
Add
($"item{i}");
2949
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);