139 references to Checked
Accessibility_Core_App (7)
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
;
Menu_Toolbars_controls.Designer.cs (4)
374
checkCheckOnClickToolStripMenuItem.CheckState = CheckState.
Checked
;
382
checkedCheckOnClickFToolStripMenuItem.CheckState = CheckState.
Checked
;
548
toolStripButton3.CheckState = CheckState.
Checked
;
559
toolStripButton4.CheckState = CheckState.
Checked
;
DesignSurface (1)
MainForm.cs (1)
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 (63)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (8)
29
check: !hasCustomBorder && SystemInformation.HighContrast && state == CheckState.
Checked
,
46
case CheckState.
Checked
:
58
case CheckState.
Checked
:
99
else if (state == CheckState.
Checked
&& SystemInformation.HighContrast)
122
!hasCustomBorder && SystemInformation.HighContrast && state == CheckState.
Checked
,
144
case CheckState.
Checked
:
187
else if (state == CheckState.
Checked
&& SystemInformation.HighContrast)
233
backColor = state is CheckState.
Checked
or CheckState.Indeterminate
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
184
if (controlCheckState == CheckState.
Checked
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (3)
17
adapter.PaintDown(e, Control.Checked ? CheckState.
Checked
: CheckState.Unchecked);
37
adapter.PaintOver(e, Control.Checked ? CheckState.
Checked
: CheckState.Unchecked);
57
adapter.PaintUp(e, Control.Checked ? CheckState.
Checked
: CheckState.Unchecked);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (3)
15
adapter.PaintUp(e, Control.Checked ? CheckState.
Checked
: CheckState.Unchecked);
44
adapter.PaintOver(e, Control.Checked ? CheckState.
Checked
: CheckState.Unchecked);
69
adapter.PaintDown(e, Control.Checked ? CheckState.
Checked
: CheckState.Unchecked);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonStandardAdapter.cs (3)
14
ButtonAdapter.PaintUp(e, Control.Checked ? CheckState.
Checked
: CheckState.Unchecked);
33
ButtonAdapter.PaintDown(e, Control.Checked ? CheckState.
Checked
: CheckState.Unchecked);
45
ButtonAdapter.PaintOver(e, Control.Checked ? CheckState.
Checked
: CheckState.Unchecked);
System\Windows\Forms\Controls\Buttons\CheckBox.CheckBoxAccessibleObject.cs (4)
27
CheckState.
Checked
=> AccessibleStates.Checked | base.State,
35
CheckState.
Checked
=> ToggleState.ToggleState_On,
83
CheckState.Unchecked => CheckState.
Checked
,
84
CheckState.
Checked
=> CheckState.Indeterminate,
System\Windows\Forms\Controls\Buttons\CheckBox.cs (3)
156
CheckState = value ? CheckState.
Checked
: CheckState.Unchecked;
440
CheckState = CheckState.
Checked
;
442
case CheckState.
Checked
:
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (18)
71
if (valueAsCheckState == CheckState.
Checked
)
139
return CheckState.
Checked
;
343
if ((!EditingCellValueChanged && FormattedValue is CheckState checkState2 && checkState2 == CheckState.
Checked
) ||
346
return CheckState.
Checked
;
352
return CheckState.
Checked
;
566
CheckState.
Checked
=> CheckState.
Checked
,
581
value = CheckState.
Checked
;
616
if (retCheckState == CheckState.
Checked
)
957
CheckState.
Checked
=> string.Format(SR.DataGridViewCheckBoxCellCheckedStateDescription, cellName),
1089
checkState = CheckState.
Checked
;
1424
checkState is CheckState.
Checked
or CheckState.Indeterminate,
1474
checkState is CheckState.
Checked
or CheckState.Indeterminate,
1521
checkState is CheckState.
Checked
or CheckState.Indeterminate,
1584
return CheckState.
Checked
;
1607
case CheckState.
Checked
:
1618
return CheckState.
Checked
;
1680
editingCell.EditingCellFormattedValue = CheckState.
Checked
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject.cs (2)
37
CheckState.
Checked
=> AccessibleStates.Checked | base.State,
160
CheckState.
Checked
=> ToggleState.ToggleState_On,
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (2)
160
return CheckState.
Checked
;
181
case CheckState.
Checked
:
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxItemAccessibleObject.cs (2)
84
case CheckState.
Checked
:
119
case CheckState.
Checked
:
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
431
: CheckState.
Checked
;
511
case CheckState.
Checked
:
883
SetItemCheckState(index, value ? CheckState.
Checked
: CheckState.Unchecked);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.ObjectCollection.cs (1)
23
return Add(item, isChecked ? CheckState.
Checked
: CheckState.Unchecked);
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
81
CheckState = value ? CheckState.
Checked
: CheckState.Unchecked;
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.ToolStripButtonAccessibleObject.cs (1)
93
CheckState.
Checked
=> ToggleState.ToggleState_On,
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
260
CheckState = value ? CheckState.
Checked
: CheckState.Unchecked;
276
CheckState.
Checked
=> t_checkedImage ??= ScaleHelper.GetIconResourceAsBitmap(
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemAccessibleObject.cs (1)
144
CheckState.
Checked
=> ToggleState.ToggleState_On,
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
660
else if (item is ToolStripMenuItem menuItem && menuItem.CheckState == CheckState.
Checked
)
System\Windows\Forms\Internal\Formatter.cs (4)
175
return ((bool)value) ? CheckState.
Checked
: CheckState.Unchecked;
184
? CheckState.
Checked
328
return (state == CheckState.
Checked
);
335
return 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)
360
ArgumentOutOfRangeException ex = Assert.Throws<ArgumentOutOfRangeException>(() => box.SetItemCheckState(index, CheckState.
Checked
));
391
[InlineData(true, CheckState.
Checked
)]
746
ItemCheckEventArgs eventArgs = new(0, CheckState.
Checked
, CheckState.Unchecked);
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (7)
113
[InlineData(true, CheckState.
Checked
, (int)ToggleState.ToggleState_On)]
116
[InlineData(false, CheckState.
Checked
, (int)ToggleState.ToggleState_On)]
136
yield return new object[] { true, false, CheckState.
Checked
, (int)ToggleState.ToggleState_Off };
140
yield return new object[] { true, true, CheckState.
Checked
, (int)ToggleState.ToggleState_Indeterminate };
144
yield return new object[] { false, true, CheckState.
Checked
, (int)ToggleState.ToggleState_On };
148
yield return new object[] { false, false, CheckState.
Checked
, (int)ToggleState.ToggleState_On };
266
Assert.Equal(CheckState.
Checked
, checkBox.CheckState);
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (2)
255
[InlineData(true, CheckState.
Checked
, (int)ToggleState.ToggleState_On)]
348
? (isChecked.Value ? CheckState.
Checked
: CheckState.Unchecked)
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (1)
282
dataGridView.Rows.Add(CheckState.
Checked
);
System\Windows\Forms\AccessibleObjects\ToolStripButton.ToolStripButtonAccessibleObjectTests.cs (3)
125
[InlineData(true, CheckState.
Checked
, true)]
128
[InlineData(false, CheckState.
Checked
, true)]
158
[InlineData(CheckState.
Checked
, (int)ToggleState.ToggleState_On)]
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (3)
198
[InlineData(true, CheckState.
Checked
, true)]
201
[InlineData(false, CheckState.
Checked
, true)]
218
[InlineData(CheckState.
Checked
, (int)ToggleState.ToggleState_On)]
System\Windows\Forms\CheckBoxTests.cs (10)
209
[InlineData(true, CheckState.
Checked
)]
222
[InlineData(true, CheckState.
Checked
, true, CheckState.Indeterminate)]
223
[InlineData(true, CheckState.Unchecked, true, CheckState.
Checked
)]
225
[InlineData(false, CheckState.
Checked
, false, CheckState.Unchecked)]
226
[InlineData(false, CheckState.Unchecked, true, CheckState.
Checked
)]
244
[InlineData(true, CheckState.
Checked
, true)]
247
[InlineData(false, CheckState.
Checked
, true)]
769
checkBox.CheckState = checkBox.CheckState == CheckState.
Checked
? CheckState.Unchecked : CheckState.
Checked
;
871
checkBox.CheckState.Should().Be(CheckState.
Checked
);
System\Windows\Forms\DataGridViewCellTests.cs (6)
6133
yield return new object[] { typeof(bool), typeof(CheckState), CheckState.
Checked
, new DataGridViewCellStyle(), null, null, true };
6137
yield return new object[] { typeof(CheckState), typeof(CheckState), CheckState.
Checked
, new DataGridViewCellStyle(), null, null, CheckState.
Checked
};
6138
yield return new object[] { typeof(int), typeof(CheckState), CheckState.
Checked
, new DataGridViewCellStyle(), null, null, 1 };
6139
yield return new object[] { typeof(int), typeof(CheckState), CheckState.
Checked
, new DataGridViewCellStyle(), new EnumConverter(typeof(CheckState)), null, 1 };
6140
yield return new object[] { typeof(int), typeof(CheckState), CheckState.
Checked
, new DataGridViewCellStyle(), null, new EnumConverter(typeof(CheckState)), 1 };
System\Windows\Forms\ToolStripButtonTests.cs (13)
636
[InlineData(true, CheckState.
Checked
, CheckState.Unchecked)]
637
[InlineData(false, CheckState.Unchecked, CheckState.
Checked
)]
659
[InlineData(true, CheckState.
Checked
, CheckState.Unchecked)]
660
[InlineData(false, CheckState.Unchecked, CheckState.
Checked
)]
687
[InlineData(true, CheckState.
Checked
, CheckState.Unchecked)]
688
[InlineData(false, CheckState.Unchecked, CheckState.
Checked
)]
732
[InlineData(true, CheckState.
Checked
, CheckState.Unchecked)]
733
[InlineData(false, CheckState.Unchecked, CheckState.
Checked
)]
760
[InlineData(true, 2, CheckState.
Checked
, CheckState.Unchecked)]
761
[InlineData(false, 0, CheckState.Unchecked, CheckState.
Checked
)]
939
CheckState = CheckState.
Checked
1039
[InlineData(true, CheckState.
Checked
, AccessibleStates.Focusable | AccessibleStates.Checked)]
1041
[InlineData(false, CheckState.
Checked
, AccessibleStates.None)]
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
281
CheckState = CheckState.
Checked
,
399
item.CheckState = CheckState.
Checked
;
WinFormsControlsTest (15)
CustomComCtl32Button.cs (2)
37
CheckState = CheckState.
Checked
,
81
isPressed = checkbox.CheckState == CheckState.
Checked
;
MenuStripAndCheckedListBox.Designer.cs (2)
236
this.checkedToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.
Checked
;
246
this.checkedCheckOnClickToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.
Checked
;
MultipleControls.cs (1)
132
checkedListBox1.Items.Add("Pennsylvania", CheckState.
Checked
);
MultipleControls.Designer.cs (2)
236
this.checkedListBox1.SetItemCheckState(0, CheckState.
Checked
);
294
this.checkedListBox2.SetItemCheckState(0, CheckState.
Checked
);
ToolStripTests.Designer.cs (8)
170
this.toolStrip2_Button2.CheckState = System.Windows.Forms.CheckState.
Checked
;
222
this.toolStrip3_MenuItem1.CheckState = System.Windows.Forms.CheckState.
Checked
;
247
this.checkCheckOnClickToolStripMenuItem.CheckState = CheckState.
Checked
;
259
this.thirdLevelItem.CheckState = System.Windows.Forms.CheckState.
Checked
;
267
this.thirdLevelButton.CheckState = System.Windows.Forms.CheckState.
Checked
;
299
this.toolStripMenuItem1.CheckState = System.Windows.Forms.CheckState.
Checked
;
316
this.toolStripMenuItem2.CheckState = System.Windows.Forms.CheckState.
Checked
;
321
this.checkedCheckOnClickFToolStripMenuItem.CheckState = CheckState.
Checked
;