95 references to Indeterminate
Accessibility_Core_App (4)
Menu_Toolbars_controls.Designer.cs (4)
391
indeterminateToolStripMenuItem.CheckState = CheckState.
Indeterminate
;
399
indeterminateCheckOnClickFToolStripMenuItem.CheckState = CheckState.
Indeterminate
;
571
toolStripButton5.CheckState = CheckState.
Indeterminate
;
582
toolStripButton6.CheckState = CheckState.
Indeterminate
;
DesignSurface (1)
MainForm.cs (1)
147
checkbox2.CheckState = CheckState.
Indeterminate
;
System.Windows.Forms (53)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (9)
28
|| (SystemInformation.HighContrast ? state != CheckState.
Indeterminate
: state == CheckState.Unchecked),
49
case CheckState.
Indeterminate
:
61
case CheckState.
Indeterminate
:
104
else if (state == CheckState.
Indeterminate
)
121
|| (SystemInformation.HighContrast ? state != CheckState.
Indeterminate
: state == CheckState.Unchecked),
147
case CheckState.
Indeterminate
:
192
else if (state == CheckState.
Indeterminate
)
233
backColor = state is CheckState.Checked or CheckState.
Indeterminate
239
backColor = state is CheckState.
Indeterminate
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (3)
20
if (state == CheckState.
Indeterminate
)
40
state != CheckState.
Indeterminate
&& IsHighContrastHighlighted() ? SystemColors.HighlightText : colors.WindowText,
66
if (state == CheckState.
Indeterminate
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
130
if (state == CheckState.
Indeterminate
)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (6)
62
if (Control.CheckState == CheckState.
Indeterminate
)
98
else if (controlCheckState == CheckState.
Indeterminate
&& checkBackground == SystemColors.Window && disabledColors)
126
if (Control.CheckState == CheckState.
Indeterminate
)
166
else if (controlCheckState == CheckState.
Indeterminate
)
191
controlCheckState == CheckState.
Indeterminate
,
262
if (Control.CheckState == CheckState.
Indeterminate
)
System\Windows\Forms\Controls\Buttons\CheckBox.CheckBoxAccessibleObject.cs (2)
28
CheckState.
Indeterminate
=> AccessibleStates.Indeterminate | base.State,
84
CheckState.Checked => CheckState.
Indeterminate
,
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
445
CheckState = CheckState.
Indeterminate
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (17)
76
else if (valueAsCheckState == CheckState.
Indeterminate
)
148
return CheckState.
Indeterminate
;
337
if ((!EditingCellValueChanged && FormattedValue is CheckState checkState && checkState == CheckState.
Indeterminate
) ||
340
return CheckState.
Indeterminate
;
568
CheckState.
Indeterminate
=> CheckState.
Indeterminate
,
589
value = CheckState.
Indeterminate
;
626
Debug.Assert(retCheckState == CheckState.
Indeterminate
);
1083
drawAsMixedCheckBox = (checkState == CheckState.
Indeterminate
);
1323
if (checkState == CheckState.
Indeterminate
)
1372
checkState == CheckState.
Indeterminate
1424
checkState is CheckState.Checked or CheckState.
Indeterminate
,
1474
checkState is CheckState.Checked or CheckState.
Indeterminate
,
1521
checkState is CheckState.Checked or CheckState.
Indeterminate
,
1637
case CheckState.
Indeterminate
:
1644
return CheckState.
Indeterminate
;
1672
editingCell.EditingCellFormattedValue = CheckState.
Indeterminate
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject.cs (1)
38
CheckState.
Indeterminate
=> AccessibleStates.Indeterminate | base.State,
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (4)
23
NullValue = threeState ? CheckState.
Indeterminate
: false
229
DefaultCellStyle.NullValue = CheckState.
Indeterminate
;
231
else if (!value && DefaultCellStyle.NullValue is CheckState state && state == CheckState.
Indeterminate
)
291
defaultNullValue = templateCell.ThreeState ? CheckState.
Indeterminate
: false;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (2)
156
return CheckState.
Indeterminate
;
186
case CheckState.
Indeterminate
:
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxItemAccessibleObject.cs (2)
87
case CheckState.
Indeterminate
:
122
case CheckState.
Indeterminate
:
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
514
case CheckState.
Indeterminate
:
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
98
if (value is < CheckState.Unchecked or > CheckState.
Indeterminate
)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
272
CheckState.
Indeterminate
=> t_indeterminateCheckedImage ??= ScaleHelper.GetIconResourceAsBitmap(
System\Windows\Forms\Internal\Formatter.cs (2)
115
return CheckState.
Indeterminate
;
320
if (state == CheckState.
Indeterminate
)
System.Windows.Forms.Tests (30)
System\Windows\Forms\AccessibleObjects\CheckBox.CheckBoxAccessibleObjectTests.cs (7)
115
[InlineData(true, CheckState.
Indeterminate
, (int)ToggleState.ToggleState_Indeterminate)]
118
[InlineData(false, CheckState.
Indeterminate
, (int)ToggleState.ToggleState_Indeterminate)]
137
yield return new object[] { true, false, CheckState.
Indeterminate
, (int)ToggleState.ToggleState_Off };
141
yield return new object[] { true, true, CheckState.
Indeterminate
, (int)ToggleState.ToggleState_Off };
145
yield return new object[] { false, true, CheckState.
Indeterminate
, (int)ToggleState.ToggleState_Indeterminate };
149
yield return new object[] { false, false, CheckState.
Indeterminate
, (int)ToggleState.ToggleState_Indeterminate };
270
Assert.Equal(CheckState.
Indeterminate
, checkBox.CheckState);
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (2)
257
[InlineData(true, CheckState.
Indeterminate
, (int)ToggleState.ToggleState_Indeterminate)]
349
: CheckState.
Indeterminate
);
System\Windows\Forms\AccessibleObjects\DataGridViewCheckBoxCellAccessibleObjectTests.cs (1)
279
dataGridView.Rows.Add(CheckState.
Indeterminate
);
System\Windows\Forms\AccessibleObjects\ToolStripButton.ToolStripButtonAccessibleObjectTests.cs (3)
127
[InlineData(true, CheckState.
Indeterminate
, true)]
130
[InlineData(false, CheckState.
Indeterminate
, true)]
160
[InlineData(CheckState.
Indeterminate
, (int)ToggleState.ToggleState_Indeterminate)]
System\Windows\Forms\AccessibleObjects\ToolStripMenuItem.ToolStripMenuItemAccessibleObjectTests.cs (3)
200
[InlineData(true, CheckState.
Indeterminate
, true)]
203
[InlineData(false, CheckState.
Indeterminate
, true)]
220
[InlineData(CheckState.
Indeterminate
, (int)ToggleState.ToggleState_Indeterminate)]
System\Windows\Forms\CheckBoxTests.cs (5)
222
[InlineData(true, CheckState.Checked, true, CheckState.
Indeterminate
)]
224
[InlineData(true, CheckState.
Indeterminate
, false, CheckState.Unchecked)]
227
[InlineData(false, CheckState.
Indeterminate
, false, CheckState.Unchecked)]
246
[InlineData(true, CheckState.
Indeterminate
, true)]
249
[InlineData(false, CheckState.
Indeterminate
, true)]
System\Windows\Forms\DataGridViewCellTests.cs (2)
6132
yield return new object[] { typeof(bool), typeof(CheckState), CheckState.
Indeterminate
, new DataGridViewCellStyle(), null, null, DBNull.Value };
6136
yield return new object[] { typeof(bool), typeof(CheckState), CheckState.
Indeterminate
+ 1, new DataGridViewCellStyle(), null, null, false };
System\Windows\Forms\ToolStripButtonTests.cs (6)
971
item.CheckState = CheckState.
Indeterminate
;
972
Assert.Equal(CheckState.
Indeterminate
, item.CheckState);
985
item.CheckState = CheckState.
Indeterminate
;
986
Assert.Equal(CheckState.
Indeterminate
, item.CheckState);
1040
[InlineData(true, CheckState.
Indeterminate
, AccessibleStates.Focusable | AccessibleStates.Checked)]
1042
[InlineData(false, CheckState.
Indeterminate
, AccessibleStates.None)]
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (1)
98
toolStripButton.CheckState = CheckState.
Indeterminate
;
WinFormsControlsTest (7)
MenuStripAndCheckedListBox.Designer.cs (2)
255
this.indeterminateToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.
Indeterminate
;
265
this.indeterminateCheckOnClickToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.
Indeterminate
;
MultipleControls.Designer.cs (2)
237
this.checkedListBox1.SetItemCheckState(1, CheckState.
Indeterminate
);
295
this.checkedListBox2.SetItemCheckState(1, CheckState.
Indeterminate
);
ToolStripTests.Designer.cs (3)
179
this.toolStrip2_Button3.CheckState = System.Windows.Forms.CheckState.
Indeterminate
;
330
this.indeterminateToolStripMenuItem.CheckState = CheckState.
Indeterminate
;
338
this.indeterminateCheckOnClickFToolStripMenuItem.CheckState = CheckState.
Indeterminate
;