24 writes to CheckState
Accessibility_Core_App (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;
DesignSurface (2)
MainForm.cs (2)
147
checkbox2.
CheckState
= CheckState.Indeterminate;
150
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)
121
using CheckBox checkBox = new() {
CheckState
= checkState };
160
CheckState
= checkState
System\Windows\Forms\CheckBoxTests.cs (6)
234
CheckState
= checkState
256
CheckState
= expectedCheckState
271
CheckState
= value
277
control.
CheckState
= value;
287
Assert.Throws<InvalidEnumArgumentException>("value", () => control.
CheckState
= value);
769
checkBox.
CheckState
= checkBox.CheckState == CheckState.Checked ? CheckState.Unchecked : 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)
263
Assert.Equal(CheckState.Unchecked, checkBox.
CheckState
);
266
Assert.Equal(CheckState.Checked, checkBox.
CheckState
);
270
Assert.Equal(CheckState.Indeterminate, checkBox.
CheckState
);
274
Assert.Equal(CheckState.Unchecked, checkBox.
CheckState
);
System\Windows\Forms\CheckBoxTests.cs (8)
44
Assert.Equal(CheckState.Unchecked, control.
CheckState
);
218
Assert.Equal(expected, box.
CheckState
);
240
Assert.Equal(expectedCheckState, box.
CheckState
);
262
Assert.Equal(expectedCheckState, box.
CheckState
);
273
Assert.Equal(value, control.
CheckState
);
278
Assert.Equal(value, control.
CheckState
);
769
checkBox.CheckState = checkBox.
CheckState
== CheckState.Checked ? CheckState.Unchecked : CheckState.Checked;
871
checkBox.
CheckState
.Should().Be(CheckState.Checked);
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
81
isPressed = checkbox.
CheckState
== CheckState.Checked;