54 references to Items
PresentationUI (12)
MS\Internal\Documents\RequestedSignatureDialog.cs (6)
134_intentComboBox.Items.Add(SR.DigSigIntentString1); 135_intentComboBox.Items.Add(SR.DigSigIntentString2); 136_intentComboBox.Items.Add(SR.DigSigIntentString3); 137_intentComboBox.Items.Add(SR.DigSigIntentString4); 138_intentComboBox.Items.Add(SR.DigSigIntentString5); 139_intentComboBox.Items.Add(SR.DigSigIntentString6);
MS\Internal\Documents\SigningDialog.cs (6)
245_reasonComboBox.Items.Add(SR.DigSigIntentString1); 246_reasonComboBox.Items.Add(SR.DigSigIntentString2); 247_reasonComboBox.Items.Add(SR.DigSigIntentString3); 248_reasonComboBox.Items.Add(SR.DigSigIntentString4); 249_reasonComboBox.Items.Add(SR.DigSigIntentString5); 250_reasonComboBox.Items.Add(SR.DigSigIntentString6);
System.Windows.Forms (28)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (2)
133List<Entry> entries = owner.Items.InnerList; 209if (selectedIndex < 0 || selectedIndex > owner.Items.Count - 1)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (2)
103if (index < 0 || index >= _owningComboBox.Items.Count) 120return _owningComboBox.Items.Count;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
106private int GetCurrentIndex() => _owningComboBox.Items.InnerList.IndexOf(_owningItem);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (20)
22[DefaultProperty(nameof(Items))] 796int itemCount = Items.Count + 1; 848if (Items is not null) 850string[] strings = new string[Items.Count]; 851for (int i = 0; i < Items.Count; i++) 853strings[i] = GetItemText(Items[i])!; 917return (index == -1) ? null : Items[index]; 1330Items.AddRangeInternal(value); 2026if (Items.Count > 0) 2045if (Items.Count > 0) 2840Items.ClearInternal(); 3005Items.AddRangeInternal(newItems); 3029Items.SetItemInternal(index, Items[index]!); 3260Items.ClearInternal(); 3261Items.AddRangeInternal(value); 3296Items.SetItemInternal(index, value); 3319private IReadOnlyList<Entry> Entries => Items.InnerList; 3380for (int i = 0; i < Items.Count; i++) 3415object? item = Items[SelectedIndex];
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
1277comboBox.Items.Clear(); 1294comboBox.Items.AddRange([.. Items.InnerArray]);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
213return ComboBox.Items;
System.Windows.Forms.Design (14)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (4)
658_columnTypesCombo.Items.Clear(); 696_columnTypesCombo.Items.Add(new ComboBoxItem(type)); 837for (int i = 0; i < _columnTypesCombo.Items.Count; i++) 839if (type == ((ComboBoxItem)_columnTypesCombo.Items[i]!).ColumnType)
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (3)
102_keyComboBox.Items.RemoveAt(0); 204_keyComboBox.Items.Add(KeysConverter.ConvertToString(keyCode)!); 342_keyComboBox.Items.Insert(0, SR.ShortcutKeys_InvalidKey);
System\Windows\Forms\Design\StyleEditorForm.cs (1)
296_columnsOrRowsComboBox.Items.AddRange(
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (6)
446_newItemTypes.Items.Clear(); 449_newItemTypes.Items.Add(new TypeListItem(t)); 459_customItemIndex = _newItemTypes.Items.Count; 462_newItemTypes.Items.Add(new TypeListItem(t)); 545foreach (TypeListItem item in _newItemTypes.Items) 681if (box.Items[e.Index] is not TypeListItem typeListItem)