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