1 write to ThreeState
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
403ThreeState = (value is not null && s_defaultCheckStateType.IsAssignableFrom(value));
13 references to ThreeState
System.Windows.Forms (13)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (11)
259public override Type FormattedValueType => ThreeState ? s_defaultCheckStateType : s_defaultBooleanType; 293if (ThreeState != value) 315if (ThreeState != value) 398return ThreeState ? s_defaultCheckStateType : s_defaultBooleanType; 421dataGridViewCell.ThreeStateInternal = ThreeState; 562if (ThreeState) 587else if (ThreeState && value.Equals(IndeterminateValue)) 607return ThreeState ? SR.DataGridViewCheckBoxCell_ClipboardChecked : SR.DataGridViewCheckBoxCell_ClipboardTrue; 611return ThreeState ? SR.DataGridViewCheckBoxCell_ClipboardUnchecked : SR.DataGridViewCheckBoxCell_ClipboardFalse; 618return ThreeState ? SR.DataGridViewCheckBoxCell_ClipboardChecked : SR.DataGridViewCheckBoxCell_ClipboardTrue; 622return ThreeState ? SR.DataGridViewCheckBoxCell_ClipboardUnchecked : SR.DataGridViewCheckBoxCell_ClipboardFalse;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (2)
201return CheckBoxCellTemplate.ThreeState; 291defaultNullValue = templateCell.ThreeState ? CheckState.Indeterminate : false;