17 references to GetState
System.Windows.Forms (12)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
999
cellState = OwningRow.
GetState
(rowIndex) | State;
1786
state |= (OwningRow.
GetState
(-1) & (DataGridViewElementStates.Frozen | DataGridViewElementStates.ReadOnly | DataGridViewElementStates.Selected | DataGridViewElementStates.Visible));
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
244
state |= (OwningRow.
GetState
(rowIndex) & DataGridViewElementStates.Frozen);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (8)
326
return
GetState
(Index);
1228
return (
GetState
(rowIndex) & DataGridViewElementStates.Displayed) != 0;
1262
return (
GetState
(rowIndex) & DataGridViewElementStates.Frozen) != 0;
1340
return (
GetState
(rowIndex) & DataGridViewElementStates.ReadOnly) != 0 ||
1346
if ((
GetState
(rowIndex) & DataGridViewElementStates.ResizableSet) != 0)
1348
return ((
GetState
(rowIndex) & DataGridViewElementStates.Resizable) != 0) ? DataGridViewTriState.True : DataGridViewTriState.False;
1363
return (
GetState
(rowIndex) & DataGridViewElementStates.Selected) != 0;
1392
return (
GetState
(rowIndex) & DataGridViewElementStates.Visible) != 0;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (1)
1342
return dataGridViewRow.
GetState
(rowIndex);
System.Windows.Forms.Tests (5)
System\Windows\Forms\DataGridViewRowTests.cs (5)
4514
Assert.Equal(DataGridViewElementStates.Visible, row.
GetState
(-1));
4527
Assert.Equal(DataGridViewElementStates.Visible | DataGridViewElementStates.ReadOnly, row.
GetState
(0));
4540
Assert.Equal(DataGridViewElementStates.Visible, row.
GetState
(0));
4551
Assert.Throws<ArgumentException>("rowIndex", () => row.
GetState
(rowIndex));
4565
Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => row.
GetState
(rowIndex));