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