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