153 references to Add
PresentationUI (12)
MS\Internal\Documents\RequestedSignatureDialog.cs (6)
135
_intentComboBox.Items.
Add
(SR.DigSigIntentString1);
136
_intentComboBox.Items.
Add
(SR.DigSigIntentString2);
137
_intentComboBox.Items.
Add
(SR.DigSigIntentString3);
138
_intentComboBox.Items.
Add
(SR.DigSigIntentString4);
139
_intentComboBox.Items.
Add
(SR.DigSigIntentString5);
140
_intentComboBox.Items.
Add
(SR.DigSigIntentString6);
MS\Internal\Documents\SigningDialog.cs (6)
246
_reasonComboBox.Items.
Add
(SR.DigSigIntentString1);
247
_reasonComboBox.Items.
Add
(SR.DigSigIntentString2);
248
_reasonComboBox.Items.
Add
(SR.DigSigIntentString3);
249
_reasonComboBox.Items.
Add
(SR.DigSigIntentString4);
250
_reasonComboBox.Items.
Add
(SR.DigSigIntentString5);
251
_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 (4)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
696
_columnTypesCombo.Items.
Add
(new ComboBoxItem(type));
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
204
_keyComboBox.Items.
Add
(KeysConverter.ConvertToString(keyCode)!);
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (2)
453
_newItemTypes.Items.
Add
(new TypeListItem(t));
466
_newItemTypes.Items.
Add
(new TypeListItem(t));
System.Windows.Forms.Tests (131)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (2)
2653
comboBox.Items.
Add
("Item One");
2654
comboBox.Items.
Add
("Item Two");
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (4)
302
comboBox.Items.
Add
(i);
660
comboBox.Items.
Add
(1);
661
comboBox.Items.
Add
(2);
662
comboBox.Items.
Add
(3);
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (23)
287
comboBox.Items.
Add
("Some test text for testing GetLineFromCharIndex method");
310
comboBox.Items.
Add
("Some test text for testing GetLineFromCharIndex method");
349
comboBox.Items.
Add
("Some test text for testing GetLineIndex method");
371
comboBox.Items.
Add
("Some test text for testing GetLineIndex method");
438
comboBox.Items.
Add
(text);
466
comboBox.Items.
Add
(text);
504
comboBox.Items.
Add
(text);
543
comboBox.Items.
Add
(text);
627
comboBox.Items.
Add
(text);
646
comboBox.Items.
Add
(text);
664
comboBox.Items.
Add
(text);
680
comboBox.Items.
Add
(text);
783
comboBox.Items.
Add
("Some test text for testing");
824
comboBox.Items.
Add
("Some test text for testing");
851
comboBox.Items.
Add
("Some test text for testing");
870
comboBox.Items.
Add
("Some test text for testing");
953
comboBox.Items.
Add
("Some test text for testing");
983
comboBox.Items.
Add
("Some test text for testing");
1014
comboBox.Items.
Add
("Some test text for testing");
1045
comboBox.Items.
Add
("Some long long test text for testing GetFirstVisibleLine method");
1065
comboBox.Items.
Add
("Some long long test text for testing GetFirstVisibleLine method");
1153
comboBox.Items.
Add
("Some test text for testing GetLineFromCharIndex method");
1174
comboBox.Items.
Add
("Some long long test text for testing GetFirstVisibleLine method");
System\Windows\Forms\Combobox.ObjectCollectionTests.cs (35)
54
comboBoxObjectCollection.
Add
(person1);
55
comboBoxObjectCollection.
Add
(person2);
76
int firstIndex = comboBoxObjectCollection.
Add
("a");
77
int secondIndex = comboBoxObjectCollection.
Add
("a");
97
Assert.Throws<ArgumentNullException>("item", () => comboBoxObjectCollection.
Add
(null));
118
Assert.Throws<ArgumentException>(() => comboBoxObjectCollection.
Add
("a"));
170
comboBoxObjectCollection.
Add
(person3);
171
comboBoxObjectCollection.
Add
(person1);
172
comboBoxObjectCollection.
Add
(person2);
202
comboBoxObjectCollection.
Add
(person2);
203
comboBoxObjectCollection.
Add
(person1);
204
comboBoxObjectCollection.
Add
("Name 2");
227
int firstIndex = comboBoxObjectCollection.
Add
("c");
228
int secondIndex = comboBoxObjectCollection.
Add
("a");
229
int thirdIndex = comboBoxObjectCollection.
Add
("b");
717
comboBoxObjectCollection.
Add
(person1);
718
comboBoxObjectCollection.
Add
(person2);
747
comboBoxObjectCollection.
Add
(person1);
748
comboBoxObjectCollection.
Add
("Name 2");
864
comboBoxObjectCollection.
Add
("a");
995
comboBoxObjectCollection.
Add
(person1);
996
comboBoxObjectCollection.
Add
(person2);
1043
comboBoxObjectCollection.
Add
("a");
1117
comboBoxObjectCollection.
Add
(person1);
1118
comboBoxObjectCollection.
Add
(person2);
1224
comboBoxObjectCollection.
Add
(person1);
1225
comboBoxObjectCollection.
Add
(person2);
1276
comboBoxObjectCollection.
Add
(person1);
1277
comboBoxObjectCollection.
Add
(person2);
1455
comboBox.Items.
Add
("item1");
1456
comboBox.Items.
Add
("item2");
1468
comboBox.Items.
Add
("item1");
1469
comboBox.Items.
Add
("item2");
1481
comboBox.Items.
Add
("item1");
1482
comboBox.Items.
Add
("item2");
System\Windows\Forms\ComboBoxTests.cs (51)
1328
control.Items.
Add
(new DataClass { Value = "Value1" });
1329
control.Items.
Add
(new DataClass { Value = "Value2" });
1353
control.Items.
Add
(new DataClass { Value = "Value1" });
1354
control.Items.
Add
(new DataClass { Value = "Value2" });
1510
controlWithItems.Items.
Add
(new DataClass { Value = "abc" });
1511
controlWithItems.Items.
Add
(new DataClass { Value = "abc" });
1512
controlWithItems.Items.
Add
(new DataClass { Value = "ABC" });
1513
controlWithItems.Items.
Add
(new DataClass { Value = "def" });
1514
controlWithItems.Items.
Add
(new DataClass { Value = "" });
1515
controlWithItems.Items.
Add
(new DataClass { Value = null });
1591
control.Items.
Add
("item");
1617
controlWithItems.Items.
Add
(new DataClass { Value = "abc" });
1618
controlWithItems.Items.
Add
(new DataClass { Value = "abc" });
1619
controlWithItems.Items.
Add
(new DataClass { Value = "ABC" });
1620
controlWithItems.Items.
Add
(new DataClass { Value = "def" });
1621
controlWithItems.Items.
Add
(new DataClass { Value = "" });
1622
controlWithItems.Items.
Add
(new DataClass { Value = null });
1715
control.Items.
Add
("item");
2165
control.Items.
Add
("item1");
2166
control.Items.
Add
("item2");
2179
comboBox.Items.
Add
("item1");
2180
comboBox.Items.
Add
("item2");
2199
comboBox.Items.
Add
("item1");
2200
comboBox.Items.
Add
("item2");
2221
comboBox.Items.
Add
("item1");
2222
comboBox.Items.
Add
("item2");
2241
comboBox.Items.
Add
("item1");
2242
comboBox.Items.
Add
("item2");
2264
comboBox.Items.
Add
(i.ToString());
2287
comboBox.Items.
Add
("item1");
2288
comboBox.Items.
Add
("item2");
2304
comboBox.Items.
Add
("item1");
2305
comboBox.Items.
Add
("item2");
2327
comboBox.Items.
Add
("item1");
2328
comboBox.Items.
Add
("item2");
2344
comboBox.Items.
Add
("item1");
2345
comboBox.Items.
Add
("item2");
2363
comboBox.Items.
Add
("item1");
2364
comboBox.Items.
Add
("item2");
2377
comboBox.Items.
Add
("item1");
2378
comboBox.Items.
Add
("item2");
2394
comboBox.Items.
Add
("item1");
2395
comboBox.Items.
Add
("item2");
2412
comboBox.Items.
Add
("item1");
2413
comboBox.Items.
Add
("item2");
2492
comboBox.Items.
Add
(item);
2636
control.Items.
Add
("Item1");
2637
control.Items.
Add
("Item2");
2638
control.Items.
Add
("Item3");
2749
comboBox.Items.
Add
($"item{i}");
2951
Items.
Add
($"Item {i}");
System\Windows\Forms\ToolStripComboBoxTests.cs (16)
193
_toolStripComboBox.Items.
Add
("Item1");
194
_toolStripComboBox.Items.
Add
("Item2");
207
_toolStripComboBox.Items.
Add
("Item1");
208
_toolStripComboBox.Items.
Add
("Item2");
218
_toolStripComboBox.Items.
Add
("Item1");
219
_toolStripComboBox.Items.
Add
("Item2");
230
_toolStripComboBox.Items.
Add
("Item1");
231
_toolStripComboBox.Items.
Add
("Item2");
297
_toolStripComboBox.Items.
Add
("Item1");
298
_toolStripComboBox.Items.
Add
("Item2");
327
_toolStripComboBox.Items.
Add
("Item1");
328
_toolStripComboBox.Items.
Add
("Item2");
375
_toolStripComboBox.Items.
Add
("Item1");
376
_toolStripComboBox.Items.
Add
("Item2");
411
_toolStripComboBox.Items.
Add
("Item1");
412
_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);