31 references to Flat
System.Windows.Forms (31)
winforms\Managed\System\WinForms\ButtonBase.cs (2)
284
if (!ClientUtils.IsEnumValid(value, (int)value, (int)FlatStyle.
Flat
, (int)FlatStyle.System)){
978
case FlatStyle.
Flat
:
winforms\Managed\System\WinForms\ComboBox.cs (5)
639
if (!ClientUtils.IsEnumValid(value, (int)value, (int)FlatStyle.
Flat
, (int)FlatStyle.System)) {
3688
if (!Application.RenderWithVisualStyles && GetStyle(ControlStyles.UserPaint) == false && this.DropDownStyle == ComboBoxStyle.DropDownList && (FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup)) {
3757
if (GetStyle(ControlStyles.UserPaint) == false && (FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup)) {
3811
if (GetStyle(ControlStyles.UserPaint) == false && FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup) {
3815
if (GetStyle(ControlStyles.UserPaint) == false && FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup) {
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (7)
102
if (!ClientUtils.IsEnumValid(value, (int)value, (int)FlatStyle.
Flat
, (int)FlatStyle.System))
118
Debug.Assert(value >= FlatStyle.
Flat
&& value <= FlatStyle.System);
585
(this.DataGridView.ApplyVisualStylesToInnerCells || this.FlatStyle == FlatStyle.
Flat
|| this.FlatStyle == FlatStyle.Popup))
611
if (this.DataGridView.ApplyVisualStylesToInnerCells || this.FlatStyle == FlatStyle.
Flat
|| this.FlatStyle == FlatStyle.Popup)
799
else if (this.FlatStyle == FlatStyle.
Flat
)
946
else if (this.FlatStyle == FlatStyle.
Flat
)
1018
this.FlatStyle != FlatStyle.
Flat
&& this.FlatStyle != FlatStyle.Popup)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (10)
291
if (!ClientUtils.IsEnumValid(value, (int)value, (int)FlatStyle.
Flat
, (int)FlatStyle.System))
307
Debug.Assert(value >= FlatStyle.
Flat
&& value <= FlatStyle.System);
774
case FlatStyle.
Flat
:
808
case FlatStyle.
Flat
:
1017
(this.DataGridView.ApplyVisualStylesToInnerCells || this.FlatStyle == FlatStyle.
Flat
|| this.FlatStyle == FlatStyle.Popup))
1043
if (this.DataGridView.ApplyVisualStylesToInnerCells || this.FlatStyle == FlatStyle.
Flat
|| this.FlatStyle == FlatStyle.Popup)
1269
case FlatStyle.
Flat
:
1283
case FlatStyle.
Flat
:
1329
if (this.DataGridView.ApplyVisualStylesToInnerCells && this.FlatStyle != FlatStyle.
Flat
&& this.FlatStyle != FlatStyle.Popup)
1358
else if (this.FlatStyle == FlatStyle.
Flat
)
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (5)
501
if (!ClientUtils.IsEnumValid(value, (int)value, (int)FlatStyle.
Flat
, (int)FlatStyle.System))
517
Debug.Assert(value >= FlatStyle.
Flat
&& value <= FlatStyle.System);
585
bool paintFlat = this.FlatStyle == FlatStyle.
Flat
|| this.FlatStyle == FlatStyle.Popup;
1475
if (this.FlatStyle == FlatStyle.
Flat
|| this.FlatStyle == FlatStyle.Popup)
2124
bool paintFlat = this.FlatStyle == FlatStyle.
Flat
|| this.FlatStyle == FlatStyle.Popup;
winforms\Managed\System\WinForms\GroupBox.cs (1)
236
if (!ClientUtils.IsEnumValid(value, (int)value, (int)FlatStyle.
Flat
, (int)FlatStyle.System))
winforms\Managed\System\WinForms\Label.cs (1)
415
if (!ClientUtils.IsEnumValid(value, (int)value, (int)FlatStyle.
Flat
, (int)FlatStyle.System))