1 write to ButtonState
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
1070
this.
ButtonState
= newButtonState;
22 references to ButtonState
System.Windows.Forms (22)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (22)
66
if (this.
ButtonState
!= value)
497
return (this.
ButtonState
& ButtonState.Pushed) != 0;
515
UpdateButtonState(this.
ButtonState
| ButtonState.Checked, rowIndex);
529
UpdateButtonState(this.
ButtonState
& ~ButtonState.Checked, rowIndex);
551
if (this.
ButtonState
!= ButtonState.Normal)
568
UpdateButtonState(this.
ButtonState
| ButtonState.Pushed, e.RowIndex);
591
if ((this.
ButtonState
& ButtonState.Pushed) != 0 &&
595
UpdateButtonState(this.
ButtonState
& ~ButtonState.Pushed, rowIndex);
620
if ((this.
ButtonState
& ButtonState.Pushed) == 0 &&
624
UpdateButtonState(this.
ButtonState
| ButtonState.Pushed, e.RowIndex);
626
else if ((this.
ButtonState
& ButtonState.Pushed) != 0 && !mouseInContentBounds)
628
UpdateButtonState(this.
ButtonState
& ~ButtonState.Pushed, e.RowIndex);
645
UpdateButtonState(this.
ButtonState
& ~ButtonState.Pushed, e.RowIndex);
766
if ((this.
ButtonState
& (ButtonState.Pushed | ButtonState.Checked)) != 0)
793
(this.
ButtonState
== ButtonState.Normal) ? ButtonBorderStyle.Outset : ButtonBorderStyle.Inset);
809
if ((this.
ButtonState
& (ButtonState.Pushed | ButtonState.Checked)) != 0)
871
if ((this.
ButtonState
& (ButtonState.Pushed | ButtonState.Checked)) != 0)
948
if ((this.
ButtonState
& (ButtonState.Pushed | ButtonState.Checked)) != 0 ||
980
if ((this.
ButtonState
& (ButtonState.Pushed | ButtonState.Checked)) != 0 ||
985
bool paintUp = (this.
ButtonState
== ButtonState.Normal);
1017
if ((this.
ButtonState
& (ButtonState.Pushed | ButtonState.Checked)) != 0 &&
1068
if (this.
ButtonState
!= newButtonState)