Base:
property
SelectedIndex
System.Windows.Forms.ListControl.SelectedIndex
10 writes to SelectedIndex
System.Windows.Forms (10)
winforms\Managed\System\WinForms\ListBox.cs (8)
981SelectedIndex = index; 985SelectedIndex = -1; 1109SelectedIndex = index; 1924SelectedIndex = -1; 1940this.SelectedIndex = this.DataManager.Position; 2015this.SelectedIndex = this.DataManager.Position; 3383owner.SelectedIndex = index; 4376owner.SelectedIndex = index;
winforms\Managed\System\WinForms\MDIWindowDialog.cs (1)
74itemList.SelectedIndex = selIndex;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
3904DropDownListBox.SelectedIndex = iSel;
17 references to SelectedIndex
System.Windows.Forms (12)
winforms\Managed\System\WinForms\CheckedListBox.cs (5)
571int index = SelectedIndex; 957lastSelected = SelectedIndex; 1605int index = CheckedListBox.SelectedIndex; 1737if (ParentCheckedListBox.SelectedIndex == index) { 1741if (AccessibilityImprovements.Level3 && ParentCheckedListBox.Focused && ParentCheckedListBox.SelectedIndex == -1) {
winforms\Managed\System\WinForms\ListBox.cs (7)
897int currentIndex = SelectedIndex; 913if (SelectedIndex != -1) { 1895if (this.DataManager != null && DataManager.Position != SelectedIndex) { 1897if (!FormattingEnabled || this.SelectedIndex != -1) 1901this.DataManager.Position = this.SelectedIndex; 3376bool selected = (owner.SelectedIndex == index); 4145int index = owner.SelectedIndex;
System.Workflow.Activities (3)
Designers\SetStateDesigner.cs (3)
272if (dropDownList.SelectedIndex != -1 && _selectedObject != null) 296if (dropDownList.SelectedIndex < 0) 299_selectedObject = dropDownList.Items[dropDownList.SelectedIndex];
System.WorkflowServices (2)
System\Workflow\Activities\Design\RichListBox.cs (2)
177if (this.SelectedIndex < 0) 181object selectedItem = Items[this.SelectedIndex];