Base:
property
SelectedIndex
System.Windows.Forms.ListControl.SelectedIndex
62 writes to SelectedIndex
DesignSurface (1)
MainForm.cs (1)
202
cb1.
SelectedIndex
= 1;
System.Windows.Forms (17)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
202
_owningComboBox.
SelectedIndex
= GetCurrentIndex();
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (13)
926
SelectedIndex
= -1;
932
SelectedIndex
= x;
1029
SelectedIndex
= -1;
1121
SelectedIndex
= -1;
1132
SelectedIndex
= index;
1178
SelectedIndex
= index;
2030
SelectedIndex
= 0;
2049
SelectedIndex
= 0;
2056
SelectedIndex
= FindString(MatchingText);
2095
SelectedIndex
= itemFound;
2846
SelectedIndex
= -1;
3018
SelectedIndex
= DataManager.Position;
3022
SelectedIndex
= selectedIndex;
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
427
_owner.
SelectedIndex
= index;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
49
SelectedIndex
= -1;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
243
set { ComboBox.
SelectedIndex
= value; }
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (4)
700
_columnTypesCombo.
SelectedIndex
= TypeToSelectedIndex(typeof(DataGridViewTextBoxColumn));
821
_columnTypesCombo.
SelectedIndex
= TypeToSelectedIndex(typeof(DataGridViewCheckBoxColumn));
826
_columnTypesCombo.
SelectedIndex
= TypeToSelectedIndex(typeof(DataGridViewImageColumn));
831
_columnTypesCombo.
SelectedIndex
= TypeToSelectedIndex(typeof(DataGridViewTextBoxColumn));
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (3)
88
_keyComboBox.
SelectedIndex
= -1;
334
_keyComboBox.
SelectedIndex
= -1;
343
_keyComboBox.
SelectedIndex
= 0;
System\Windows\Forms\Design\StyleEditorForm.cs (1)
549
_columnsOrRowsComboBox.
SelectedIndex
= _isRowCollection ? 1 : 0;
System.Windows.Forms.Tests (34)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (3)
670
comboBox.
SelectedIndex
= 1;
679
comboBox.
SelectedIndex
= 1;
688
comboBox.
SelectedIndex
= 1;
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (23)
286
comboBox.
SelectedIndex
= 0;
309
comboBox.
SelectedIndex
= 0;
348
comboBox.
SelectedIndex
= 0;
370
comboBox.
SelectedIndex
= 0;
437
comboBox.
SelectedIndex
= 0;
465
comboBox.
SelectedIndex
= 0;
503
comboBox.
SelectedIndex
= 0;
542
comboBox.
SelectedIndex
= 0;
626
comboBox.
SelectedIndex
= 0;
645
comboBox.
SelectedIndex
= 0;
663
comboBox.
SelectedIndex
= 0;
679
comboBox.
SelectedIndex
= 0;
782
comboBox.
SelectedIndex
= 0;
823
comboBox.
SelectedIndex
= 0;
850
comboBox.
SelectedIndex
= 0;
869
comboBox.
SelectedIndex
= 0;
952
comboBox.
SelectedIndex
= 0;
982
comboBox.
SelectedIndex
= 0;
1013
comboBox.
SelectedIndex
= 0;
1044
comboBox.
SelectedIndex
= 0;
1064
comboBox.
SelectedIndex
= 0;
1152
comboBox.
SelectedIndex
= 0;
1173
comboBox.
SelectedIndex
= 0;
System\Windows\Forms\ComboBoxTests.cs (8)
1329
control.
SelectedIndex
= value;
1335
control.
SelectedIndex
= value;
1354
control.
SelectedIndex
= value;
1360
control.
SelectedIndex
= value;
2510
comboBox.
SelectedIndex
= index;
2513
comboBox.
SelectedIndex
= index;
2532
comboBox.
SelectedIndex
= index;
2603
comboBox.
SelectedIndex
= selectedIndex;
WinFormsControlsTest (2)
Calendar.cs (1)
14
daysOfWeekComboBox.
SelectedIndex
= (int)monthCalendar1.FirstDayOfWeek;
ComboBoxes.cs (1)
15
comboBox1.
SelectedIndex
= 0;
43 references to SelectedIndex
PresentationUI (4)
MS\Internal\Documents\RMPublishingDialog.cs (4)
215
if (radioButtonTemplate.Checked && (comboBoxTemplates.
SelectedIndex
< _templates.Count))
217
return _templates[comboBoxTemplates.
SelectedIndex
].Template;
616
ToggleSave(comboBoxTemplates.
SelectedIndex
> 0);
792
ToggleSave(comboBoxTemplates.
SelectedIndex
> 0);
System.Windows.Forms (20)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (1)
207
int selectedIndex = owner.
SelectedIndex
;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (2)
147
int selectedIndex = _owningComboBox.
SelectedIndex
;
160
int selectedIndex = _owningComboBox.
SelectedIndex
;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
115
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(_owningComboBox.Focused && _owningComboBox.
SelectedIndex
== GetCurrentIndex()),
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (13)
870
if (
SelectedIndex
== value)
911
int index =
SelectedIndex
;
1175
if ((index != -1) && (index !=
SelectedIndex
))
2093
if (itemFound !=
SelectedIndex
)
2233
if (DropDownStyle == ComboBoxStyle.DropDownList &&
SelectedIndex
== index)
2384
_selectedIndex =
SelectedIndex
;
2622
if (DataManager is not null && DataManager.Position !=
SelectedIndex
)
2625
if (!FormattingEnabled ||
SelectedIndex
!= -1)
2627
DataManager.Position =
SelectedIndex
;
2977
int selectedIndex =
SelectedIndex
;
3332
return
SelectedIndex
== -1 && base.ShouldSerializeText();
3429
if (
SelectedIndex
!= -1)
3431
object? item = Items[
SelectedIndex
];
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
419
bool selected = (index == _owner.
SelectedIndex
);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
122
if (
SelectedIndex
!= -1)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
242
get { return ComboBox.
SelectedIndex
; }
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
360
int cmbKeySelectedIndex = _keyComboBox.
SelectedIndex
;
System.Windows.Forms.Tests (17)
System\Windows\Forms\ComboBoxTests.cs (17)
115
Assert.Equal(-1, control.
SelectedIndex
);
1330
Assert.Equal(value, control.
SelectedIndex
);
1331
Assert.Equal(value == -1 ? null : control.Items[control.
SelectedIndex
], control.SelectedItem);
1336
Assert.Equal(value, control.
SelectedIndex
);
1337
Assert.Equal(value == -1 ? null : control.Items[control.
SelectedIndex
], control.SelectedItem);
1355
Assert.Equal(value, control.
SelectedIndex
);
1356
Assert.Equal(value == -1 ? null : control.Items[control.
SelectedIndex
], control.SelectedItem);
1361
Assert.Equal(value, control.
SelectedIndex
);
1362
Assert.Equal(value == -1 ? null : control.Items[control.
SelectedIndex
], control.SelectedItem);
2266
Assert.Equal(selectedIndex, comboBox.
SelectedIndex
);
2271
Assert.Equal(-1, comboBox.
SelectedIndex
);
2512
int selectedIndex = comboBox.
SelectedIndex
;
2515
Assert.Equal(index, comboBox.
SelectedIndex
);
2516
Assert.True(comboBox.Items[comboBox.
SelectedIndex
].Equals(comboBox.SelectedItem));
2531
int selectedIndex = comboBox.
SelectedIndex
;
2535
Assert.Equal(index, comboBox.
SelectedIndex
);
2536
Assert.True(comboBox.Items[comboBox.
SelectedIndex
].Equals(comboBox.SelectedItem));
WinFormsControlsTest (1)
Calendar.cs (1)
58
monthCalendar1.FirstDayOfWeek = (Day)daysOfWeekComboBox.
SelectedIndex
;