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