49 references to System
System.Windows.Forms (43)
System\Windows\Forms\Controls\Buttons\Button.cs (1)
86if (FlatStyle != FlatStyle.System)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
636FlatStyle != FlatStyle.System;
System\Windows\Forms\Controls\Buttons\ButtonBase.FlatStyle.Docs.cs (1)
21/// <see cref="FlatStyle.System"/> requests the native control and is not modernized. A two-state
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
707if (Control.FlatStyle != FlatStyle.System)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (1)
26FlatStyle.System => new SystemButtonDarkModeRenderer(),
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonColorMath.cs (1)
85FlatStyle.System => new SystemButtonDarkModeRenderer(),
System\Windows\Forms\Controls\Buttons\CheckBox.Appearance.Docs.cs (1)
18/// that property is <see cref="FlatStyle.System"/>. A check box with <see cref="ThreeState"/> enabled retains
System\Windows\Forms\Controls\Buttons\CheckBox.cs (3)
368if (FlatStyle != FlatStyle.System) 526if (FlatStyle == FlatStyle.System) 543if (FlatStyle == FlatStyle.System)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
297if (FlatStyle != FlatStyle.System) 335Appearance == Appearance.Button || FlatStyle == FlatStyle.System
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatStyle.Docs.cs (1)
19/// <see cref="FlatStyle.System"/> style is not modernized.
System\Windows\Forms\Controls\ComboBox\ComboBox.Modern.cs (4)
20&& FlatStyle != FlatStyle.System; 657bool recreateSystemHandle = FlatStyle == FlatStyle.System 751/// transitions only repaint. <see cref="FlatStyle.System"/> remains native. 758if (FlatStyle == FlatStyle.System)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (4)
76Debug.Assert(value is >= FlatStyle.Flat and <= FlatStyle.System); 715case FlatStyle.System: 885if (FlatStyle is FlatStyle.System or FlatStyle.Standard) 975(FlatStyle == FlatStyle.System || FlatStyle == FlatStyle.Standard))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (4)
251Debug.Assert(value is >= FlatStyle.Flat and <= FlatStyle.System); 660case FlatStyle.System: 1175case FlatStyle.System: 1253if (FlatStyle is FlatStyle.System or FlatStyle.Standard)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (3)
363Debug.Assert(value is >= FlatStyle.Flat and <= FlatStyle.System); 1712(FlatStyle == FlatStyle.Standard || FlatStyle == FlatStyle.System) && 1734if ((FlatStyle == FlatStyle.Standard || FlatStyle == FlatStyle.System) && DataGridView.ApplyVisualStylesToInnerCells)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
194if (value != FlatStyle.System) 237private bool OwnerDraw => FlatStyle != FlatStyle.System;
System\Windows\Forms\Controls\GroupBox\GroupBox.FlatStyle.Docs.cs (1)
18/// <see cref="FlatStyle.System"/> remains a native <c>BS_GROUPBOX</c> in every mode.
System\Windows\Forms\Controls\GroupBox\GroupBox.Modern.cs (1)
784if (FlatStyle == FlatStyle.System)
System\Windows\Forms\Controls\Labels\Label.cs (7)
34private static readonly BitVector32.Section s_stateFlatStyle = BitVector32.CreateSection((int)FlatStyle.System, s_stateAnimating); 334bool needRecreate = (_labelState[s_stateFlatStyle] == (int)FlatStyle.System) || (value == FlatStyle.System); 1045internal virtual bool UseGDIMeasuring() => (FlatStyle == FlatStyle.System || !UseCompatibleTextRendering); 1072TextFormatFlags format = FlatStyle == FlatStyle.System ? TextFormatFlags.Default : CreateTextFormatFlags(proposedConstraints); 1104if (UseCompatibleTextRendering && FlatStyle != FlatStyle.System) 1144private bool IsOwnerDraw() => FlatStyle != FlatStyle.System;
System\Windows\Forms\Design\ComponentEditorForm.cs (4)
270_helpButton.FlatStyle = FlatStyle.System; 277_applyButton.FlatStyle = FlatStyle.System; 283_cancelButton.FlatStyle = FlatStyle.System; 290_okButton.FlatStyle = FlatStyle.System;
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\ButtonBaseDesigner.cs (6)
107if (flatStyle is FlatStyle.Standard or FlatStyle.System) 122else if (flatStyle == FlatStyle.System) 143else if (flatStyle == FlatStyle.System) 163if (flatStyle == FlatStyle.System) 178else if (flatStyle == FlatStyle.System) 203else if (flatStyle == FlatStyle.System)