6 writes to
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
225set => this[index] = value!;
System.Windows.Forms.Design (5)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (4)
341(_listBox.Items[index + 1], _listBox.Items[index]) = (_listBox.Items[index], _listBox.Items[index + 1]); 1004(_listBox.Items[index - 1], _listBox.Items[index]) = (_listBox.Items[index], _listBox.Items[index - 1]);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
907_selectedColumns.Items[selectedIndex] = _selectedColumns.Items[selectedIndex];
38 references to
PresentationUI (8)
MS\Internal\Documents\CredentialManagerDialog.cs (2)
105(string) _credListBox.Items[_credListBox.SelectedIndex]); 120(string)_credListBox.Items[_credListBox.SelectedIndex]);
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
360(SignatureResources)_listBoxSummary.Items[_listBoxSummary.SelectedIndex], 386(SignatureResources)_listBoxSummary.Items[_listBoxSummary.SelectedIndex], 419_listBoxSummary.Items[_listBoxSummary.SelectedIndex] 485if (_documentSignatureManager.HasCertificate((SignatureResources)_listBoxSummary.Items[_listBoxSummary.SelectedIndex])) 532(SignatureResources)_listBoxSummary.Items[e.Index] 601SignatureResources item = (SignatureResources)_listBoxSummary.Items[e.Index];
System.Windows.Forms (9)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
487item = Items[e.Index];
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (6)
1087if (string.Compare(value, GetItemText(Items[index]), true, CultureInfo.CurrentCulture) == 0) 1302strings[i] = GetItemText(Items[i]); 1780NativeAdd(_itemsCollection[i]); 2021SelectedItem = savedItems[index]; 2034Items.SetItemInternal(index, Items[index]); 2193NativeAdd(_itemsCollection[i]);
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
224get => this[index];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2313string text = (string)DropDownListBox.Items[e.Index];
System.Windows.Forms.Design (21)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (7)
183items[i] = ((ListItem)_listBox.Items[i]).Value; 341(_listBox.Items[index + 1], _listBox.Items[index]) = (_listBox.Items[index], _listBox.Items[index + 1]); 571ListItem item = (ListItem)_listBox.Items[e.Index]; 694items[i] = ((ListItem)_listBox.Items[i]).Value; 1004(_listBox.Items[index - 1], _listBox.Items[index]) = (_listBox.Items[index], _listBox.Items[index - 1]);
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
258Color value = (Color)lb.Items[die.Index];
System\Drawing\Design\CursorEditor.CursorUI.cs (2)
66Cursor cursor = (Cursor)Items[e.Index]; 119if (Items[i] == value)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (7)
711ListBoxItem item = (ListBoxItem)_selectedColumns.Items[selectedIndex - 1]; 760ListBoxItem? lbi = _selectedColumns.Items[i] as ListBoxItem; 862ListBoxItem? lbi = _selectedColumns.Items[i] as ListBoxItem; 907_selectedColumns.Items[selectedIndex] = _selectedColumns.Items[selectedIndex]; 951ListBoxItem? listBoxItem = _selectedColumns.Items[e.Index] as ListBoxItem; 996string columnName = ((ListBoxItem)_selectedColumns.Items[e.Index]).ToString(); 1157int itemWidth = TextRenderer.MeasureText(_selectedColumns.Items[i].ToString(), _selectedColumns.Font).Width;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (2)
49ListBoxItem item = (ListBoxItem)_typesListBox.Items[i]; 129if (type == ((ListBoxItem)_typesListBox.Items[i]).ColumnType)
System\Windows\Forms\Design\FormatControl.cs (1)
50var formatType = (FormatTypeClass)formatTypeListBox.Items[i];
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
662if (listBox.Items[e.Index] is not Component item)