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)
925
SelectedIndex
= -1;
931
SelectedIndex
= x;
1028
SelectedIndex
= -1;
1120
SelectedIndex
= -1;
1131
SelectedIndex
= index;
1177
SelectedIndex
= index;
2029
SelectedIndex
= 0;
2048
SelectedIndex
= 0;
2055
SelectedIndex
= FindString(MatchingText);
2094
SelectedIndex
= itemFound;
2845
SelectedIndex
= -1;
3017
SelectedIndex
= DataManager.Position;
3021
SelectedIndex
= selectedIndex;
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
427
_owner.
SelectedIndex
= index;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
50
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)
701
_columnTypesCombo.
SelectedIndex
= TypeToSelectedIndex(typeof(DataGridViewTextBoxColumn));
828
_columnTypesCombo.
SelectedIndex
= TypeToSelectedIndex(typeof(DataGridViewCheckBoxColumn));
833
_columnTypesCombo.
SelectedIndex
= TypeToSelectedIndex(typeof(DataGridViewImageColumn));
838
_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)
220
if (radioButtonTemplate.Checked && (comboBoxTemplates.
SelectedIndex
< _templates.Count))
222
return _templates[comboBoxTemplates.
SelectedIndex
].Template;
621
ToggleSave(comboBoxTemplates.
SelectedIndex
> 0);
797
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)
869
if (
SelectedIndex
== value)
910
int index =
SelectedIndex
;
1174
if ((index != -1) && (index !=
SelectedIndex
))
2092
if (itemFound !=
SelectedIndex
)
2232
if (DropDownStyle == ComboBoxStyle.DropDownList &&
SelectedIndex
== index)
2383
_selectedIndex =
SelectedIndex
;
2621
if (DataManager is not null && DataManager.Position !=
SelectedIndex
)
2624
if (!FormattingEnabled ||
SelectedIndex
!= -1)
2626
DataManager.Position =
SelectedIndex
;
2976
int selectedIndex =
SelectedIndex
;
3331
return
SelectedIndex
== -1 && base.ShouldSerializeText();
3428
if (
SelectedIndex
!= -1)
3430
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)
123
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
;