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)
19adapter.PaintDown(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 39adapter.PaintOver(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 59adapter.PaintUp(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (3)
17adapter.PaintUp(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 46adapter.PaintOver(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked); 71adapter.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) 957CheckState.Unchecked => string.Format(SR.DataGridViewCheckBoxCellUncheckedStateDescription, cellName), 1081bs = (checkState == CheckState.Unchecked) ? ButtonState.Normal : ButtonState.Checked; 1093checkState = CheckState.Unchecked; 1101checkState = CheckState.Unchecked; 1333if (checkState != CheckState.Unchecked) 1598return CheckState.Unchecked; 1621case CheckState.Unchecked: 1632return CheckState.Unchecked; 1675editingCell.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)
175return ((bool)value) ? CheckState.Checked : CheckState.Unchecked; 185: CheckState.Unchecked;
System.Windows.Forms.Tests (61)
CheckedListBoxTests.cs (2)
392[InlineData(false, CheckState.Unchecked)] 746ItemCheckEventArgs 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)] 138yield return new object[] { true, false, CheckState.Unchecked, (int)ToggleState.ToggleState_On }; 142yield return new object[] { true, true, CheckState.Unchecked, (int)ToggleState.ToggleState_On }; 146yield return new object[] { false, true, CheckState.Unchecked, (int)ToggleState.ToggleState_Off }; 150yield return new object[] { false, false, CheckState.Unchecked, (int)ToggleState.ToggleState_Off }; 263Assert.Equal(CheckState.Unchecked, checkBox.CheckState); 274Assert.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)
285dataGridView.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)
44Assert.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)] 769checkBox.CheckState = checkBox.CheckState == CheckState.Checked ? CheckState.Unchecked : CheckState.Checked;
System\Windows\Forms\DataGridViewCellTests.cs (2)
6134yield return new object[] { typeof(bool), typeof(CheckState), CheckState.Unchecked, new DataGridViewCellStyle(), null, null, false }; 6135yield return new object[] { typeof(bool), typeof(CheckState), CheckState.Unchecked - 1, new DataGridViewCellStyle(), null, null, false };
System\Windows\Forms\ToolStripButtonTests.cs (28)
38Assert.Equal(CheckState.Unchecked, item.CheckState); 119Assert.Equal(CheckState.Unchecked, item.CheckState); 206Assert.Equal(CheckState.Unchecked, item.CheckState); 296Assert.Equal(CheckState.Unchecked, item.CheckState); 384Assert.Equal(CheckState.Unchecked, item.CheckState); 482Assert.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)] 870Assert.Equal(value != CheckState.Unchecked, item.Checked); 875Assert.Equal(value != CheckState.Unchecked, item.Checked); 889Assert.Equal(value != CheckState.Unchecked, item.Checked); 895Assert.Equal(value != CheckState.Unchecked, item.Checked); 918Assert.Equal(value != CheckState.Unchecked, item.Checked); 927Assert.Equal(value != CheckState.Unchecked, item.Checked); 959item.CheckState = CheckState.Unchecked; 960Assert.Equal(CheckState.Unchecked, item.CheckState); 965item.CheckState = CheckState.Unchecked; 966Assert.Equal(CheckState.Unchecked, item.CheckState); 978item.CheckState = CheckState.Unchecked; 979Assert.Equal(CheckState.Unchecked, item.CheckState);
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
52Assert.Equal(CheckState.Unchecked, item.CheckState); 403item.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;