137 references to Unchecked
System.Windows.Forms (73)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (3)
36PaintDown(e, CheckState.Unchecked); 40PaintOver(e, CheckState.Unchecked); 44PaintUp(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), 143case CheckState.Unchecked: 214up: !Control.FlatAppearance.CheckedBackColor.IsEmpty || state == CheckState.Unchecked, 281else if (state == CheckState.Unchecked)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (3)
16LayoutData layout = PaintPopupLayout(state == CheckState.Unchecked, 1).Layout(); 49if (state == CheckState.Unchecked) 62LayoutData layout = PaintPopupLayout(state == CheckState.Unchecked, SystemInformation.HighContrast ? 2 : 1).Layout();
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
108up = up && state == CheckState.Unchecked;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
236if (Control.CheckState == CheckState.Unchecked)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (3)
17adapter.PaintDown(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 37adapter.PaintOver(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 57adapter.PaintUp(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (3)
15adapter.PaintUp(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 44adapter.PaintOver(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 69adapter.PaintDown(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonStandardAdapter.cs (3)
14ButtonAdapter.PaintUp(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 33ButtonAdapter.PaintDown(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 45ButtonAdapter.PaintOver(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked);
System\Windows\Forms\Controls\Buttons\CheckBox.CheckBoxAccessibleObject.cs (3)
36CheckState.Unchecked => ToggleState.ToggleState_Off, 83CheckState.Unchecked => CheckState.Checked, 85_ => CheckState.Unchecked
System\Windows\Forms\Controls\Buttons\CheckBox.cs (6)
151get => _checkState != CheckState.Unchecked; 156CheckState = value ? CheckState.Checked : CheckState.Unchecked; 166[DefaultValue(CheckState.Unchecked)] 439case CheckState.Unchecked: 456CheckState = CheckState.Unchecked; 461CheckState = CheckState.Unchecked;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (15)
157return CheckState.Unchecked; 355return CheckState.Unchecked; 567CheckState.Unchecked => CheckState.Unchecked, 585value = CheckState.Unchecked; 620else if (retCheckState == CheckState.Unchecked) 958CheckState.Unchecked => string.Format(SR.DataGridViewCheckBoxCellUncheckedStateDescription, cellName), 1090bs = (checkState == CheckState.Unchecked) ? ButtonState.Normal : ButtonState.Checked; 1102checkState = CheckState.Unchecked; 1110checkState = CheckState.Unchecked; 1342if (checkState != CheckState.Unchecked) 1607return CheckState.Unchecked; 1630case CheckState.Unchecked: 1641return CheckState.Unchecked; 1684editingCell.EditingCellFormattedValue = CheckState.Unchecked;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject.cs (2)
66switchToCheckedState = checkState == CheckState.Unchecked; 161CheckState.Unchecked => ToggleState.ToggleState_Off,
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (1)
163return CheckState.Unchecked;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxItemAccessibleObject.cs (1)
90case CheckState.Unchecked:
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (4)
382public bool GetItemChecked(int index) => GetItemCheckState(index) != CheckState.Unchecked; 429CheckState newValue = (currentValue != CheckState.Unchecked) 430? CheckState.Unchecked 883SetItemCheckState(index, value ? CheckState.Checked : CheckState.Unchecked);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.ObjectCollection.cs (1)
23return Add(item, isChecked ? CheckState.Checked : CheckState.Unchecked);
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (6)
13private CheckState _checkState = CheckState.Unchecked; 14private CheckState _prevCheckState = CheckState.Unchecked; 76get => _checkState != CheckState.Unchecked; 81CheckState = value ? CheckState.Checked : CheckState.Unchecked; 91[DefaultValue(CheckState.Unchecked)] 98if (value is < CheckState.Unchecked or > CheckState.Indeterminate)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.ToolStripButtonAccessibleObject.cs (1)
94CheckState.Unchecked => ToggleState.ToggleState_Off,
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (6)
255get => CheckState != CheckState.Unchecked; 260CheckState = value ? CheckState.Checked : CheckState.Unchecked; 297[DefaultValue(CheckState.Unchecked)] 302get => Properties.GetValueOrDefault(s_propCheckState, CheckState.Unchecked); 310Properties.AddOrRemoveValue(s_propCheckState, value, defaultValue: CheckState.Unchecked); 977if (CheckState != CheckState.Unchecked && menuItemInternalLayout.PaintCheck)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemAccessibleObject.cs (1)
145CheckState.Unchecked => ToggleState.ToggleState_Off,
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
349if (item is not null && item.CheckState == CheckState.Unchecked) 749if (item is not null && item.CheckState != CheckState.Unchecked)
System\Windows\Forms\Internal\Formatter.cs (2)
176return ((bool)value) ? CheckState.Checked : CheckState.Unchecked; 186: CheckState.Unchecked;
System.Windows.Forms.Tests (61)
CheckedListBoxTests.cs (2)
394[InlineData(false, CheckState.Unchecked)] 748ItemCheckEventArgs eventArgs = new(0, CheckState.Checked, CheckState.Unchecked);
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (8)
116[InlineData(true, CheckState.Unchecked, (int)ToggleState.ToggleState_Off)] 119[InlineData(false, CheckState.Unchecked, (int)ToggleState.ToggleState_Off)] 140yield return new object[] { true, false, CheckState.Unchecked, (int)ToggleState.ToggleState_On }; 144yield return new object[] { true, true, CheckState.Unchecked, (int)ToggleState.ToggleState_On }; 148yield return new object[] { false, true, CheckState.Unchecked, (int)ToggleState.ToggleState_Off }; 152yield return new object[] { false, false, CheckState.Unchecked, (int)ToggleState.ToggleState_Off }; 265Assert.Equal(CheckState.Unchecked, checkBox.CheckState); 276Assert.Equal(CheckState.Unchecked, checkBox.CheckState);
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (2)
258[InlineData(false, CheckState.Unchecked, (int)ToggleState.ToggleState_Off)] 350? (isChecked.Value ? CheckState.Checked : CheckState.Unchecked)
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (1)
287dataGridView.Rows.Add(CheckState.Unchecked);
System\Windows\Forms\AccessibleObjects\ToolStripButton.ToolStripButtonAccessibleObjectTests.cs (3)
128[InlineData(true, CheckState.Unchecked, true)] 131[InlineData(false, CheckState.Unchecked, false)] 161[InlineData(CheckState.Unchecked, (int)ToggleState.ToggleState_Off)]
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (3)
201[InlineData(true, CheckState.Unchecked, true)] 204[InlineData(false, CheckState.Unchecked, false)] 221[InlineData(CheckState.Unchecked, (int)ToggleState.ToggleState_Off)]
System\Windows\Forms\CheckBoxTests.cs (10)
46Assert.Equal(CheckState.Unchecked, control.CheckState); 212[InlineData(false, CheckState.Unchecked)] 225[InlineData(true, CheckState.Unchecked, true, CheckState.Checked)] 226[InlineData(true, CheckState.Indeterminate, false, CheckState.Unchecked)] 227[InlineData(false, CheckState.Checked, false, CheckState.Unchecked)] 228[InlineData(false, CheckState.Unchecked, true, CheckState.Checked)] 229[InlineData(false, CheckState.Indeterminate, false, CheckState.Unchecked)] 247[InlineData(true, CheckState.Unchecked, false)] 250[InlineData(false, CheckState.Unchecked, false)] 771checkBox.CheckState = checkBox.CheckState == CheckState.Checked ? CheckState.Unchecked : CheckState.Checked;
System\Windows\Forms\DataGridViewCellTests.cs (2)
6136yield return new object[] { typeof(bool), typeof(CheckState), CheckState.Unchecked, new DataGridViewCellStyle(), null, null, false }; 6137yield return new object[] { typeof(bool), typeof(CheckState), CheckState.Unchecked - 1, new DataGridViewCellStyle(), null, null, false };
System\Windows\Forms\ToolStripButtonTests.cs (28)
40Assert.Equal(CheckState.Unchecked, item.CheckState); 121Assert.Equal(CheckState.Unchecked, item.CheckState); 208Assert.Equal(CheckState.Unchecked, item.CheckState); 298Assert.Equal(CheckState.Unchecked, item.CheckState); 386Assert.Equal(CheckState.Unchecked, item.CheckState); 484Assert.Equal(CheckState.Unchecked, item.CheckState); 638[InlineData(true, CheckState.Checked, CheckState.Unchecked)] 639[InlineData(false, CheckState.Unchecked, CheckState.Checked)] 661[InlineData(true, CheckState.Checked, CheckState.Unchecked)] 662[InlineData(false, CheckState.Unchecked, CheckState.Checked)] 689[InlineData(true, CheckState.Checked, CheckState.Unchecked)] 690[InlineData(false, CheckState.Unchecked, CheckState.Checked)] 734[InlineData(true, CheckState.Checked, CheckState.Unchecked)] 735[InlineData(false, CheckState.Unchecked, CheckState.Checked)] 762[InlineData(true, 2, CheckState.Checked, CheckState.Unchecked)] 763[InlineData(false, 0, CheckState.Unchecked, CheckState.Checked)] 872Assert.Equal(value != CheckState.Unchecked, item.Checked); 877Assert.Equal(value != CheckState.Unchecked, item.Checked); 891Assert.Equal(value != CheckState.Unchecked, item.Checked); 897Assert.Equal(value != CheckState.Unchecked, item.Checked); 920Assert.Equal(value != CheckState.Unchecked, item.Checked); 929Assert.Equal(value != CheckState.Unchecked, item.Checked); 961item.CheckState = CheckState.Unchecked; 962Assert.Equal(CheckState.Unchecked, item.CheckState); 967item.CheckState = CheckState.Unchecked; 968Assert.Equal(CheckState.Unchecked, item.CheckState); 980item.CheckState = CheckState.Unchecked; 981Assert.Equal(CheckState.Unchecked, item.CheckState);
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
50Assert.Equal(CheckState.Unchecked, item.CheckState); 401item.CheckState = CheckState.Unchecked;
WinFormsControlsTest (3)
CustomComCtl32Button.cs (1)
26CheckState = CheckState.Unchecked,
ToolStripTests.Designer.cs (2)
162this.toolStrip2_Button1.CheckState = System.Windows.Forms.CheckState.Unchecked; 188this.toolStrip2_Button4.CheckState = System.Windows.Forms.CheckState.Unchecked;