Base:
property
SelectedIndex
System.Windows.Forms.ListControl.SelectedIndex
96 writes to SelectedIndex
PresentationUI (2)
MS\Internal\Documents\CredentialManagerDialog.cs (1)
68
_credListBox.
SelectedIndex
= _credListBox.Items.IndexOf(defaultAccount);
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
428
_listBoxSummary.
SelectedIndex
= selectedIndex;
System.Windows.Forms (11)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (6)
957
SelectedIndex
= index;
962
SelectedIndex
= -1;
1091
SelectedIndex
= index;
1921
SelectedIndex
= -1;
1939
SelectedIndex
= DataManager.Position;
2012
SelectedIndex
= DataManager.Position;
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
250
_owningListBox.
SelectedIndex
= CurrentIndex;
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
432
_owner.
SelectedIndex
= index;
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
265
_owner.
SelectedIndex
= index;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3720
DropDownListBox.
SelectedIndex
= selectionIndex;
System\Windows\Forms\MDI\MDIWindowDialog.cs (1)
58
_itemList.
SelectedIndex
= selIndex;
System.Windows.Forms.Design (25)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (7)
164
_listBox.
SelectedIndex
= _listBox.Items.Count - 1;
179
_listBox.
SelectedIndex
= _listBox.Items.Count - 1;
335
_listBox.
SelectedIndex
= index + 1;
763
_listBox.
SelectedIndex
= 0;
823
_listBox.
SelectedIndex
= index;
827
_listBox.
SelectedIndex
= _listBox.Items.Count - 1;
1004
_listBox.
SelectedIndex
= index - 1;
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
100
SelectedIndex
= i;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
707
_dataColumns.
SelectedIndex
= -1;
743
_dataColumns.
SelectedIndex
= selectedIndex != -1 && selectedIndex < _dataColumns.Items.Count
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (7)
99
_selectedColumns.
SelectedIndex
= _columnsPrivateCopy.IndexOf((DataGridViewColumn)e.Element!);
164
_selectedColumns.
SelectedIndex
= selectedIndex;
701
_selectedColumns.
SelectedIndex
= selectedIndex + 1;
745
_selectedColumns.
SelectedIndex
= selectedIndex - 1;
805
_selectedColumns.
SelectedIndex
= Math.Min(0, _selectedColumns.Items.Count - 1);
834
_selectedColumns.
SelectedIndex
= Math.Min(_selectedColumns.Items.Count - 1, selectedIndex);
881
_selectedColumns.
SelectedIndex
= Math.Min(selectedIndex, _selectedColumns.Items.Count - 1);
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
111
_typesListBox.
SelectedIndex
= TypeToSelectedIndex(defaultType);
System\Windows\Forms\Design\FormatControl.cs (6)
46
formatTypeListBox.
SelectedIndex
= 0;
54
formatTypeListBox.
SelectedIndex
= i;
234
dateTimeFormatsListBox.
SelectedIndex
= -1;
235
formatTypeListBox.
SelectedIndex
= -1;
338
dateTimeFormatsListBox.
SelectedIndex
= 0;
396
formatTypeListBox.
SelectedIndex
= 0;
System\Windows\Forms\Design\FormatControl.DateTimeFormatType.cs (1)
108
_owner.dateTimeFormatsListBox.
SelectedIndex
= selectedIndex;
System.Windows.Forms.Tests (55)
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (1)
365
checkedListBox.
SelectedIndex
= 0; // Select and focus the first item
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (3)
262
listBox.
SelectedIndex
= 0;
265
listBox.
SelectedIndex
= 1;
296
listBox.
SelectedIndex
= 1; // Focus the second item
System\Windows\Forms\ListBoxTests.cs (51)
2329
SelectedIndex
= -1
2338
control.
SelectedIndex
= -1;
2358
control.
SelectedIndex
= 1;
2366
control.
SelectedIndex
= 1;
2374
control.
SelectedIndex
= 0;
2381
control.
SelectedIndex
= -1;
2403
control.
SelectedIndex
= 1;
2411
control.
SelectedIndex
= 1;
2419
control.
SelectedIndex
= 0;
2427
control.
SelectedIndex
= -1;
2453
control.
SelectedIndex
= 1;
2462
control.
SelectedIndex
= 1;
2471
control.
SelectedIndex
= 0;
2480
control.
SelectedIndex
= -1;
2508
control.
SelectedIndex
= 1;
2519
control.
SelectedIndex
= 1;
2530
control.
SelectedIndex
= 0;
2540
control.
SelectedIndex
= -1;
2572
control.
SelectedIndex
= 1;
2583
control.
SelectedIndex
= 1;
2594
control.
SelectedIndex
= 0;
2605
control.
SelectedIndex
= -1;
2629
control.
SelectedIndex
= 1;
2633
control.
SelectedIndex
= 0;
2637
control.
SelectedIndex
= -1;
2656
control.
SelectedIndex
= 1;
2663
control.
SelectedIndex
= 0;
2669
control.
SelectedIndex
= -1;
2698
control.
SelectedIndex
= 1;
2704
control.
SelectedIndex
= 1;
2710
control.
SelectedIndex
= 0;
2715
control.
SelectedIndex
= -1;
2721
control.
SelectedIndex
= 1;
2733
Assert.Throws<ArgumentOutOfRangeException>("value", () => control.
SelectedIndex
= value);
2743
Assert.Throws<ArgumentOutOfRangeException>("value", () => control.
SelectedIndex
= value);
2753
Assert.Throws<ArgumentException>("value", () => control.
SelectedIndex
= -1);
3427
control.
SelectedIndex
= 1;
3463
control.
SelectedIndex
= 1;
3504
control.
SelectedIndex
= 0;
3505
control.
SelectedIndex
= 1;
3546
control.
SelectedIndex
= 0;
3547
control.
SelectedIndex
= 1;
3687
control.
SelectedIndex
= 1;
3739
control.
SelectedIndex
= 1;
3796
control.
SelectedIndex
= 0;
3797
control.
SelectedIndex
= 1;
3854
control.
SelectedIndex
= 0;
3855
control.
SelectedIndex
= 1;
4217
control.
SelectedIndex
= 0;
6328
Action action = () => listBox.
SelectedIndex
= 0;
6345
Action action = () => listBox.
SelectedIndex
= 0;
System.Windows.Forms.UI.IntegrationTests (3)
DragDropTests.cs (2)
779
ListDragSource.
SelectedIndex
= _indexOfItemUnderMouseToDrag - 1;
783
ListDragSource.
SelectedIndex
= 0;
ListBoxAccesibleObjectTests.cs (1)
53
listBox.
SelectedIndex
= 0;
481 references to SelectedIndex
PresentationUI (15)
MS\Internal\Documents\CredentialManagerDialog.cs (5)
86
if (_credListBox.
SelectedIndex
>= 0)
102
if (_credListBox.
SelectedIndex
>= 0)
106
(string) _credListBox.Items[_credListBox.
SelectedIndex
]);
117
if (_credListBox.
SelectedIndex
>= 0)
121
(string)_credListBox.Items[_credListBox.
SelectedIndex
]);
MS\Internal\Documents\SignatureSummaryDialog.cs (10)
345
if (_listBoxSummary.
SelectedIndex
>= 0)
349
(SignatureResources)_listBoxSummary.Items[_listBoxSummary.
SelectedIndex
],
372
if (_listBoxSummary.
SelectedIndex
>= 0)
375
(SignatureResources)_listBoxSummary.Items[_listBoxSummary.
SelectedIndex
],
403
if (_listBoxSummary.
SelectedIndex
>= 0)
408
_listBoxSummary.Items[_listBoxSummary.
SelectedIndex
]
424
int selectedIndex = _listBoxSummary.
SelectedIndex
;
469
if (_listBoxSummary.
SelectedIndex
>= 0)
474
if (_documentSignatureManager.HasCertificate((SignatureResources)_listBoxSummary.Items[_listBoxSummary.
SelectedIndex
]))
595
_listBoxSummary.
SelectedIndex
== e.Index
System.Windows.Forms (14)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxItemAccessibleObject.cs (2)
96
if (_owningCheckedListBox.
SelectedIndex
== CurrentIndex)
101
if (_owningCheckedListBox.Focused && _owningCheckedListBox.
SelectedIndex
== -1)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (2)
411
int index =
SelectedIndex
;
827
_lastSelected =
SelectedIndex
;
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
237
int index = owner.
SelectedIndex
;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (5)
862
int currentIndex =
SelectedIndex
;
883
if (
SelectedIndex
!= -1)
1894
if (DataManager is not null && DataManager.Position !=
SelectedIndex
)
1897
if (!FormattingEnabled ||
SelectedIndex
!= -1)
1901
DataManager.Position =
SelectedIndex
;
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (2)
104
if (_owningListBox.
SelectedIndex
== CurrentIndex)
205
if (_owningListBox.
SelectedIndex
== -1) // no item selected
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
423
bool selected = (_owner.
SelectedIndex
== index);
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
45
int index = _owner.
SelectedIndex
;
System.Windows.Forms.Design (34)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (6)
176
if (_listBox.Items.Count > 0 && _listBox.
SelectedIndex
!= _listBox.Items.Count - 1)
320
int index = _listBox.
SelectedIndex
;
801
int index = _listBox.
SelectedIndex
;
848
int selectedItem = _listBox.
SelectedIndex
;
851
_listBox.RefreshItem(_listBox.
SelectedIndex
);
985
int index = _listBox.
SelectedIndex
;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
114
if (_dataBoundColumnRadioButton.Checked && _dataColumns.
SelectedIndex
> -1)
705
int selectedIndex = _dataColumns.
SelectedIndex
;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (25)
123
int selectedIndex = _selectedColumns.
SelectedIndex
;
662
int selectedIndex = _selectedColumns.
SelectedIndex
;
702
_moveUp.Enabled = _selectedColumns.
SelectedIndex
> 0;
703
_moveDown.Enabled = _selectedColumns.
SelectedIndex
< _selectedColumns.Items.Count - 1;
708
int selectedIndex = _selectedColumns.
SelectedIndex
;
746
_moveUp.Enabled = _selectedColumns.
SelectedIndex
> 0;
747
_moveDown.Enabled = _selectedColumns.
SelectedIndex
< _selectedColumns.Items.Count - 1;
752
if (_selectedColumns.
SelectedIndex
!= -1 && _selectedColumns.TopIndex > _selectedColumns.
SelectedIndex
)
754
_selectedColumns.TopIndex = _selectedColumns.
SelectedIndex
;
807
_moveUp.Enabled = _selectedColumns.
SelectedIndex
> 0;
808
_moveDown.Enabled = _selectedColumns.
SelectedIndex
< _selectedColumns.Items.Count - 1;
809
_deleteButton.Enabled = _selectedColumns.Items.Count > 0 && _selectedColumns.
SelectedIndex
!= -1;
825
Debug.Assert(_selectedColumns.
SelectedIndex
!= -1);
826
int selectedIndex = _selectedColumns.
SelectedIndex
;
836
_moveUp.Enabled = _selectedColumns.
SelectedIndex
> 0;
837
_moveDown.Enabled = _selectedColumns.
SelectedIndex
< _selectedColumns.Items.Count - 1;
838
_deleteButton.Enabled = _selectedColumns.Items.Count > 0 && _selectedColumns.
SelectedIndex
!= -1;
844
int insertIndex = _selectedColumns.
SelectedIndex
== -1 ? _selectedColumns.Items.Count : _selectedColumns.
SelectedIndex
+ 1;
860
int selectedIndex = _selectedColumns.
SelectedIndex
;
903
int selectedIndex = _selectedColumns.
SelectedIndex
;
1066
_moveDown.Enabled = _selectedColumns.Items.Count > 0 && _selectedColumns.
SelectedIndex
!= _selectedColumns.Items.Count - 1;
1067
_moveUp.Enabled = _selectedColumns.Items.Count > 0 && _selectedColumns.
SelectedIndex
> 0;
1068
_deleteButton.Enabled = _selectedColumns.Items.Count > 0 && _selectedColumns.
SelectedIndex
!= -1;
System\Windows\Forms\Design\FormatControl.cs (1)
175
int selIndex = formatTypeListBox.
SelectedIndex
;
System.Windows.Forms.Tests (418)
CheckedListBoxTests.cs (5)
510
Assert.Equal(0, checkedListBox.
SelectedIndex
);
518
Assert.Equal(0, checkedListBox.
SelectedIndex
);
526
Assert.Equal(0, checkedListBox.
SelectedIndex
);
551
Assert.Equal(0, checkedListBox.
SelectedIndex
);
560
Assert.Equal(-1, checkedListBox.
SelectedIndex
);
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (300)
685
Assert.Equal(1, owner.
SelectedIndex
);
693
Assert.Equal(1, owner.
SelectedIndex
);
701
Assert.Equal(1, owner.
SelectedIndex
);
709
Assert.Equal(1, owner.
SelectedIndex
);
734
Assert.Equal(1, owner.
SelectedIndex
);
742
Assert.Equal(1, owner.
SelectedIndex
);
750
Assert.Equal(1, owner.
SelectedIndex
);
758
Assert.Equal(1, owner.
SelectedIndex
);
787
Assert.Equal(1, owner.
SelectedIndex
);
795
Assert.Equal(1, owner.
SelectedIndex
);
803
Assert.Equal(1, owner.
SelectedIndex
);
811
Assert.Equal(1, owner.
SelectedIndex
);
819
Assert.Equal(1, owner.
SelectedIndex
);
827
Assert.Equal(1, owner.
SelectedIndex
);
857
Assert.Equal(1, owner.
SelectedIndex
);
865
Assert.Equal(1, owner.
SelectedIndex
);
873
Assert.Equal(1, owner.
SelectedIndex
);
881
Assert.Equal(1, owner.
SelectedIndex
);
889
Assert.Equal(1, owner.
SelectedIndex
);
897
Assert.Equal(1, owner.
SelectedIndex
);
931
Assert.Equal(1, owner.
SelectedIndex
);
942
Assert.Equal(1, owner.
SelectedIndex
);
953
Assert.Equal(1, owner.
SelectedIndex
);
964
Assert.Equal(1, owner.
SelectedIndex
);
1004
Assert.Equal(1, owner.
SelectedIndex
);
1015
Assert.Equal(1, owner.
SelectedIndex
);
1026
Assert.Equal(1, owner.
SelectedIndex
);
1037
Assert.Equal(1, owner.
SelectedIndex
);
1081
Assert.Equal(1, owner.
SelectedIndex
);
1092
Assert.Equal(1, owner.
SelectedIndex
);
1103
Assert.Equal(1, owner.
SelectedIndex
);
1114
Assert.Equal(1, owner.
SelectedIndex
);
1125
Assert.Equal(1, owner.
SelectedIndex
);
1136
Assert.Equal(1, owner.
SelectedIndex
);
1181
Assert.Equal(1, owner.
SelectedIndex
);
1192
Assert.Equal(1, owner.
SelectedIndex
);
1203
Assert.Equal(1, owner.
SelectedIndex
);
1214
Assert.Equal(1, owner.
SelectedIndex
);
1225
Assert.Equal(1, owner.
SelectedIndex
);
1236
Assert.Equal(1, owner.
SelectedIndex
);
1804
Assert.Equal(0, owner.
SelectedIndex
);
1812
Assert.Equal(0, owner.
SelectedIndex
);
1836
Assert.Equal(1, owner.
SelectedIndex
);
1844
Assert.Equal(1, owner.
SelectedIndex
);
1872
Assert.Equal(0, owner.
SelectedIndex
);
1880
Assert.Equal(0, owner.
SelectedIndex
);
1888
Assert.Equal(0, owner.
SelectedIndex
);
1916
Assert.Equal(1, owner.
SelectedIndex
);
1923
Assert.Equal(1, owner.
SelectedIndex
);
1930
Assert.Equal(1, owner.
SelectedIndex
);
1957
Assert.Equal(0, owner.
SelectedIndex
);
1968
Assert.Equal(0, owner.
SelectedIndex
);
2002
Assert.Equal(1, owner.
SelectedIndex
);
2013
Assert.Equal(1, owner.
SelectedIndex
);
2051
Assert.Equal(0, owner.
SelectedIndex
);
2062
Assert.Equal(0, owner.
SelectedIndex
);
2073
Assert.Equal(0, owner.
SelectedIndex
);
2111
Assert.Equal(1, owner.
SelectedIndex
);
2122
Assert.Equal(1, owner.
SelectedIndex
);
2133
Assert.Equal(1, owner.
SelectedIndex
);
2546
Assert.Equal(0, owner.
SelectedIndex
);
2554
Assert.Equal(0, owner.
SelectedIndex
);
2577
Assert.Equal(1, owner.
SelectedIndex
);
2585
Assert.Equal(1, owner.
SelectedIndex
);
2612
Assert.Equal(0, owner.
SelectedIndex
);
2620
Assert.Equal(0, owner.
SelectedIndex
);
2647
Assert.Equal(1, owner.
SelectedIndex
);
2654
Assert.Equal(1, owner.
SelectedIndex
);
2680
Assert.Equal(0, owner.
SelectedIndex
);
2691
Assert.Equal(0, owner.
SelectedIndex
);
2724
Assert.Equal(1, owner.
SelectedIndex
);
2735
Assert.Equal(1, owner.
SelectedIndex
);
2772
Assert.Equal(0, owner.
SelectedIndex
);
2783
Assert.Equal(0, owner.
SelectedIndex
);
2820
Assert.Equal(1, owner.
SelectedIndex
);
2831
Assert.Equal(1, owner.
SelectedIndex
);
3243
Assert.Equal(0, owner.
SelectedIndex
);
3253
Assert.Equal(0, owner.
SelectedIndex
);
3279
Assert.Equal(1, owner.
SelectedIndex
);
3289
Assert.Equal(1, owner.
SelectedIndex
);
3319
Assert.Equal(0, owner.
SelectedIndex
);
3329
Assert.Equal(0, owner.
SelectedIndex
);
3359
Assert.Equal(1, owner.
SelectedIndex
);
3368
Assert.Equal(1, owner.
SelectedIndex
);
3397
Assert.Equal(0, owner.
SelectedIndex
);
3410
Assert.Equal(0, owner.
SelectedIndex
);
3446
Assert.Equal(1, owner.
SelectedIndex
);
3459
Assert.Equal(1, owner.
SelectedIndex
);
3499
Assert.Equal(0, owner.
SelectedIndex
);
3512
Assert.Equal(0, owner.
SelectedIndex
);
3552
Assert.Equal(1, owner.
SelectedIndex
);
3565
Assert.Equal(1, owner.
SelectedIndex
);
4627
Assert.Equal(0, owner.
SelectedIndex
);
4635
Assert.Equal(0, owner.
SelectedIndex
);
4689
Assert.Equal(0, owner.
SelectedIndex
);
4697
Assert.Equal(0, owner.
SelectedIndex
);
4705
Assert.Equal(0, owner.
SelectedIndex
);
4731
Assert.Equal(1, owner.
SelectedIndex
);
4738
Assert.Equal(1, owner.
SelectedIndex
);
4745
Assert.Equal(1, owner.
SelectedIndex
);
4772
Assert.Equal(0, owner.
SelectedIndex
);
4783
Assert.Equal(0, owner.
SelectedIndex
);
4817
Assert.Equal(1, owner.
SelectedIndex
);
4828
Assert.Equal(1, owner.
SelectedIndex
);
4866
Assert.Equal(0, owner.
SelectedIndex
);
4877
Assert.Equal(0, owner.
SelectedIndex
);
4888
Assert.Equal(0, owner.
SelectedIndex
);
4926
Assert.Equal(1, owner.
SelectedIndex
);
4937
Assert.Equal(1, owner.
SelectedIndex
);
4948
Assert.Equal(1, owner.
SelectedIndex
);
5554
Assert.Equal(0, owner.
SelectedIndex
);
5562
Assert.Equal(0, owner.
SelectedIndex
);
5570
Assert.Equal(-1, owner.
SelectedIndex
);
5595
Assert.Equal(0, owner.
SelectedIndex
);
5603
Assert.Equal(0, owner.
SelectedIndex
);
5611
Assert.Equal(-1, owner.
SelectedIndex
);
5640
Assert.Equal(0, owner.
SelectedIndex
);
5648
Assert.Equal(0, owner.
SelectedIndex
);
5656
Assert.Equal(0, owner.
SelectedIndex
);
5664
Assert.Equal(-1, owner.
SelectedIndex
);
5692
Assert.Equal(0, owner.
SelectedIndex
);
5700
Assert.Equal(0, owner.
SelectedIndex
);
5708
Assert.Equal(0, owner.
SelectedIndex
);
5716
Assert.Equal(-1, owner.
SelectedIndex
);
5749
Assert.Equal(0, owner.
SelectedIndex
);
5760
Assert.Equal(0, owner.
SelectedIndex
);
5771
Assert.Equal(-1, owner.
SelectedIndex
);
5811
Assert.Equal(0, owner.
SelectedIndex
);
5822
Assert.Equal(0, owner.
SelectedIndex
);
5833
Assert.Equal(-1, owner.
SelectedIndex
);
5872
Assert.Equal(0, owner.
SelectedIndex
);
5882
Assert.Equal(0, owner.
SelectedIndex
);
5892
Assert.Equal(0, owner.
SelectedIndex
);
5902
Assert.Equal(-1, owner.
SelectedIndex
);
5940
Assert.Equal(0, owner.
SelectedIndex
);
5950
Assert.Equal(0, owner.
SelectedIndex
);
5960
Assert.Equal(0, owner.
SelectedIndex
);
5970
Assert.Equal(-1, owner.
SelectedIndex
);
6409
Assert.Equal(0, owner.
SelectedIndex
);
6417
Assert.Equal(0, owner.
SelectedIndex
);
6425
Assert.Equal(-1, owner.
SelectedIndex
);
6450
Assert.Equal(0, owner.
SelectedIndex
);
6458
Assert.Equal(0, owner.
SelectedIndex
);
6466
Assert.Equal(-1, owner.
SelectedIndex
);
6495
Assert.Equal(0, owner.
SelectedIndex
);
6503
Assert.Equal(0, owner.
SelectedIndex
);
6511
Assert.Equal(0, owner.
SelectedIndex
);
6519
Assert.Equal(-1, owner.
SelectedIndex
);
6547
Assert.Equal(0, owner.
SelectedIndex
);
6555
Assert.Equal(0, owner.
SelectedIndex
);
6563
Assert.Equal(0, owner.
SelectedIndex
);
6571
Assert.Equal(-1, owner.
SelectedIndex
);
6604
Assert.Equal(0, owner.
SelectedIndex
);
6615
Assert.Equal(0, owner.
SelectedIndex
);
6626
Assert.Equal(-1, owner.
SelectedIndex
);
6666
Assert.Equal(0, owner.
SelectedIndex
);
6677
Assert.Equal(0, owner.
SelectedIndex
);
6688
Assert.Equal(-1, owner.
SelectedIndex
);
6727
Assert.Equal(0, owner.
SelectedIndex
);
6737
Assert.Equal(0, owner.
SelectedIndex
);
6747
Assert.Equal(0, owner.
SelectedIndex
);
6757
Assert.Equal(-1, owner.
SelectedIndex
);
6795
Assert.Equal(0, owner.
SelectedIndex
);
6805
Assert.Equal(0, owner.
SelectedIndex
);
6815
Assert.Equal(0, owner.
SelectedIndex
);
6825
Assert.Equal(-1, owner.
SelectedIndex
);
7490
Assert.Equal(1, owner.
SelectedIndex
);
7498
Assert.Equal(1, owner.
SelectedIndex
);
7506
Assert.Equal(1, owner.
SelectedIndex
);
7514
Assert.Equal(1, owner.
SelectedIndex
);
7539
Assert.Equal(1, owner.
SelectedIndex
);
7547
Assert.Equal(1, owner.
SelectedIndex
);
7555
Assert.Equal(1, owner.
SelectedIndex
);
7563
Assert.Equal(1, owner.
SelectedIndex
);
7592
Assert.Equal(1, owner.
SelectedIndex
);
7600
Assert.Equal(1, owner.
SelectedIndex
);
7608
Assert.Equal(1, owner.
SelectedIndex
);
7616
Assert.Equal(1, owner.
SelectedIndex
);
7624
Assert.Equal(1, owner.
SelectedIndex
);
7632
Assert.Equal(1, owner.
SelectedIndex
);
7662
Assert.Equal(1, owner.
SelectedIndex
);
7670
Assert.Equal(1, owner.
SelectedIndex
);
7678
Assert.Equal(1, owner.
SelectedIndex
);
7686
Assert.Equal(1, owner.
SelectedIndex
);
7694
Assert.Equal(1, owner.
SelectedIndex
);
7702
Assert.Equal(1, owner.
SelectedIndex
);
7736
Assert.Equal(1, owner.
SelectedIndex
);
7747
Assert.Equal(1, owner.
SelectedIndex
);
7758
Assert.Equal(1, owner.
SelectedIndex
);
7769
Assert.Equal(1, owner.
SelectedIndex
);
7809
Assert.Equal(1, owner.
SelectedIndex
);
7820
Assert.Equal(1, owner.
SelectedIndex
);
7831
Assert.Equal(1, owner.
SelectedIndex
);
7842
Assert.Equal(1, owner.
SelectedIndex
);
7886
Assert.Equal(1, owner.
SelectedIndex
);
7897
Assert.Equal(1, owner.
SelectedIndex
);
7908
Assert.Equal(1, owner.
SelectedIndex
);
7919
Assert.Equal(1, owner.
SelectedIndex
);
7930
Assert.Equal(1, owner.
SelectedIndex
);
7941
Assert.Equal(1, owner.
SelectedIndex
);
7986
Assert.Equal(1, owner.
SelectedIndex
);
7997
Assert.Equal(1, owner.
SelectedIndex
);
8008
Assert.Equal(1, owner.
SelectedIndex
);
8019
Assert.Equal(1, owner.
SelectedIndex
);
8030
Assert.Equal(1, owner.
SelectedIndex
);
8041
Assert.Equal(1, owner.
SelectedIndex
);
8609
Assert.Equal(0, owner.
SelectedIndex
);
8617
Assert.Equal(0, owner.
SelectedIndex
);
8641
Assert.Equal(1, owner.
SelectedIndex
);
8649
Assert.Equal(1, owner.
SelectedIndex
);
8677
Assert.Equal(0, owner.
SelectedIndex
);
8685
Assert.Equal(0, owner.
SelectedIndex
);
8693
Assert.Equal(0, owner.
SelectedIndex
);
8721
Assert.Equal(1, owner.
SelectedIndex
);
8728
Assert.Equal(1, owner.
SelectedIndex
);
8735
Assert.Equal(1, owner.
SelectedIndex
);
8762
Assert.Equal(0, owner.
SelectedIndex
);
8773
Assert.Equal(0, owner.
SelectedIndex
);
8807
Assert.Equal(1, owner.
SelectedIndex
);
8818
Assert.Equal(1, owner.
SelectedIndex
);
8856
Assert.Equal(0, owner.
SelectedIndex
);
8867
Assert.Equal(0, owner.
SelectedIndex
);
8878
Assert.Equal(0, owner.
SelectedIndex
);
8916
Assert.Equal(1, owner.
SelectedIndex
);
8927
Assert.Equal(1, owner.
SelectedIndex
);
8938
Assert.Equal(1, owner.
SelectedIndex
);
9949
Assert.Equal(0, owner.
SelectedIndex
);
9957
Assert.Equal(0, owner.
SelectedIndex
);
10011
Assert.Equal(0, owner.
SelectedIndex
);
10019
Assert.Equal(0, owner.
SelectedIndex
);
10027
Assert.Equal(0, owner.
SelectedIndex
);
10053
Assert.Equal(1, owner.
SelectedIndex
);
10060
Assert.Equal(1, owner.
SelectedIndex
);
10067
Assert.Equal(1, owner.
SelectedIndex
);
10094
Assert.Equal(0, owner.
SelectedIndex
);
10105
Assert.Equal(0, owner.
SelectedIndex
);
10139
Assert.Equal(1, owner.
SelectedIndex
);
10150
Assert.Equal(1, owner.
SelectedIndex
);
10188
Assert.Equal(0, owner.
SelectedIndex
);
10199
Assert.Equal(0, owner.
SelectedIndex
);
10210
Assert.Equal(0, owner.
SelectedIndex
);
10248
Assert.Equal(1, owner.
SelectedIndex
);
10259
Assert.Equal(1, owner.
SelectedIndex
);
10270
Assert.Equal(1, owner.
SelectedIndex
);
10876
Assert.Equal(0, owner.
SelectedIndex
);
10884
Assert.Equal(0, owner.
SelectedIndex
);
10892
Assert.Equal(-1, owner.
SelectedIndex
);
10917
Assert.Equal(0, owner.
SelectedIndex
);
10925
Assert.Equal(0, owner.
SelectedIndex
);
10933
Assert.Equal(-1, owner.
SelectedIndex
);
10962
Assert.Equal(0, owner.
SelectedIndex
);
10970
Assert.Equal(0, owner.
SelectedIndex
);
10978
Assert.Equal(0, owner.
SelectedIndex
);
10986
Assert.Equal(-1, owner.
SelectedIndex
);
11014
Assert.Equal(0, owner.
SelectedIndex
);
11022
Assert.Equal(0, owner.
SelectedIndex
);
11030
Assert.Equal(0, owner.
SelectedIndex
);
11038
Assert.Equal(-1, owner.
SelectedIndex
);
11071
Assert.Equal(0, owner.
SelectedIndex
);
11082
Assert.Equal(0, owner.
SelectedIndex
);
11093
Assert.Equal(-1, owner.
SelectedIndex
);
11133
Assert.Equal(0, owner.
SelectedIndex
);
11144
Assert.Equal(0, owner.
SelectedIndex
);
11155
Assert.Equal(-1, owner.
SelectedIndex
);
11194
Assert.Equal(0, owner.
SelectedIndex
);
11204
Assert.Equal(0, owner.
SelectedIndex
);
11214
Assert.Equal(0, owner.
SelectedIndex
);
11224
Assert.Equal(-1, owner.
SelectedIndex
);
11262
Assert.Equal(0, owner.
SelectedIndex
);
11272
Assert.Equal(0, owner.
SelectedIndex
);
11282
Assert.Equal(0, owner.
SelectedIndex
);
11292
Assert.Equal(-1, owner.
SelectedIndex
);
11731
Assert.Equal(0, owner.
SelectedIndex
);
11739
Assert.Equal(0, owner.
SelectedIndex
);
11747
Assert.Equal(-1, owner.
SelectedIndex
);
11772
Assert.Equal(0, owner.
SelectedIndex
);
11780
Assert.Equal(0, owner.
SelectedIndex
);
11788
Assert.Equal(-1, owner.
SelectedIndex
);
11817
Assert.Equal(0, owner.
SelectedIndex
);
11825
Assert.Equal(0, owner.
SelectedIndex
);
11833
Assert.Equal(0, owner.
SelectedIndex
);
11841
Assert.Equal(-1, owner.
SelectedIndex
);
11869
Assert.Equal(0, owner.
SelectedIndex
);
11877
Assert.Equal(0, owner.
SelectedIndex
);
11885
Assert.Equal(0, owner.
SelectedIndex
);
11893
Assert.Equal(-1, owner.
SelectedIndex
);
11926
Assert.Equal(0, owner.
SelectedIndex
);
11937
Assert.Equal(0, owner.
SelectedIndex
);
11948
Assert.Equal(-1, owner.
SelectedIndex
);
11988
Assert.Equal(0, owner.
SelectedIndex
);
11999
Assert.Equal(0, owner.
SelectedIndex
);
12010
Assert.Equal(-1, owner.
SelectedIndex
);
12049
Assert.Equal(0, owner.
SelectedIndex
);
12059
Assert.Equal(0, owner.
SelectedIndex
);
12069
Assert.Equal(0, owner.
SelectedIndex
);
12079
Assert.Equal(-1, owner.
SelectedIndex
);
12117
Assert.Equal(0, owner.
SelectedIndex
);
12127
Assert.Equal(0, owner.
SelectedIndex
);
12137
Assert.Equal(0, owner.
SelectedIndex
);
12147
Assert.Equal(-1, owner.
SelectedIndex
);
System\Windows\Forms\ListBoxTests.cs (113)
109
Assert.Equal(-1, control.
SelectedIndex
);
2303
Assert.Equal(-1, control.
SelectedIndex
);
2317
Assert.Equal(-1, control.
SelectedIndex
);
2331
Assert.Equal(-1, control.
SelectedIndex
);
2339
Assert.Equal(-1, control.
SelectedIndex
);
2359
Assert.Equal(1, control.
SelectedIndex
);
2367
Assert.Equal(1, control.
SelectedIndex
);
2375
Assert.Equal(0, control.
SelectedIndex
);
2382
Assert.Equal(-1, control.
SelectedIndex
);
2404
Assert.Equal(1, control.
SelectedIndex
);
2412
Assert.Equal(1, control.
SelectedIndex
);
2420
Assert.Equal(0, control.
SelectedIndex
);
2428
Assert.Equal(-1, control.
SelectedIndex
);
2454
Assert.Equal(1, control.
SelectedIndex
);
2463
Assert.Equal(1, control.
SelectedIndex
);
2472
Assert.Equal(0, control.
SelectedIndex
);
2481
Assert.Equal(-1, control.
SelectedIndex
);
2509
Assert.Equal(1, control.
SelectedIndex
);
2520
Assert.Equal(1, control.
SelectedIndex
);
2531
Assert.Equal(0, control.
SelectedIndex
);
2541
Assert.Equal(-1, control.
SelectedIndex
);
2573
Assert.Equal(1, control.
SelectedIndex
);
2584
Assert.Equal(1, control.
SelectedIndex
);
2595
Assert.Equal(0, control.
SelectedIndex
);
2606
Assert.Equal(-1, control.
SelectedIndex
);
2699
Assert.Equal(1, control.
SelectedIndex
);
2705
Assert.Equal(1, control.
SelectedIndex
);
2711
Assert.Equal(0, control.
SelectedIndex
);
2716
Assert.Equal(-1, control.
SelectedIndex
);
2722
Assert.Equal(1, control.
SelectedIndex
);
2797
Assert.Equal(-1, control.
SelectedIndex
);
2805
Assert.Equal(-1, control.
SelectedIndex
);
2825
Assert.Equal(1, control.
SelectedIndex
);
2833
Assert.Equal(1, control.
SelectedIndex
);
2841
Assert.Equal(1, control.
SelectedIndex
);
2849
Assert.Equal(0, control.
SelectedIndex
);
2856
Assert.Equal(-1, control.
SelectedIndex
);
2878
Assert.Equal(1, control.
SelectedIndex
);
2886
Assert.Equal(1, control.
SelectedIndex
);
2894
Assert.Equal(1, control.
SelectedIndex
);
2902
Assert.Equal(0, control.
SelectedIndex
);
2910
Assert.Equal(-1, control.
SelectedIndex
);
2936
Assert.Equal(1, control.
SelectedIndex
);
2945
Assert.Equal(1, control.
SelectedIndex
);
2954
Assert.Equal(1, control.
SelectedIndex
);
2963
Assert.Equal(0, control.
SelectedIndex
);
2972
Assert.Equal(-1, control.
SelectedIndex
);
3000
Assert.Equal(1, control.
SelectedIndex
);
3011
Assert.Equal(1, control.
SelectedIndex
);
3022
Assert.Equal(1, control.
SelectedIndex
);
3033
Assert.Equal(0, control.
SelectedIndex
);
3043
Assert.Equal(-1, control.
SelectedIndex
);
3075
Assert.Equal(1, control.
SelectedIndex
);
3086
Assert.Equal(1, control.
SelectedIndex
);
3097
Assert.Equal(1, control.
SelectedIndex
);
3108
Assert.Equal(0, control.
SelectedIndex
);
3119
Assert.Equal(-1, control.
SelectedIndex
);
3223
Assert.Equal(1, control.
SelectedIndex
);
3229
Assert.Equal(1, control.
SelectedIndex
);
3235
Assert.Equal(1, control.
SelectedIndex
);
3241
Assert.Equal(0, control.
SelectedIndex
);
3246
Assert.Equal(-1, control.
SelectedIndex
);
3252
Assert.Equal(1, control.
SelectedIndex
);
3364
Assert.Equal(-1, control.
SelectedIndex
);
3373
Assert.Equal(-1, control.
SelectedIndex
);
3402
Assert.Equal(-1, control.
SelectedIndex
);
3411
Assert.Equal(-1, control.
SelectedIndex
);
3431
Assert.Equal(1, control.
SelectedIndex
);
3440
Assert.Equal(1, control.
SelectedIndex
);
3449
Assert.Equal(1, control.
SelectedIndex
);
3467
Assert.Equal(-1, control.
SelectedIndex
);
3476
Assert.Equal(-1, control.
SelectedIndex
);
3485
Assert.Equal(1, control.
SelectedIndex
);
3509
Assert.Equal(0, control.
SelectedIndex
);
3518
Assert.Equal(0, control.
SelectedIndex
);
3527
Assert.Equal(0, control.
SelectedIndex
);
3551
Assert.Equal(-1, control.
SelectedIndex
);
3560
Assert.Equal(-1, control.
SelectedIndex
);
3569
Assert.Equal(0, control.
SelectedIndex
);
3594
Assert.Equal(-1, control.
SelectedIndex
);
3605
Assert.Equal(-1, control.
SelectedIndex
);
3656
Assert.Equal(-1, control.
SelectedIndex
);
3668
Assert.Equal(-1, control.
SelectedIndex
);
3698
Assert.Equal(1, control.
SelectedIndex
);
3710
Assert.Equal(1, control.
SelectedIndex
);
3722
Assert.Equal(1, control.
SelectedIndex
);
3750
Assert.Equal(-1, control.
SelectedIndex
);
3762
Assert.Equal(-1, control.
SelectedIndex
);
3774
Assert.Equal(-1, control.
SelectedIndex
);
3808
Assert.Equal(1, control.
SelectedIndex
);
3820
Assert.Equal(1, control.
SelectedIndex
);
3832
Assert.Equal(1, control.
SelectedIndex
);
3866
Assert.Equal(-1, control.
SelectedIndex
);
3878
Assert.Equal(-1, control.
SelectedIndex
);
3890
Assert.Equal(-1, control.
SelectedIndex
);
4122
Assert.Equal(-1, control.
SelectedIndex
);
4128
Assert.Equal(-1, control.
SelectedIndex
);
4170
Assert.Equal(expectedSelectedIndex, control.
SelectedIndex
);
4176
Assert.Equal(expectedSelectedIndex, control.
SelectedIndex
);
4222
Assert.Equal(expectedSelectedIndex, control.
SelectedIndex
);
4228
Assert.Equal(expectedSelectedIndex, control.
SelectedIndex
);
4247
Assert.Equal(-1, control.
SelectedIndex
);
4256
Assert.Equal(-1, control.
SelectedIndex
);
6126
Assert.Equal(0, listBox.
SelectedIndex
);
6134
Assert.Equal(0, listBox.
SelectedIndex
);
6142
Assert.Equal(0, listBox.
SelectedIndex
);
6168
Assert.Equal(0, listBox.
SelectedIndex
);
6176
Assert.Equal(0, listBox.
SelectedIndex
);
6184
Assert.Equal(0, listBox.
SelectedIndex
);
6209
Assert.Equal(0, listBox.
SelectedIndex
);
6218
Assert.Equal(-1, listBox.
SelectedIndex
);
6245
Assert.Equal(0, listBox.
SelectedIndex
);
6255
Assert.Equal(-1, listBox.
SelectedIndex
);