168 references to FlatStyle
System.Web.Mobile (4)
UI\MobileControls\Design\ListItemsPage.cs (2)
100_itemsAsLinksCheckBox.FlatStyle = FlatStyle.System; 141_ckbSelected.FlatStyle = System.Windows.Forms.FlatStyle.System;
UI\MobileControls\Design\ObjectListFieldsPage.cs (2)
86_ckbAutoGenerateFields.FlatStyle = FlatStyle.System; 139_ckbVisible.FlatStyle = System.Windows.Forms.FlatStyle.System;
System.Windows.Forms (164)
winforms\Managed\System\WinForms\Button.cs (1)
117if(FlatStyle != FlatStyle.System) {
winforms\Managed\System\WinForms\ButtonBase.cs (13)
36private FlatStyle flatStyle = System.Windows.Forms.FlatStyle.Standard; 275DefaultValue(FlatStyle.Standard), 279public FlatStyle FlatStyle { 284if (!ClientUtils.IsEnumValid(value, (int)value, (int)FlatStyle.Flat, (int)FlatStyle.System)){ 285throw new InvalidEnumArgumentException("value", (int)value, typeof(FlatStyle)); 564if (FlatStyle == FlatStyle.Standard) { 577return FlatStyle != FlatStyle.System; 966private FlatStyle _cachedAdapterType; 972case FlatStyle.Standard: 975case FlatStyle.Popup: 978case FlatStyle.Flat:
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
1558if( Control.FlatStyle != FlatStyle.System ) {
winforms\Managed\System\WinForms\CheckBox.cs (5)
374if(FlatStyle != FlatStyle.System) { 395if (FlatStyle == FlatStyle.Standard) { 414if (Appearance == Appearance.Button || FlatStyle == FlatStyle.System) { 527if (this.FlatStyle == FlatStyle.System) { 534if (this.FlatStyle == FlatStyle.System) {
winforms\Managed\System\WinForms\ComboBox.cs (19)
79private FlatStyle flatStyle = FlatStyle.Standard; 629DefaultValue(FlatStyle.Standard), 633public FlatStyle FlatStyle { 639if (!ClientUtils.IsEnumValid(value, (int)value, (int)FlatStyle.Flat, (int)FlatStyle.System)) { 640throw new InvalidEnumArgumentException("value", (int)value, typeof(FlatStyle)); 870if ((!ContainsFocus || !Application.RenderWithVisualStyles) && this.FlatStyle == FlatStyle.Popup) { 1725if (FlatStyle == FlatStyle.Popup) { 1761if (FlatStyle == FlatStyle.Popup) { 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) { 6030if ((!comboBox.Enabled) ||(comboBox.FlatStyle == FlatStyle.Popup)) {
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (26)
85DefaultValue(FlatStyle.Standard) 87public FlatStyle FlatStyle 95return (FlatStyle)flatStyle; 97return FlatStyle.Standard; 102if (!ClientUtils.IsEnumValid(value, (int)value, (int)FlatStyle.Flat, (int)FlatStyle.System)) 104throw new InvalidEnumArgumentException("value", (int)value, typeof(FlatStyle)); 114internal FlatStyle FlatStyleInternal 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) 759if (this.FlatStyle == FlatStyle.Standard || this.FlatStyle == FlatStyle.System) 799else if (this.FlatStyle == FlatStyle.Flat) 867Debug.Assert(this.FlatStyle == FlatStyle.Popup, "FlatStyle.Popup is the last flat style"); 942if (this.FlatStyle == FlatStyle.System || this.FlatStyle == FlatStyle.Standard) 946else if (this.FlatStyle == FlatStyle.Flat) 979Debug.Assert(this.FlatStyle == FlatStyle.Popup, "FlatStyle.Popup is the last flat style"); 1018this.FlatStyle != FlatStyle.Flat && this.FlatStyle != FlatStyle.Popup) 1029(this.FlatStyle == FlatStyle.System || this.FlatStyle == FlatStyle.Standard))
winforms\Managed\System\WinForms\DataGridViewButtonColumn.cs (2)
78DefaultValue(FlatStyle.Standard), 82public FlatStyle FlatStyle
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (32)
275[DefaultValue(FlatStyle.Standard)] 276public FlatStyle FlatStyle 284return (FlatStyle)flatStyle; 286return FlatStyle.Standard; 291if (!ClientUtils.IsEnumValid(value, (int)value, (int)FlatStyle.Flat, (int)FlatStyle.System)) 293throw new InvalidEnumArgumentException("value", (int)value, typeof(FlatStyle)); 303internal FlatStyle FlatStyleInternal 307Debug.Assert(value >= FlatStyle.Flat && value <= FlatStyle.System); 771case FlatStyle.Standard: 772case FlatStyle.System: 774case FlatStyle.Flat: 778case FlatStyle.Popup: 808case FlatStyle.Flat: 811case FlatStyle.Popup: 1017(this.DataGridView.ApplyVisualStylesToInnerCells || this.FlatStyle == FlatStyle.Flat || this.FlatStyle == FlatStyle.Popup)) 1043if (this.DataGridView.ApplyVisualStylesToInnerCells || this.FlatStyle == FlatStyle.Flat || this.FlatStyle == FlatStyle.Popup) 1266case FlatStyle.Standard: 1267case FlatStyle.System: 1269case FlatStyle.Flat: 1273case FlatStyle.Popup: 1283case FlatStyle.Flat: 1288case FlatStyle.Popup: 1329if (this.DataGridView.ApplyVisualStylesToInnerCells && this.FlatStyle != FlatStyle.Flat && this.FlatStyle != FlatStyle.Popup) 1342if (this.FlatStyle == FlatStyle.System || this.FlatStyle == FlatStyle.Standard) 1358else if (this.FlatStyle == FlatStyle.Flat) 1461Debug.Assert(this.FlatStyle == FlatStyle.Popup);
winforms\Managed\System\WinForms\DataGridViewCheckBoxColumn.cs (2)
136DefaultValue(FlatStyle.Standard), 140public FlatStyle FlatStyle
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (23)
485[DefaultValue(FlatStyle.Standard)] 486public FlatStyle FlatStyle 494return (FlatStyle)flatStyle; 496return FlatStyle.Standard; 501if (!ClientUtils.IsEnumValid(value, (int)value, (int)FlatStyle.Flat, (int)FlatStyle.System)) 503throw new InvalidEnumArgumentException("value", (int)value, typeof(FlatStyle)); 513internal FlatStyle FlatStyleInternal 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) 1938if (this.DisplayStyle == DataGridViewComboBoxDisplayStyle.ComboBox && this.FlatStyle == FlatStyle.Popup) 1959(this.FlatStyle == FlatStyle.Standard || this.FlatStyle == FlatStyle.System) && 1966if (this.DisplayStyle == DataGridViewComboBoxDisplayStyle.ComboBox && this.FlatStyle == FlatStyle.Popup) 1981if ((this.FlatStyle == FlatStyle.Standard || this.FlatStyle == FlatStyle.System) && this.DataGridView.ApplyVisualStylesToInnerCells) 2124bool paintFlat = this.FlatStyle == FlatStyle.Flat || this.FlatStyle == FlatStyle.Popup; 2125bool paintPopup = this.FlatStyle == FlatStyle.Popup &&
winforms\Managed\System\WinForms\DataGridViewComboBoxColumn.cs (2)
317DefaultValue(FlatStyle.Standard), 321public FlatStyle FlatStyle
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (4)
301helpButton.FlatStyle = FlatStyle.System; 308applyButton.FlatStyle = FlatStyle.System; 314cancelButton.FlatStyle = FlatStyle.System; 321okButton.FlatStyle = FlatStyle.System;
winforms\Managed\System\WinForms\GroupBox.cs (8)
44FlatStyle flatStyle = FlatStyle.Standard; 227DefaultValue(FlatStyle.Standard), 230public FlatStyle FlatStyle { 236if (!ClientUtils.IsEnumValid(value, (int)value, (int)FlatStyle.Flat, (int)FlatStyle.System)) 238throw new InvalidEnumArgumentException("value", (int)value, typeof(FlatStyle)); 271return FlatStyle != FlatStyle.System;
winforms\Managed\System\WinForms\Label.cs (14)
53private static readonly BitVector32.Section StateFlatStyle = BitVector32.CreateSection((int)FlatStyle.System, StateAnimating); 113labelState[StateFlatStyle] = (int)FlatStyle.Standard; 406DefaultValue(FlatStyle.Standard), 409public FlatStyle FlatStyle { 411return (FlatStyle)labelState[StateFlatStyle]; 415if (!ClientUtils.IsEnumValid(value, (int)value, (int)FlatStyle.Flat, (int)FlatStyle.System)) 417throw new InvalidEnumArgumentException("value", (int)value, typeof(FlatStyle)); 421bool needRecreate = (labelState[StateFlatStyle] == (int)FlatStyle.System) || (value == FlatStyle.System); 1278return (FlatStyle == FlatStyle.System || !UseCompatibleTextRendering); 1305TextFormatFlags format = FlatStyle == FlatStyle.System ? TextFormatFlags.Default : CreateTextFormatFlags(proposedConstraints); 1341if (UseCompatibleTextRendering && FlatStyle != FlatStyle.System) { 1387return FlatStyle != FlatStyle.System;
winforms\Managed\System\WinForms\LinkLabel.cs (1)
205public new FlatStyle FlatStyle
winforms\Managed\System\WinForms\RadioButton.cs (3)
317if(FlatStyle != FlatStyle.System) { 334if (FlatStyle == FlatStyle.Standard) { 348if (Appearance == Appearance.Button || FlatStyle == FlatStyle.System) {
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (4)
298continueButton.FlatStyle = FlatStyle.Standard; 302quitButton.FlatStyle = FlatStyle.Standard; 306helpButton.FlatStyle = FlatStyle.Standard; 310detailsButton.FlatStyle = FlatStyle.Standard;
winforms\Managed\System\WinForms\ToolStripComboBox.cs (4)
130comboBox.FlatStyle = FlatStyle.Popup; 322DefaultValue(FlatStyle.Popup), 326public FlatStyle FlatStyle { 607this.FlatStyle = FlatStyle.Popup;