32 writes to Selected
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (2)
276
_owner.Items[itemIndex].
Selected
= true;
331
_owner.Items[itemIndex].
Selected
= false;
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (1)
275
items[i].
Selected
= false;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
468
_listViewCannedMasks.Items[maskDexIndex].
Selected
= true;
System.Windows.Forms.Tests (27)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (6)
935
listView.Items[0].
Selected
= true;
936
listView.Items[1].
Selected
= true;
937
listView.Items[3].
Selected
= true;
1036
listView.Items[0].
Selected
= true;
1037
listView.Items[1].
Selected
= true;
1038
listView.Items[3].
Selected
= true;
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (4)
750
listViewGroup.Items[0].
Selected
= true;
820
item1.
Selected
= true;
821
item2.
Selected
= true;
822
item3.
Selected
= true;
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (2)
657
listView.Items[0].
Selected
= selected;
719
listView.Items[0].
Selected
= true;
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemBaseAccessibleObjectTests.cs (1)
70
ListViewItem item = new() {
Selected
= isSelected };
System\Windows\Forms\ListViewTests.cs (14)
4341
listView.Items[0].
Selected
= selected;
4404
listView.Items[0].
Selected
= selected;
4517
item1.
Selected
= selectItems;
4518
item2.
Selected
= selectItems;
4591
item2.
Selected
= true;
4625
0 => new ListViewItem(group) {
Selected
= true },
4742
listView.Items[0].
Selected
= true;
5354
listViewItem.
Selected
= true;
5444
listView.Items[0].
Selected
= true;
5480
listView.Items[0].
Selected
= true;
5530
listView.Items[0].
Selected
= true;
5565
item.
Selected
= true;
5655
listView.Items[0].
Selected
= true;
5697
item.
Selected
= true;
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
62
item1.
Selected
= true;
59 references to Selected
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
5835
if (!clickedItem.
Selected
)
6960
HitTest(PARAM.ToPoint(m.LParamInternal)) is { SubItem.Index: > 0, Item.
Selected
: true };
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (1)
175
return _owner.Items[selectedIndex].
Selected
;
System.Windows.Forms.Tests (36)
System\Windows\Forms\ListViewItemTests.cs (22)
31
Assert.False(item.
Selected
);
70
Assert.False(item.
Selected
);
108
Assert.False(item.
Selected
);
146
Assert.False(item.
Selected
);
184
Assert.False(item.
Selected
);
221
Assert.False(item.
Selected
);
258
Assert.False(item.
Selected
);
296
Assert.False(item.
Selected
);
334
Assert.False(item.
Selected
);
371
Assert.False(item.
Selected
);
409
Assert.False(item.
Selected
);
447
Assert.False(item.
Selected
);
484
Assert.False(item.
Selected
);
522
Assert.False(item.
Selected
);
560
Assert.False(item.
Selected
);
598
Assert.False(item.
Selected
);
635
Assert.False(item.
Selected
);
673
Assert.False(item.
Selected
);
711
Assert.False(item.
Selected
);
748
Assert.False(item.
Selected
);
787
Assert.False(item.
Selected
);
817
Assert.False(item.
Selected
);
System\Windows\Forms\ListViewTests.cs (14)
5532
Assert.True(listView.Items[0].
Selected
);
5539
Assert.True(listView.Items[0].
Selected
);
5543
Assert.True(listView.Items[0].
Selected
);
5547
Assert.True(listView.Items[0].
Selected
);
5551
Assert.True(listView.Items[0].
Selected
);
5567
Assert.True(item.
Selected
);
5576
Assert.True(item.
Selected
);
5657
Assert.True(listView.Items[0].
Selected
);
5665
Assert.True(listView.Items[0].
Selected
);
5670
Assert.True(listView.Items[0].
Selected
);
5674
Assert.True(listView.Items[0].
Selected
);
5679
Assert.True(listView.Items[0].
Selected
);
5700
Assert.True(item.
Selected
);
5710
Assert.True(item.
Selected
);
System.Windows.Forms.UI.IntegrationTests (20)
ListViewTests.cs (20)
65
Assert.False(item1.
Selected
);
66
Assert.True(item2.
Selected
);
67
Assert.False(item3.
Selected
);
71
Assert.False(item1.
Selected
);
72
Assert.False(item2.
Selected
);
73
Assert.True(item3.
Selected
);
77
Assert.False(item1.
Selected
);
78
Assert.False(item2.
Selected
);
79
Assert.True(item3.
Selected
);
83
Assert.True(item1.
Selected
);
84
Assert.False(item2.
Selected
);
85
Assert.False(item3.
Selected
);
89
Assert.True(item1.
Selected
);
90
Assert.False(item2.
Selected
);
91
Assert.False(item3.
Selected
);
96
Assert.True(item2.
Selected
);
97
Assert.True(item2.
Selected
);
98
Assert.True(item2.
Selected
);
491
Assert.False(item.
Selected
);
510
Assert.True(item.
Selected
);