31 writes to Checked
System.Windows.Forms (8)
System\Windows\Forms\Controls\ListView\ListView.cs (5)
480item.Checked = true; 544item.Checked = true; 5850item.Checked = check; 5876clickedItem.Checked = !clickedItem.Checked; 6727item.Checked = check;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
920newItem.Checked = Checked; 1218Checked = info.GetBoolean(nameof(Checked));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
301internal override void Toggle() => _owningItem.Checked = !_owningItem.Checked;
System.Windows.Forms.Tests (17)
SerializableTypesTests.cs (1)
168Checked = true
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (2)
903listViewItem.Checked = true; 907listViewItem.Checked = false;
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemBaseAccessibleObjectTests.cs (4)
288item.Checked = itemIsChecked; 320Checked = itemIsChecked 363ListViewItem item = new() { Checked = isChecked }; 376ListViewItem item = new() { Checked = isChecked };
System\Windows\Forms\ListViewTests.cs (10)
872Checked = true 1045Checked = true 4436clone.Checked = true; 4516item1.Checked = checkItem; 4663item1.Checked = checkedItem; 4664item2.Checked = false; 5592listView.Items[0].Checked = true; 5625item.Checked = true; 5730listView.Items[0].Checked = true; 5770item.Checked = true;
WinFormsControlsTest (6)
ListViewTest.cs (4)
85Checked = true 97Checked = true 215clone.Checked = true; 257Checked = true
MultipleControls.cs (2)
47Checked = true 59Checked = true
77 references to Checked
System.Windows.Forms (25)
System\Windows\Forms\Controls\ListView\ListView.CheckedIndexCollection.cs (4)
39if (item is not null && item.Checked) 57if (_owner.Items[i].Checked) 83if (item.Checked) 145if (_owner.Items[checkedIndex].Checked)
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (2)
52if (_owner.Items[i].Checked) 166if (item?.ListView == _owner && item.Checked)
System\Windows\Forms\Controls\ListView\ListView.cs (6)
4652if (Items[i].Checked) 4757ToggleState oldValue = item.Checked ? ToggleState.ToggleState_Off : ToggleState.ToggleState_On; 4758ToggleState newValue = item.Checked ? ToggleState.ToggleState_On : ToggleState.ToggleState_Off; 5840bool check = !clickedItem.Checked; 5876clickedItem.Checked = !clickedItem.Checked; 6722bool check = !focusedItem.Checked;
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (4)
110bool valueChecked = value.Checked; 152checkedValues[i] = values[i].Checked; 351if (_owner.IsHandleCreated && !_owner.CheckBoxes && item.Checked) 407if (_owner.IsHandleCreated && !_owner.CheckBoxes && this[index].Checked)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (6)
329if (Checked != value) 920newItem.Checked = Checked; 1216else if (entry.Name == nameof(Checked)) 1218Checked = info.GetBoolean(nameof(Checked)); 1283info.AddValue(nameof(Checked), Checked);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (3)
105return _owningItem.Checked 228=> _owningItem.Checked 301internal override void Toggle() => _owningItem.Checked = !_owningItem.Checked;
System.Windows.Forms.Tests (51)
SerializableTypesTests.cs (1)
190Assert.True(result.Checked);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (3)
937Assert.False(listViewItem.Checked); 942Assert.True(listViewItem.Checked); 948Assert.False(listViewItem.Checked);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemBaseAccessibleObjectTests.cs (1)
293Assert.Equal(!itemIsChecked, item.Checked);
System\Windows\Forms\ListViewItemTests.cs (22)
18Assert.False(item.Checked); 57Assert.False(item.Checked); 95Assert.False(item.Checked); 133Assert.False(item.Checked); 171Assert.False(item.Checked); 208Assert.False(item.Checked); 245Assert.False(item.Checked); 283Assert.False(item.Checked); 321Assert.False(item.Checked); 358Assert.False(item.Checked); 396Assert.False(item.Checked); 434Assert.False(item.Checked); 471Assert.False(item.Checked); 509Assert.False(item.Checked); 547Assert.False(item.Checked); 585Assert.False(item.Checked); 622Assert.False(item.Checked); 660Assert.False(item.Checked); 698Assert.False(item.Checked); 735Assert.False(item.Checked); 774Assert.False(item.Checked); 804Assert.False(item.Checked);
System\Windows\Forms\ListViewTests.cs (24)
882Assert.True(item1.Checked); 883Assert.False(item2.Checked); 889Assert.True(item1.Checked); 890Assert.False(item2.Checked); 896Assert.True(item1.Checked); 897Assert.False(item2.Checked); 1056Assert.True(item1.Checked); 1057Assert.False(item2.Checked); 1063Assert.True(item1.Checked); 1064Assert.False(item2.Checked); 1070Assert.True(item1.Checked); 1071Assert.False(item2.Checked); 4523Assert.Equal(!checkItem && selectItems && focusItem, item2.Checked); 4669Assert.False(item2.Checked); 5594Assert.True(listView.Items[0].Checked); 5601Assert.True(listView.Items[0].Checked); 5608Assert.True(listView.Items[0].Checked); 5627Assert.True(item.Checked); 5636Assert.True(item.Checked); 5732Assert.True(listView.Items[0].Checked); 5740Assert.True(listView.Items[0].Checked); 5748Assert.True(listView.Items[0].Checked); 5773Assert.True(item.Checked); 5783Assert.True(item.Checked);
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
38Assert.Equal(listView.Items[0].Checked, expected);