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