24 writes to CheckState
DesignSurface (2)
MainForm.cs (2)
139
checkbox2.
CheckState
= CheckState.Indeterminate;
142
checkbox3.
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)
81
owner.
CheckState
= owner.CheckState switch
System\Windows\Forms\Controls\Buttons\CheckBox.cs (5)
156
CheckState
= value ? CheckState.Checked : CheckState.Unchecked;
440
CheckState
= CheckState.Checked;
445
CheckState
= CheckState.Indeterminate;
456
CheckState
= CheckState.Unchecked;
461
CheckState
= 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)
123
using CheckBox checkBox = new() {
CheckState
= checkState };
162
CheckState
= checkState
System\Windows\Forms\CheckBoxTests.cs (6)
236
CheckState
= checkState
258
CheckState
= expectedCheckState
273
CheckState
= value
279
control.
CheckState
= value;
289
Assert.Throws<InvalidEnumArgumentException>("value", () => control.
CheckState
= value);
771
checkBox.
CheckState
= checkBox.CheckState == CheckState.Checked ? CheckState.Unchecked : CheckState.Checked;
TestPassApp (3)
CommonControl1.Designer.cs (1)
292
this.checkBox1.
CheckState
= System.Windows.Forms.CheckState.Checked;
ContainerControls.Designer.cs (1)
339
this.checkBox2.
CheckState
= System.Windows.Forms.CheckState.Checked;
ContainerControls2.Designer.cs (1)
190
this.checkBox2.
CheckState
= System.Windows.Forms.CheckState.Checked;
WinFormsControlsTest (2)
CustomComCtl32Button.cs (2)
26
CheckState
= CheckState.Unchecked,
37
CheckState
= CheckState.Checked,
38 references to CheckState
System.Windows.Forms (25)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (6)
62
if (Control.
CheckState
== CheckState.Indeterminate)
126
if (Control.
CheckState
== CheckState.Indeterminate)
132
DrawCheckBackground(Control.Enabled, Control.
CheckState
, e, bounds, checkBackground, disabledColors);
141
Control.
CheckState
,
236
if (Control.
CheckState
== CheckState.Unchecked)
262
if (Control.
CheckState
== CheckState.Indeterminate)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxFlatAdapter.cs (3)
16
ButtonAdapter.PaintDown(e, Control.
CheckState
);
35
ButtonAdapter.PaintOver(e, Control.
CheckState
);
54
ButtonAdapter.PaintUp(e, Control.
CheckState
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (3)
20
adapter.PaintUp(e, Control.
CheckState
);
55
adapter.PaintOver(e, Control.
CheckState
);
98
adapter.PaintDown(e, Control.
CheckState
);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (3)
19
ButtonAdapter.PaintUp(e, Control.
CheckState
);
68
ButtonAdapter.PaintDown(e, Control.
CheckState
);
80
ButtonAdapter.PaintOver(e, Control.
CheckState
);
System\Windows\Forms\Controls\Buttons\CheckBox.CheckBoxAccessibleObject.cs (3)
25
: owner.
CheckState
switch
33
? owner.
CheckState
switch
81
owner.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.
437
switch (
CheckState
)
538
public 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)
265
Assert.Equal(CheckState.Unchecked, checkBox.
CheckState
);
268
Assert.Equal(CheckState.Checked, checkBox.
CheckState
);
272
Assert.Equal(CheckState.Indeterminate, checkBox.
CheckState
);
276
Assert.Equal(CheckState.Unchecked, checkBox.
CheckState
);
System\Windows\Forms\CheckBoxTests.cs (8)
46
Assert.Equal(CheckState.Unchecked, control.
CheckState
);
220
Assert.Equal(expected, box.
CheckState
);
242
Assert.Equal(expectedCheckState, box.
CheckState
);
264
Assert.Equal(expectedCheckState, box.
CheckState
);
275
Assert.Equal(value, control.
CheckState
);
280
Assert.Equal(value, control.
CheckState
);
771
checkBox.CheckState = checkBox.
CheckState
== CheckState.Checked ? CheckState.Unchecked : CheckState.Checked;
873
checkBox.
CheckState
.Should().Be(CheckState.Checked);
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
81
isPressed = checkbox.
CheckState
== CheckState.Checked;