24 writes to CheckState
Accessibility_Core_App (3)
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;
DesignSurface (2)
MainForm.cs (2)
147checkbox2.CheckState = CheckState.Indeterminate; 150checkbox3.CheckState = CheckState.Checked;
PresentationUI (1)
MS\Internal\Documents\SigningDialog.Designer.cs (1)
120_addDocPropCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
System.Windows.Forms (6)
System\Windows\Forms\Controls\Buttons\CheckBox.CheckBoxAccessibleObject.cs (1)
81owner.CheckState = owner.CheckState switch
System\Windows\Forms\Controls\Buttons\CheckBox.cs (5)
156CheckState = value ? CheckState.Checked : CheckState.Unchecked; 440CheckState = CheckState.Checked; 445CheckState = CheckState.Indeterminate; 456CheckState = CheckState.Unchecked; 461CheckState = CheckState.Unchecked;
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 (8)
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (2)
121using CheckBox checkBox = new() { CheckState = checkState }; 160CheckState = checkState
System\Windows\Forms\CheckBoxTests.cs (6)
234CheckState = checkState 256CheckState = expectedCheckState 271CheckState = value 277control.CheckState = value; 287Assert.Throws<InvalidEnumArgumentException>("value", () => control.CheckState = value); 769checkBox.CheckState = checkBox.CheckState == CheckState.Checked ? CheckState.Unchecked : CheckState.Checked;
WinFormsControlsTest (2)
CustomComCtl32Button.cs (2)
26CheckState = CheckState.Unchecked, 37CheckState = CheckState.Checked,
38 references to CheckState
System.Windows.Forms (25)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (6)
62if (Control.CheckState == CheckState.Indeterminate) 126if (Control.CheckState == CheckState.Indeterminate) 132DrawCheckBackground(Control.Enabled, Control.CheckState, e, bounds, checkBackground, disabledColors); 141Control.CheckState, 236if (Control.CheckState == CheckState.Unchecked) 262if (Control.CheckState == CheckState.Indeterminate)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxFlatAdapter.cs (3)
16ButtonAdapter.PaintDown(e, Control.CheckState); 35ButtonAdapter.PaintOver(e, Control.CheckState); 54ButtonAdapter.PaintUp(e, Control.CheckState);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (3)
20adapter.PaintUp(e, Control.CheckState); 55adapter.PaintOver(e, Control.CheckState); 98adapter.PaintDown(e, Control.CheckState);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (3)
19ButtonAdapter.PaintUp(e, Control.CheckState); 68ButtonAdapter.PaintDown(e, Control.CheckState); 80ButtonAdapter.PaintOver(e, Control.CheckState);
System\Windows\Forms\Controls\Buttons\CheckBox.CheckBoxAccessibleObject.cs (3)
25: owner.CheckState switch 33? owner.CheckState switch 81owner.CheckState = owner.CheckState switch
System\Windows\Forms\Controls\Buttons\CheckBox.cs (5)
18[DefaultBindingProperty(nameof(CheckState))] 99/// Gets or sets a value indicating whether the <see cref="Checked"/> or <see cref="CheckState"/> 361/// Occurs when the value of the <see cref="CheckState"/> property changes. 437switch (CheckState) 538public override string ToString() => $"{base.ToString()}, CheckState: {(int)CheckState}";
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
125/// Occurs when the value of the <see cref="CheckBox.CheckState"/> property changes.
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
328/// Occurs when the value of the <see cref="CheckBox.CheckState"/> property changes.
System.Windows.Forms.Tests (12)
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (4)
263Assert.Equal(CheckState.Unchecked, checkBox.CheckState); 266Assert.Equal(CheckState.Checked, checkBox.CheckState); 270Assert.Equal(CheckState.Indeterminate, checkBox.CheckState); 274Assert.Equal(CheckState.Unchecked, checkBox.CheckState);
System\Windows\Forms\CheckBoxTests.cs (8)
44Assert.Equal(CheckState.Unchecked, control.CheckState); 218Assert.Equal(expected, box.CheckState); 240Assert.Equal(expectedCheckState, box.CheckState); 262Assert.Equal(expectedCheckState, box.CheckState); 273Assert.Equal(value, control.CheckState); 278Assert.Equal(value, control.CheckState); 769checkBox.CheckState = checkBox.CheckState == CheckState.Checked ? CheckState.Unchecked : CheckState.Checked; 871checkBox.CheckState.Should().Be(CheckState.Checked);
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
81isPressed = checkbox.CheckState == CheckState.Checked;