2 writes to Index
System.Windows.Forms (2)
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (2)
50Index = index; 76Index = (int)index;
31 references to Index
PresentationUI (4)
MS\Internal\Documents\SignatureSummaryDialog.cs (4)
590if (e.Index > -1 && e.Index < _listBoxSummary.Items.Count) 593SignatureResources item = (SignatureResources)_listBoxSummary.Items[e.Index]; 598_listBoxSummary.SelectedIndex == e.Index
System.Windows.Forms (8)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (6)
483if (e.Index >= 0) 485if (e.Index < Items.Count) 487item = Items[e.Index]; 493item = NativeGetItemText(e.Index); 507if (e.Index < Items.Count) 509switch (CheckedItems.GetCheckedState(e.Index))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
2283int index = e.Index; 2290string text = (string)DropDownListBox.Items[e.Index];
System.Windows.Forms.Design (9)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
555if (e.Index != -1) 557ListItem item = (ListItem)_listBox.Items[e.Index]; 608g.DrawString(e.Index.ToString(CultureInfo.CurrentCulture), Font, SystemBrushes.ControlText,
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
258Color value = (Color)lb.Items[die.Index];
System\Drawing\Design\CursorEditor.CursorUI.cs (2)
61if (e.Index != -1) 63Cursor cursor = (Cursor)Items[e.Index];
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (3)
951if (e.Index < 0) 956ListBoxItem? listBoxItem = _selectedColumns.Items[e.Index] as ListBoxItem; 1001string columnName = ((ListBoxItem)_selectedColumns.Items[e.Index]).ToString();
System.Windows.Forms.Tests (5)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (3)
490if (e.Index < 0 || e.Index >= Items.Count) 498Items[e.Index].ToString(),
System\Windows\Forms\DrawItemEventArgsTests.cs (2)
30Assert.Equal(index, e.Index); 56Assert.Equal(index, e.Index);
WinFormsControlsTest (5)
ComboBoxesWithScrollBars.cs (3)
131if (e.Index < 0 || e.Index >= control.Items.Count) 139control.Items[e.Index].ToString(),
ListBoxes.cs (2)
37if (e.Index % 2 == 0) 46e.Graphics.DrawString(listBox.Items[e.Index].ToString(),