139 references to Checked
DesignSurface (1)
MainForm.cs (1)
142checkbox3.CheckState = CheckState.Checked;
PresentationUI (1)
MS\Internal\Documents\SigningDialog.Designer.cs (1)
120_addDocPropCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
System.Windows.Forms (63)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (8)
29check: !hasCustomBorder && SystemInformation.HighContrast && state == CheckState.Checked, 46case CheckState.Checked: 58case CheckState.Checked: 99else if (state == CheckState.Checked && SystemInformation.HighContrast) 122!hasCustomBorder && SystemInformation.HighContrast && state == CheckState.Checked, 144case CheckState.Checked: 187else if (state == CheckState.Checked && SystemInformation.HighContrast) 233backColor = state is CheckState.Checked or CheckState.Indeterminate
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
184if (controlCheckState == CheckState.Checked)
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 (4)
27CheckState.Checked => AccessibleStates.Checked | base.State, 35CheckState.Checked => ToggleState.ToggleState_On, 83CheckState.Unchecked => CheckState.Checked, 84CheckState.Checked => CheckState.Indeterminate,
System\Windows\Forms\Controls\Buttons\CheckBox.cs (3)
156CheckState = value ? CheckState.Checked : CheckState.Unchecked; 440CheckState = CheckState.Checked; 442case CheckState.Checked:
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (18)
71if (valueAsCheckState == CheckState.Checked) 139return CheckState.Checked; 343if ((!EditingCellValueChanged && FormattedValue is CheckState checkState2 && checkState2 == CheckState.Checked) || 346return CheckState.Checked; 352return CheckState.Checked; 566CheckState.Checked => CheckState.Checked, 581value = CheckState.Checked; 616if (retCheckState == CheckState.Checked) 957CheckState.Checked => string.Format(SR.DataGridViewCheckBoxCellCheckedStateDescription, cellName), 1097checkState = CheckState.Checked; 1432checkState is CheckState.Checked or CheckState.Indeterminate, 1482checkState is CheckState.Checked or CheckState.Indeterminate, 1529checkState is CheckState.Checked or CheckState.Indeterminate, 1592return CheckState.Checked; 1615case CheckState.Checked: 1626return CheckState.Checked; 1688editingCell.EditingCellFormattedValue = CheckState.Checked;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject.cs (2)
37CheckState.Checked => AccessibleStates.Checked | base.State, 160CheckState.Checked => ToggleState.ToggleState_On,
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (2)
160return CheckState.Checked; 181case CheckState.Checked:
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxItemAccessibleObject.cs (2)
84case CheckState.Checked: 119case CheckState.Checked:
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
431: CheckState.Checked; 511case CheckState.Checked: 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 (1)
81CheckState = value ? CheckState.Checked : CheckState.Unchecked;
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.ToolStripButtonAccessibleObject.cs (1)
93CheckState.Checked => ToggleState.ToggleState_On,
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
260CheckState = value ? CheckState.Checked : CheckState.Unchecked; 276CheckState.Checked => t_checkedImage ??= ScaleHelper.GetIconResourceAsBitmap(
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemAccessibleObject.cs (1)
144CheckState.Checked => ToggleState.ToggleState_On,
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
660else if (item is ToolStripMenuItem menuItem && menuItem.CheckState == CheckState.Checked)
System\Windows\Forms\Internal\Formatter.cs (4)
176return ((bool)value) ? CheckState.Checked : CheckState.Unchecked; 185? CheckState.Checked 329return (state == CheckState.Checked); 336return targetConverter.ConvertFrom(context: null, GetFormatterCulture(formatInfo), state == CheckState.Checked);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
351_visibleCheckBox.CheckState = CheckState.Checked;
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
207_checkBoxUseValidatingType.CheckState = CheckState.Checked;
System.Windows.Forms.Tests (50)
CheckedListBoxTests.cs (3)
362ArgumentOutOfRangeException ex = Assert.Throws<ArgumentOutOfRangeException>(() => box.SetItemCheckState(index, CheckState.Checked)); 393[InlineData(true, CheckState.Checked)] 748ItemCheckEventArgs eventArgs = new(0, CheckState.Checked, CheckState.Unchecked);
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (7)
115[InlineData(true, CheckState.Checked, (int)ToggleState.ToggleState_On)] 118[InlineData(false, CheckState.Checked, (int)ToggleState.ToggleState_On)] 138yield return new object[] { true, false, CheckState.Checked, (int)ToggleState.ToggleState_Off }; 142yield return new object[] { true, true, CheckState.Checked, (int)ToggleState.ToggleState_Indeterminate }; 146yield return new object[] { false, true, CheckState.Checked, (int)ToggleState.ToggleState_On }; 150yield return new object[] { false, false, CheckState.Checked, (int)ToggleState.ToggleState_On }; 268Assert.Equal(CheckState.Checked, checkBox.CheckState);
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (2)
257[InlineData(true, CheckState.Checked, (int)ToggleState.ToggleState_On)] 350? (isChecked.Value ? CheckState.Checked : CheckState.Unchecked)
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (1)
284dataGridView.Rows.Add(CheckState.Checked);
System\Windows\Forms\AccessibleObjects\ToolStripButton.ToolStripButtonAccessibleObjectTests.cs (3)
127[InlineData(true, CheckState.Checked, true)] 130[InlineData(false, CheckState.Checked, true)] 160[InlineData(CheckState.Checked, (int)ToggleState.ToggleState_On)]
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (3)
200[InlineData(true, CheckState.Checked, true)] 203[InlineData(false, CheckState.Checked, true)] 220[InlineData(CheckState.Checked, (int)ToggleState.ToggleState_On)]
System\Windows\Forms\CheckBoxTests.cs (10)
211[InlineData(true, CheckState.Checked)] 224[InlineData(true, CheckState.Checked, true, CheckState.Indeterminate)] 225[InlineData(true, CheckState.Unchecked, true, CheckState.Checked)] 227[InlineData(false, CheckState.Checked, false, CheckState.Unchecked)] 228[InlineData(false, CheckState.Unchecked, true, CheckState.Checked)] 246[InlineData(true, CheckState.Checked, true)] 249[InlineData(false, CheckState.Checked, true)] 771checkBox.CheckState = checkBox.CheckState == CheckState.Checked ? CheckState.Unchecked : CheckState.Checked; 873checkBox.CheckState.Should().Be(CheckState.Checked);
System\Windows\Forms\DataGridViewCellTests.cs (6)
6135yield return new object[] { typeof(bool), typeof(CheckState), CheckState.Checked, new DataGridViewCellStyle(), null, null, true }; 6139yield return new object[] { typeof(CheckState), typeof(CheckState), CheckState.Checked, new DataGridViewCellStyle(), null, null, CheckState.Checked }; 6140yield return new object[] { typeof(int), typeof(CheckState), CheckState.Checked, new DataGridViewCellStyle(), null, null, 1 }; 6141yield return new object[] { typeof(int), typeof(CheckState), CheckState.Checked, new DataGridViewCellStyle(), new EnumConverter(typeof(CheckState)), null, 1 }; 6142yield return new object[] { typeof(int), typeof(CheckState), CheckState.Checked, new DataGridViewCellStyle(), null, new EnumConverter(typeof(CheckState)), 1 };
System\Windows\Forms\ToolStripButtonTests.cs (13)
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)] 941CheckState = CheckState.Checked 1041[InlineData(true, CheckState.Checked, AccessibleStates.Focusable | AccessibleStates.Checked)] 1043[InlineData(false, CheckState.Checked, AccessibleStates.None)]
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
279CheckState = CheckState.Checked, 397item.CheckState = CheckState.Checked;
TestPassApp (7)
CommonControl1.Designer.cs (1)
292this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
ContainerControls.Designer.cs (1)
339this.checkBox2.CheckState = System.Windows.Forms.CheckState.Checked;
ContainerControls2.Designer.cs (1)
190this.checkBox2.CheckState = System.Windows.Forms.CheckState.Checked;
Menu_Toolbars_controls.Designer.cs (4)
374checkCheckOnClickToolStripMenuItem.CheckState = CheckState.Checked; 382checkedCheckOnClickFToolStripMenuItem.CheckState = CheckState.Checked; 548toolStripButton3.CheckState = CheckState.Checked; 559toolStripButton4.CheckState = CheckState.Checked;
WinFormsControlsTest (15)
CustomComCtl32Button.cs (2)
37CheckState = CheckState.Checked, 81isPressed = checkbox.CheckState == CheckState.Checked;
MenuStripAndCheckedListBox.Designer.cs (2)
236this.checkedToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; 246this.checkedCheckOnClickToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
MultipleControls.cs (1)
132checkedListBox1.Items.Add("Pennsylvania", CheckState.Checked);
MultipleControls.Designer.cs (2)
236this.checkedListBox1.SetItemCheckState(0, CheckState.Checked); 294this.checkedListBox2.SetItemCheckState(0, CheckState.Checked);
ToolStripTests.Designer.cs (8)
170this.toolStrip2_Button2.CheckState = System.Windows.Forms.CheckState.Checked; 222this.toolStrip3_MenuItem1.CheckState = System.Windows.Forms.CheckState.Checked; 247this.checkCheckOnClickToolStripMenuItem.CheckState = CheckState.Checked; 259this.thirdLevelItem.CheckState = System.Windows.Forms.CheckState.Checked; 267this.thirdLevelButton.CheckState = System.Windows.Forms.CheckState.Checked; 299this.toolStripMenuItem1.CheckState = System.Windows.Forms.CheckState.Checked; 316this.toolStripMenuItem2.CheckState = System.Windows.Forms.CheckState.Checked; 321this.checkedCheckOnClickFToolStripMenuItem.CheckState = CheckState.Checked;