268 references to CheckState
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceDataSelectionPanel.cs (1)
198
if (e.NewValue ==
CheckState
.Checked)
System.Windows.Forms (267)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (6)
44
PaintDown(pevent,
CheckState
.Unchecked);
47
PaintOver(pevent,
CheckState
.Unchecked);
50
PaintUp(pevent,
CheckState
.Unchecked);
66
internal abstract void PaintUp(PaintEventArgs e,
CheckState
state);
68
internal abstract void PaintDown(PaintEventArgs e,
CheckState
state);
70
internal abstract void PaintOver(PaintEventArgs e,
CheckState
state);
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (25)
31
internal override void PaintUp(PaintEventArgs e,
CheckState
state) {
36
!Control.FlatAppearance.CheckedBackColor.IsEmpty || (SystemInformation.HighContrast ? state !=
CheckState
.Indeterminate : state ==
CheckState
.Unchecked),
37
!hasCustomBorder && SystemInformation.HighContrast && state ==
CheckState
.Checked,
55
case
CheckState
.Checked:
58
case
CheckState
.Indeterminate:
65
case
CheckState
.Checked:
68
case
CheckState
.Indeterminate:
101
else if (state ==
CheckState
.Checked && SystemInformation.HighContrast) {
105
else if (state ==
CheckState
.Indeterminate) {
113
internal override void PaintDown(PaintEventArgs e,
CheckState
state) {
118
!Control.FlatAppearance.CheckedBackColor.IsEmpty || (SystemInformation.HighContrast ? state !=
CheckState
.Indeterminate : state ==
CheckState
.Unchecked),
119
!hasCustomBorder && SystemInformation.HighContrast && state ==
CheckState
.Checked,
139
case
CheckState
.Unchecked:
140
case
CheckState
.Checked:
143
case
CheckState
.Indeterminate:
175
else if (state ==
CheckState
.Checked && SystemInformation.HighContrast) {
179
else if (state ==
CheckState
.Indeterminate) {
187
internal override void PaintOver(PaintEventArgs e,
CheckState
state) {
196
!Control.FlatAppearance.CheckedBackColor.IsEmpty || state ==
CheckState
.Unchecked,
217
if (state ==
CheckState
.Checked || state ==
CheckState
.Indeterminate) {
225
if (state ==
CheckState
.Indeterminate) {
259
else if (state ==
CheckState
.Unchecked) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (9)
24
internal override void PaintUp(PaintEventArgs e,
CheckState
state) {
26
LayoutData layout = PaintPopupLayout(e, state ==
CheckState
.Unchecked, 1).Layout();
32
if (state ==
CheckState
.Indeterminate) {
51
PaintField(e, layout, colors, state !=
CheckState
.Indeterminate && IsHighContrastHighlighted2() ? SystemColors.HighlightText : colors.windowText, true);
55
if (state ==
CheckState
.Unchecked) {
63
internal override void PaintOver(PaintEventArgs e,
CheckState
state) {
65
LayoutData layout = PaintPopupLayout(e, state ==
CheckState
.Unchecked, SystemInformation.HighContrast ? 2 : 1).Layout();
72
if (state ==
CheckState
.Indeterminate) {
124
internal override void PaintDown(PaintEventArgs e,
CheckState
state) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (6)
50
internal override void PaintUp(PaintEventArgs e,
CheckState
state) {
54
internal override void PaintDown(PaintEventArgs e,
CheckState
state) {
58
internal override void PaintOver(PaintEventArgs e,
CheckState
state) {
131
void PaintWorker(PaintEventArgs e, bool up,
CheckState
state) {
132
up = up && state ==
CheckState
.Unchecked;
155
if (state ==
CheckState
.Indeterminate) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (10)
65
if (Control.CheckState ==
CheckState
.Indeterminate) {
85
internal static void DrawCheckBackground(bool controlEnabled,
CheckState
controlCheckState, Graphics g, Rectangle bounds, Color checkColor, Color checkBackground, bool disabledColors, ColorData colors)
92
else if (controlCheckState ==
CheckState
.Indeterminate && checkBackground == SystemColors.Window && disabledColors) {
118
if (Control.CheckState ==
CheckState
.Indeterminate) {
131
internal static void DrawCheckOnly(int checkSize, bool controlChecked, bool controlEnabled,
CheckState
controlCheckState, Graphics g, LayoutData layout, ColorData colors, Color checkColor, Color checkBackground) {
139
else if (controlCheckState ==
CheckState
.Indeterminate) {
155
if (controlCheckState ==
CheckState
.Checked) {
158
Debug.Assert(controlCheckState ==
CheckState
.Indeterminate, "we want to paint the check box only if the item is checked or indeterminate");
197
if (Control.CheckState ==
CheckState
.Unchecked) {
220
if (Control.CheckState ==
CheckState
.Indeterminate) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxFlatAdapter.cs (3)
20
internal override void PaintDown(PaintEventArgs e,
CheckState
state) {
35
internal override void PaintOver(PaintEventArgs e,
CheckState
state) {
50
internal override void PaintUp(PaintEventArgs e,
CheckState
state) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (3)
23
internal override void PaintUp(PaintEventArgs e,
CheckState
state) {
48
internal override void PaintOver(PaintEventArgs e,
CheckState
state) {
77
internal override void PaintDown(PaintEventArgs e,
CheckState
state) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (3)
21
internal override void PaintUp(PaintEventArgs e,
CheckState
state)
60
internal override void PaintDown(PaintEventArgs e,
CheckState
state) {
69
internal override void PaintOver(PaintEventArgs e,
CheckState
state) {
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonFlatAdapter.cs (9)
22
internal override void PaintDown(PaintEventArgs e,
CheckState
state) {
25
adapter.PaintDown(e, Control.Checked ?
CheckState
.Checked :
CheckState
.Unchecked);
38
internal override void PaintOver(PaintEventArgs e,
CheckState
state) {
41
adapter.PaintOver(e, Control.Checked ?
CheckState
.Checked :
CheckState
.Unchecked);
54
internal override void PaintUp(PaintEventArgs e,
CheckState
state) {
57
adapter.PaintUp(e, Control.Checked ?
CheckState
.Checked :
CheckState
.Unchecked);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonPopupAdapter.cs (9)
20
internal override void PaintUp(PaintEventArgs e,
CheckState
state) {
24
adapter.PaintUp(e, Control.Checked ?
CheckState
.Checked :
CheckState
.Unchecked);
42
internal override void PaintOver(PaintEventArgs e,
CheckState
state) {
46
adapter.PaintOver(e, Control.Checked ?
CheckState
.Checked :
CheckState
.Unchecked);
65
internal override void PaintDown(PaintEventArgs e,
CheckState
state) {
69
adapter.PaintDown(e, Control.Checked ?
CheckState
.Checked :
CheckState
.Unchecked);
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonStandardAdapter.cs (9)
20
internal override void PaintUp(PaintEventArgs e,
CheckState
state) {
22
ButtonAdapter.PaintUp(e, Control.Checked ?
CheckState
.Checked :
CheckState
.Unchecked);
36
internal override void PaintDown(PaintEventArgs e,
CheckState
state) {
38
ButtonAdapter.PaintDown(e, Control.Checked ?
CheckState
.Checked :
CheckState
.Unchecked);
45
internal override void PaintOver(PaintEventArgs e,
CheckState
state) {
47
ButtonAdapter.PaintOver(e, Control.Checked ?
CheckState
.Checked :
CheckState
.Unchecked);
winforms\Managed\System\WinForms\CheckBox.cs (17)
55
private
CheckState
checkState;
228
return checkState !=
CheckState
.Unchecked;
233
CheckState = value ?
CheckState
.Checked :
CheckState
.Unchecked;
246
DefaultValue(
CheckState
.Unchecked),
250
public
CheckState
CheckState {
257
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
CheckState
.Unchecked, (int)
CheckState
.Indeterminate)){
258
throw new InvalidEnumArgumentException("value", (int)value, typeof(
CheckState
));
569
case
CheckState
.Unchecked:
570
CheckState =
CheckState
.Checked;
572
case
CheckState
.Checked:
574
CheckState =
CheckState
.Indeterminate;
585
CheckState =
CheckState
.Unchecked;
589
CheckState =
CheckState
.Unchecked;
766
case
CheckState
.Checked:
768
case
CheckState
.Indeterminate:
winforms\Managed\System\WinForms\CheckedListBox.cs (33)
526
public
CheckState
GetItemCheckState(int index) {
539
return(GetItemCheckState(index) !=
CheckState
.Unchecked);
586
CheckState
currentValue = CheckedItems.GetCheckedState(index);
587
CheckState
newValue = (currentValue !=
CheckState
.Unchecked)
588
?
CheckState
.Unchecked
589
:
CheckState
.Checked;
669
case
CheckState
.Checked:
672
case
CheckState
.Indeterminate:
981
CheckedItems.SetCheckedState(j, (
CheckState
)savedcheckedItems[j]);
990
public void SetItemCheckState(int index,
CheckState
value) {
995
if (!ClientUtils.IsEnumValid(value,(int)value, (int)
CheckState
.Unchecked, (int)
CheckState
.Indeterminate)){
996
throw new InvalidEnumArgumentException("value", (int)value, typeof(
CheckState
));
998
CheckState
currentValue = CheckedItems.GetCheckedState(index);
1017
SetItemCheckState(index, value ?
CheckState
.Checked :
CheckState
.Unchecked);
1142
return Add(item, isChecked ?
CheckState
.Checked :
CheckState
.Unchecked);
1150
public int Add(object item,
CheckState
check) {
1155
if (!ClientUtils.IsEnumValid(check, (int)check, (int)
CheckState
.Unchecked, (int)
CheckState
.Indeterminate)){
1156
throw new InvalidEnumArgumentException("value", (int)check, typeof(
CheckState
));
1498
internal
CheckState
GetCheckedState(int index) {
1503
return
CheckState
.Indeterminate;
1506
return
CheckState
.Checked;
1509
return
CheckState
.Unchecked;
1523
internal void SetCheckedState(int index,
CheckState
value) {
1528
case
CheckState
.Checked:
1533
case
CheckState
.Indeterminate:
1724
case
CheckState
.Checked:
1727
case
CheckState
.Indeterminate:
1730
case
CheckState
.Unchecked:
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (63)
51
private static Type defaultCheckStateType = typeof(System.Windows.Forms.
CheckState
);
88
if (value is System.Windows.Forms.
CheckState
)
90
if (((System.Windows.Forms.
CheckState
)value) == System.Windows.Forms.
CheckState
.Checked)
95
else if (((System.Windows.Forms.
CheckState
)value) == System.Windows.Forms.
CheckState
.Indeterminate)
161
return System.Windows.Forms.
CheckState
.Checked;
169
return System.Windows.Forms.
CheckState
.Indeterminate;
177
return System.Windows.Forms.
CheckState
.Unchecked;
649
(value is int && (int)value == (int)
CheckState
.Checked))
651
value =
CheckState
.Checked;
654
(value is int && (int)value == (int)
CheckState
.Unchecked))
656
value =
CheckState
.Unchecked;
659
(value is int && (int)value == (int)
CheckState
.Indeterminate))
661
value =
CheckState
.Indeterminate;
726
else if (ret is
CheckState
)
728
CheckState
retCheckState = (
CheckState
) ret;
729
if (retCheckState ==
CheckState
.Checked)
733
else if (retCheckState ==
CheckState
.Unchecked)
739
Debug.Assert(retCheckState ==
CheckState
.Indeterminate);
1179
CheckState
checkState;
1188
if (formattedValue != null && formattedValue is
CheckState
)
1190
checkState = (
CheckState
)formattedValue;
1191
bs = (checkState ==
CheckState
.Unchecked) ? ButtonState.Normal : ButtonState.Checked;
1192
drawAsMixedCheckBox = (checkState ==
CheckState
.Indeterminate);
1198
checkState =
CheckState
.Checked;
1203
checkState =
CheckState
.Unchecked;
1211
checkState =
CheckState
.Unchecked;
1404
if (checkState ==
CheckState
.Indeterminate)
1417
if (checkState !=
CheckState
.Unchecked)
1453
ControlPaint.DrawImageColorized(g, checkImage, fullSize, checkState ==
CheckState
.Indeterminate ? ControlPaint.LightLight(foreBrush.Color) : foreBrush.Color);
1502
checkState ==
CheckState
.Checked || checkState ==
CheckState
.Indeterminate,
1549
checkState ==
CheckState
.Checked || checkState ==
CheckState
.Indeterminate,
1594
checkState ==
CheckState
.Checked || checkState ==
CheckState
.Indeterminate,
1657
return
CheckState
.Checked;
1672
return
CheckState
.Unchecked;
1676
else if (formattedValue is
CheckState
)
1678
switch ((
CheckState
) formattedValue)
1680
case
CheckState
.Checked:
1691
return
CheckState
.Checked;
1694
case
CheckState
.Unchecked:
1705
return
CheckState
.Unchecked;
1708
case
CheckState
.Indeterminate:
1715
return
CheckState
.Indeterminate;
1735
if (this.FormattedValueType.IsAssignableFrom(typeof(System.Windows.Forms.
CheckState
)))
1739
editingCell.EditingCellFormattedValue = System.Windows.Forms.
CheckState
.Indeterminate;
1743
editingCell.EditingCellFormattedValue = System.Windows.Forms.
CheckState
.Unchecked;
1747
editingCell.EditingCellFormattedValue = System.Windows.Forms.
CheckState
.Checked;
1815
if (((DataGridViewCheckBoxCell)Owner).EditedFormattedValue is
CheckState
)
1817
CheckState
state = (
CheckState
)(((DataGridViewCheckBoxCell)Owner).EditedFormattedValue);
1820
case
CheckState
.Checked:
1822
case
CheckState
.Indeterminate:
1851
if (formattedValue is System.Windows.Forms.
CheckState
)
1853
switchToCheckedState = ((
CheckState
) formattedValue) ==
CheckState
.Unchecked;
1975
if (formattedValue is System.Windows.Forms.
CheckState
) {
1976
toggledState = ((
CheckState
)formattedValue) ==
CheckState
.Checked;
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (6)
37
defaultCellStyle.NullValue =
CheckState
.Indeterminate;
259
this.DefaultCellStyle.NullValue =
CheckState
.Indeterminate;
262
this.DefaultCellStyle.NullValue is
CheckState
&&
263
(
CheckState
) this.DefaultCellStyle.NullValue ==
CheckState
.Indeterminate)
324
defaultNullValue =
CheckState
.Indeterminate;
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (2)
999
if (type.Equals(typeof(bool)) || type.Equals(typeof(
CheckState
)))
1001
dataGridViewColumn = new DataGridViewCheckBoxColumn(type.Equals(typeof(
CheckState
)));
winforms\Managed\System\WinForms\Formatter.cs (12)
20
static private Type checkStateType = typeof(
CheckState
);
114
return
CheckState
.Indeterminate;
147
return ((bool)value) ?
CheckState
.Checked :
CheckState
.Unchecked;
155
?
CheckState
.Checked :
CheckState
.Unchecked;
293
else if (value is
CheckState
) {
294
CheckState
state = (
CheckState
)value;
295
if (state ==
CheckState
.Indeterminate) {
300
return (state ==
CheckState
.Checked);
306
return targetConverter.ConvertFrom(null, GetFormatterCulture(formatInfo), state ==
CheckState
.Checked);
winforms\Managed\System\WinForms\ItemCheckEvent.cs (6)
28
CheckState
newValue;
29
readonly
CheckState
currentValue;
35
public ItemCheckEventArgs(int index,
CheckState
newCheckValue,
CheckState
currentValue) {
52
public
CheckState
NewValue {
61
public
CheckState
CurrentValue {
winforms\Managed\System\WinForms\ListView.cs (8)
5887
CheckState
oldState = (
CheckState
)(((nmlv->uOldState & NativeMethods.LVIS_STATEIMAGEMASK) >> 12) == 1 ? 0 : 1);
5888
CheckState
newState = (
CheckState
)(((nmlv->uNewState & NativeMethods.LVIS_STATEIMAGEMASK) >> 12) == 1 ? 0 : 1);
5905
CheckState
oldValue = (
CheckState
)(((nmlv->uOldState & NativeMethods.LVIS_STATEIMAGEMASK) >> 12) == 1 ? 0 : 1);
5906
CheckState
newValue = (
CheckState
)(((nmlv->uNewState & NativeMethods.LVIS_STATEIMAGEMASK) >> 12) == 1 ? 0 : 1);
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (1)
196
internal override void PaintUp(PaintEventArgs pevent,
CheckState
state) {
winforms\Managed\System\WinForms\ToolStripButton.cs (10)
21
private
CheckState
checkState =
CheckState
.Unchecked;
102
return checkState !=
CheckState
.Unchecked;
107
CheckState = value ?
CheckState
.Checked :
CheckState
.Unchecked;
121
DefaultValue(
CheckState
.Unchecked),
124
public
CheckState
CheckState {
131
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
CheckState
.Unchecked, (int)
CheckState
.Indeterminate))
133
throw new InvalidEnumArgumentException("value", (int)value, typeof(
CheckState
));
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (1)
395
if (button.CheckState ==
CheckState
.Checked) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (14)
257
return CheckState !=
CheckState
.Unchecked;
262
CheckState = value ?
CheckState
.Checked :
CheckState
.Unchecked;
277
CheckState
checkedState = CheckState;
279
if (checkedState ==
CheckState
.Indeterminate) {
298
else if (checkedState ==
CheckState
.Checked) {
384
DefaultValue(
CheckState
.Unchecked),
388
public
CheckState
CheckState {
392
return (found) ? (
CheckState
)checkState :
CheckState
.Unchecked;
397
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
CheckState
.Unchecked, (int)
CheckState
.Indeterminate))
399
throw new InvalidEnumArgumentException("value", (int)value, typeof(
CheckState
));
1086
if (CheckState !=
CheckState
.Unchecked && menuItemInternalLayout.PaintCheck) {
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (2)
316
if (item.CheckState ==
CheckState
.Unchecked) {
657
if (item.CheckState !=
CheckState
.Unchecked) {