1 override of State
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
418
public override DataGridViewElementStates
State
64 references to State
System.Windows.Forms (64)
winforms\Managed\System\WinForms\DataGridViewBand.cs (29)
211
bool displayed = (this.
State
& DataGridViewElementStates.Displayed) != 0;
225
this.StateInternal = this.
State
| DataGridViewElementStates.Displayed;
229
this.StateInternal = this.
State
& ~DataGridViewElementStates.Displayed;
290
return (this.
State
& DataGridViewElementStates.Frozen) != 0;
294
if (((this.
State
& DataGridViewElementStates.Frozen) != 0) != value)
299
this.StateInternal = this.
State
| DataGridViewElementStates.Frozen;
303
this.StateInternal = this.
State
& ~DataGridViewElementStates.Frozen;
546
return ((this.
State
& DataGridViewElementStates.ReadOnly) != 0 ||
580
if (((this.
State
& DataGridViewElementStates.ReadOnly) != 0) != value)
594
this.StateInternal = this.
State
| DataGridViewElementStates.ReadOnly;
598
this.StateInternal = this.
State
& ~DataGridViewElementStates.ReadOnly;
612
this.StateInternal = this.
State
| DataGridViewElementStates.ReadOnly;
616
this.StateInternal = this.
State
& ~DataGridViewElementStates.ReadOnly;
632
if ((this.
State
& DataGridViewElementStates.ResizableSet) != 0)
634
return ((this.
State
& DataGridViewElementStates.Resizable) != 0) ? DataGridViewTriState.True : DataGridViewTriState.False;
650
this.StateInternal = this.
State
& ~DataGridViewElementStates.ResizableSet;
654
this.StateInternal = this.
State
| DataGridViewElementStates.ResizableSet;
655
if (((this.
State
& DataGridViewElementStates.Resizable) != 0) != (value == DataGridViewTriState.True))
659
this.StateInternal = this.
State
| DataGridViewElementStates.Resizable;
664
this.StateInternal = this.
State
& ~DataGridViewElementStates.Resizable;
685
return (this.
State
& DataGridViewElementStates.Selected) != 0;
727
this.StateInternal = this.
State
| DataGridViewElementStates.Selected;
731
this.StateInternal = this.
State
& ~DataGridViewElementStates.Selected;
861
return (this.
State
& DataGridViewElementStates.Visible) != 0;
865
if (((this.
State
& DataGridViewElementStates.Visible) != 0) != value)
879
this.StateInternal = this.
State
| DataGridViewElementStates.Visible;
883
this.StateInternal = this.
State
& ~DataGridViewElementStates.Visible;
910
dataGridViewBand.StateInternal = this.
State
& ~(DataGridViewElementStates.Selected | DataGridViewElementStates.Displayed);
1043
return (this.
State
& DataGridViewElementStates.ResizableSet) != 0;
winforms\Managed\System\WinForms\DataGridViewCell.cs (20)
226
Debug.Assert((this.
State
& DataGridViewElementStates.Displayed) == 0);
397
Debug.Assert((this.
State
& DataGridViewElementStates.Frozen) == 0);
580
if ((this.
State
& DataGridViewElementStates.ReadOnly) != 0)
636
this.StateInternal = this.
State
| DataGridViewElementStates.ReadOnly;
640
this.StateInternal = this.
State
& ~DataGridViewElementStates.ReadOnly;
657
Debug.Assert((this.
State
& DataGridViewElementStates.Resizable) == 0);
702
if ((this.
State
& DataGridViewElementStates.Selected) != 0)
746
this.StateInternal = this.
State
| DataGridViewElementStates.Selected;
750
this.StateInternal = this.
State
& ~DataGridViewElementStates.Selected;
973
Debug.Assert((this.
State
& DataGridViewElementStates.Visible) == 0);
1122
DataGridViewElementStates cellState = (this.owningColumn.
State
& orFlags);
1124
cellState |= ((this.owningColumn.
State
& andFlags) & (rowState & andFlags));
1164
dataGridViewCell.StateInternal = this.
State
& ~DataGridViewElementStates.Selected;
1207
cellState |= this.
State
;
1220
cellState = this.OwningColumn.
State
| this.
State
;
1232
cellState = this.OwningRow.GetState(rowIndex) | this.
State
;
1241
cellState = this.
State
;
2065
DataGridViewElementStates state = this.
State
| DataGridViewElementStates.ResizableSet;
2102
state |= (this.owningColumn.
State
& (DataGridViewElementStates.ReadOnly | DataGridViewElementStates.Selected));
winforms\Managed\System\WinForms\DataGridViewCellCollection.cs (1)
190
dataGridViewCell.StateInternal = oldDataGridViewCell.
State
;
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (1)
1204
DataGridViewElementStates columnStates = dataGridViewColumn.
State
;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
2010
cellState |= this.
State
;
winforms\Managed\System\WinForms\DataGridViewElement.cs (3)
38
this.state = dgveTemplate.
State
& (DataGridViewElementStates.Frozen | DataGridViewElementStates.ReadOnly | DataGridViewElementStates.Resizable | DataGridViewElementStates.ResizableSet | DataGridViewElementStates.Visible);
64
return (this.
State
& elementState) == elementState;
69
return (this.
State
& elementState) == 0;
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
363
state |= (this.OwningColumn.
State
& DataGridViewElementStates.Frozen);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (4)
19940
dataGridViewColumn.
State
,
20013
dataGridViewColumn.
State
,
20235
cell.
State
,
27660
if ((dataGridViewCell.
State
& DataGridViewElementStates.Selected) != 0)
winforms\Managed\System\WinForms\DataGridViewRow.cs (3)
1484
return base.
State
;
1643
cellState |= cell.
State
;
1730
cellState |= cell.
State
;
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (1)
2388
if ((dataGridViewCell.
State
& ~(dataGridViewCell.CellStateFromColumnRowStates(this.rowStates[index]))) != 0)