137 references to Unchecked
System.Windows.Forms (73)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (3)
36
PaintDown(e, CheckState.
Unchecked
);
40
PaintOver(e, CheckState.
Unchecked
);
44
PaintUp(e, CheckState.
Unchecked
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (5)
28
|| (SystemInformation.HighContrast ? state != CheckState.Indeterminate : state == CheckState.
Unchecked
),
121
|| (SystemInformation.HighContrast ? state != CheckState.Indeterminate : state == CheckState.
Unchecked
),
143
case CheckState.
Unchecked
:
214
up: !Control.FlatAppearance.CheckedBackColor.IsEmpty || state == CheckState.
Unchecked
,
281
else if (state == CheckState.
Unchecked
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (3)
16
LayoutData layout = PaintPopupLayout(state == CheckState.
Unchecked
, 1).Layout();
49
if (state == CheckState.
Unchecked
)
62
LayoutData layout = PaintPopupLayout(state == CheckState.
Unchecked
, SystemInformation.HighContrast ? 2 : 1).Layout();
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
108
up = up && state == CheckState.
Unchecked
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
236
if (Control.CheckState == CheckState.
Unchecked
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (3)
19
adapter.PaintDown(e, Control.Checked ? CheckState.Checked : CheckState.
Unchecked
);
39
adapter.PaintOver(e, Control.Checked ? CheckState.Checked : CheckState.
Unchecked
);
59
adapter.PaintUp(e, Control.Checked ? CheckState.Checked : CheckState.
Unchecked
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (3)
17
adapter.PaintUp(e, Control.Checked ? CheckState.Checked : CheckState.
Unchecked
);
46
adapter.PaintOver(e, Control.Checked ? CheckState.Checked : CheckState.
Unchecked
);
71
adapter.PaintDown(e, Control.Checked ? CheckState.Checked : CheckState.
Unchecked
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonStandardAdapter.cs (3)
14
ButtonAdapter.PaintUp(e, Control.Checked ? CheckState.Checked : CheckState.
Unchecked
);
33
ButtonAdapter.PaintDown(e, Control.Checked ? CheckState.Checked : CheckState.
Unchecked
);
45
ButtonAdapter.PaintOver(e, Control.Checked ? CheckState.Checked : CheckState.
Unchecked
);
System\Windows\Forms\Controls\Buttons\CheckBox.CheckBoxAccessibleObject.cs (3)
36
CheckState.
Unchecked
=> ToggleState.ToggleState_Off,
83
CheckState.
Unchecked
=> CheckState.Checked,
85
_ => CheckState.
Unchecked
System\Windows\Forms\Controls\Buttons\CheckBox.cs (6)
151
get => _checkState != CheckState.
Unchecked
;
156
CheckState = value ? CheckState.Checked : CheckState.
Unchecked
;
166
[DefaultValue(CheckState.
Unchecked
)]
439
case CheckState.
Unchecked
:
456
CheckState = CheckState.
Unchecked
;
461
CheckState = CheckState.
Unchecked
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (15)
157
return CheckState.
Unchecked
;
355
return CheckState.
Unchecked
;
567
CheckState.
Unchecked
=> CheckState.
Unchecked
,
585
value = CheckState.
Unchecked
;
620
else if (retCheckState == CheckState.
Unchecked
)
957
CheckState.
Unchecked
=> string.Format(SR.DataGridViewCheckBoxCellUncheckedStateDescription, cellName),
1081
bs = (checkState == CheckState.
Unchecked
) ? ButtonState.Normal : ButtonState.Checked;
1093
checkState = CheckState.
Unchecked
;
1101
checkState = CheckState.
Unchecked
;
1333
if (checkState != CheckState.
Unchecked
)
1598
return CheckState.
Unchecked
;
1621
case CheckState.
Unchecked
:
1632
return CheckState.
Unchecked
;
1675
editingCell.EditingCellFormattedValue = CheckState.
Unchecked
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject.cs (2)
66
switchToCheckedState = checkState == CheckState.
Unchecked
;
161
CheckState.
Unchecked
=> ToggleState.ToggleState_Off,
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (1)
163
return CheckState.
Unchecked
;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxItemAccessibleObject.cs (1)
90
case CheckState.
Unchecked
:
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (4)
382
public bool GetItemChecked(int index) => GetItemCheckState(index) != CheckState.
Unchecked
;
429
CheckState newValue = (currentValue != CheckState.
Unchecked
)
430
? CheckState.
Unchecked
883
SetItemCheckState(index, value ? CheckState.Checked : CheckState.
Unchecked
);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.ObjectCollection.cs (1)
23
return Add(item, isChecked ? CheckState.Checked : CheckState.
Unchecked
);
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (6)
13
private CheckState _checkState = CheckState.
Unchecked
;
14
private CheckState _prevCheckState = CheckState.
Unchecked
;
76
get => _checkState != CheckState.
Unchecked
;
81
CheckState = value ? CheckState.Checked : CheckState.
Unchecked
;
91
[DefaultValue(CheckState.
Unchecked
)]
98
if (value is < CheckState.
Unchecked
or > CheckState.Indeterminate)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.ToolStripButtonAccessibleObject.cs (1)
94
CheckState.
Unchecked
=> ToggleState.ToggleState_Off,
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (6)
255
get => CheckState != CheckState.
Unchecked
;
260
CheckState = value ? CheckState.Checked : CheckState.
Unchecked
;
297
[DefaultValue(CheckState.
Unchecked
)]
302
get => Properties.GetValueOrDefault(s_propCheckState, CheckState.
Unchecked
);
310
Properties.AddOrRemoveValue(s_propCheckState, value, defaultValue: CheckState.
Unchecked
);
977
if (CheckState != CheckState.
Unchecked
&& menuItemInternalLayout.PaintCheck)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemAccessibleObject.cs (1)
145
CheckState.
Unchecked
=> ToggleState.ToggleState_Off,
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
349
if (item is not null && item.CheckState == CheckState.
Unchecked
)
749
if (item is not null && item.CheckState != CheckState.
Unchecked
)
System\Windows\Forms\Internal\Formatter.cs (2)
175
return ((bool)value) ? CheckState.Checked : CheckState.
Unchecked
;
185
: CheckState.
Unchecked
;
System.Windows.Forms.Tests (61)
CheckedListBoxTests.cs (2)
392
[InlineData(false, CheckState.
Unchecked
)]
746
ItemCheckEventArgs eventArgs = new(0, CheckState.Checked, CheckState.
Unchecked
);
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (8)
114
[InlineData(true, CheckState.
Unchecked
, (int)ToggleState.ToggleState_Off)]
117
[InlineData(false, CheckState.
Unchecked
, (int)ToggleState.ToggleState_Off)]
138
yield return new object[] { true, false, CheckState.
Unchecked
, (int)ToggleState.ToggleState_On };
142
yield return new object[] { true, true, CheckState.
Unchecked
, (int)ToggleState.ToggleState_On };
146
yield return new object[] { false, true, CheckState.
Unchecked
, (int)ToggleState.ToggleState_Off };
150
yield return new object[] { false, false, CheckState.
Unchecked
, (int)ToggleState.ToggleState_Off };
263
Assert.Equal(CheckState.
Unchecked
, checkBox.CheckState);
274
Assert.Equal(CheckState.
Unchecked
, checkBox.CheckState);
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (2)
256
[InlineData(false, CheckState.
Unchecked
, (int)ToggleState.ToggleState_Off)]
348
? (isChecked.Value ? CheckState.Checked : CheckState.
Unchecked
)
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (1)
285
dataGridView.Rows.Add(CheckState.
Unchecked
);
System\Windows\Forms\AccessibleObjects\ToolStripButton.ToolStripButtonAccessibleObjectTests.cs (3)
126
[InlineData(true, CheckState.
Unchecked
, true)]
129
[InlineData(false, CheckState.
Unchecked
, false)]
159
[InlineData(CheckState.
Unchecked
, (int)ToggleState.ToggleState_Off)]
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (3)
199
[InlineData(true, CheckState.
Unchecked
, true)]
202
[InlineData(false, CheckState.
Unchecked
, false)]
219
[InlineData(CheckState.
Unchecked
, (int)ToggleState.ToggleState_Off)]
System\Windows\Forms\CheckBoxTests.cs (10)
44
Assert.Equal(CheckState.
Unchecked
, control.CheckState);
210
[InlineData(false, CheckState.
Unchecked
)]
223
[InlineData(true, CheckState.
Unchecked
, true, CheckState.Checked)]
224
[InlineData(true, CheckState.Indeterminate, false, CheckState.
Unchecked
)]
225
[InlineData(false, CheckState.Checked, false, CheckState.
Unchecked
)]
226
[InlineData(false, CheckState.
Unchecked
, true, CheckState.Checked)]
227
[InlineData(false, CheckState.Indeterminate, false, CheckState.
Unchecked
)]
245
[InlineData(true, CheckState.
Unchecked
, false)]
248
[InlineData(false, CheckState.
Unchecked
, false)]
769
checkBox.CheckState = checkBox.CheckState == CheckState.Checked ? CheckState.
Unchecked
: CheckState.Checked;
System\Windows\Forms\DataGridViewCellTests.cs (2)
6134
yield return new object[] { typeof(bool), typeof(CheckState), CheckState.
Unchecked
, new DataGridViewCellStyle(), null, null, false };
6135
yield return new object[] { typeof(bool), typeof(CheckState), CheckState.
Unchecked
- 1, new DataGridViewCellStyle(), null, null, false };
System\Windows\Forms\ToolStripButtonTests.cs (28)
38
Assert.Equal(CheckState.
Unchecked
, item.CheckState);
119
Assert.Equal(CheckState.
Unchecked
, item.CheckState);
206
Assert.Equal(CheckState.
Unchecked
, item.CheckState);
296
Assert.Equal(CheckState.
Unchecked
, item.CheckState);
384
Assert.Equal(CheckState.
Unchecked
, item.CheckState);
482
Assert.Equal(CheckState.
Unchecked
, item.CheckState);
636
[InlineData(true, CheckState.Checked, CheckState.
Unchecked
)]
637
[InlineData(false, CheckState.
Unchecked
, CheckState.Checked)]
659
[InlineData(true, CheckState.Checked, CheckState.
Unchecked
)]
660
[InlineData(false, CheckState.
Unchecked
, CheckState.Checked)]
687
[InlineData(true, CheckState.Checked, CheckState.
Unchecked
)]
688
[InlineData(false, CheckState.
Unchecked
, CheckState.Checked)]
732
[InlineData(true, CheckState.Checked, CheckState.
Unchecked
)]
733
[InlineData(false, CheckState.
Unchecked
, CheckState.Checked)]
760
[InlineData(true, 2, CheckState.Checked, CheckState.
Unchecked
)]
761
[InlineData(false, 0, CheckState.
Unchecked
, CheckState.Checked)]
870
Assert.Equal(value != CheckState.
Unchecked
, item.Checked);
875
Assert.Equal(value != CheckState.
Unchecked
, item.Checked);
889
Assert.Equal(value != CheckState.
Unchecked
, item.Checked);
895
Assert.Equal(value != CheckState.
Unchecked
, item.Checked);
918
Assert.Equal(value != CheckState.
Unchecked
, item.Checked);
927
Assert.Equal(value != CheckState.
Unchecked
, item.Checked);
959
item.CheckState = CheckState.
Unchecked
;
960
Assert.Equal(CheckState.
Unchecked
, item.CheckState);
965
item.CheckState = CheckState.
Unchecked
;
966
Assert.Equal(CheckState.
Unchecked
, item.CheckState);
978
item.CheckState = CheckState.
Unchecked
;
979
Assert.Equal(CheckState.
Unchecked
, item.CheckState);
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
52
Assert.Equal(CheckState.
Unchecked
, item.CheckState);
403
item.CheckState = CheckState.
Unchecked
;
WinFormsControlsTest (3)
CustomComCtl32Button.cs (1)
27
CheckState = CheckState.
Unchecked
,
ToolStripTests.Designer.cs (2)
162
this.toolStrip2_Button1.CheckState = System.Windows.Forms.CheckState.
Unchecked
;
188
this.toolStrip2_Button4.CheckState = System.Windows.Forms.CheckState.
Unchecked
;