24 writes to CheckState
DesignSurface (2)
MainForm.cs (2)
139checkbox2.CheckState = CheckState.Indeterminate; 142checkbox3.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)
123using CheckBox checkBox = new() { CheckState = checkState }; 162CheckState = checkState
System\Windows\Forms\CheckBoxTests.cs (6)
236CheckState = checkState 258CheckState = expectedCheckState 273CheckState = value 279control.CheckState = value; 289Assert.Throws<InvalidEnumArgumentException>("value", () => control.CheckState = value); 771checkBox.CheckState = checkBox.CheckState == CheckState.Checked ? CheckState.Unchecked : CheckState.Checked;
TestPassApp (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;
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)
265Assert.Equal(CheckState.Unchecked, checkBox.CheckState); 268Assert.Equal(CheckState.Checked, checkBox.CheckState); 272Assert.Equal(CheckState.Indeterminate, checkBox.CheckState); 276Assert.Equal(CheckState.Unchecked, checkBox.CheckState);
System\Windows\Forms\CheckBoxTests.cs (8)
46Assert.Equal(CheckState.Unchecked, control.CheckState); 220Assert.Equal(expected, box.CheckState); 242Assert.Equal(expectedCheckState, box.CheckState); 264Assert.Equal(expectedCheckState, box.CheckState); 275Assert.Equal(value, control.CheckState); 280Assert.Equal(value, control.CheckState); 771checkBox.CheckState = checkBox.CheckState == CheckState.Checked ? CheckState.Unchecked : CheckState.Checked; 873checkBox.CheckState.Should().Be(CheckState.Checked);
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
81isPressed = checkbox.CheckState == CheckState.Checked;