47 references to Flat
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.cs (2)
522button.FlatStyle = FlatStyle.Flat; 814button?.FlatStyle = FlatStyle.Flat;
System.Windows.Forms (41)
System\Windows\Forms\Controls\Buttons\Button.cs (1)
28/// For buttons whose style is <see cref="FlatStyle.Flat"/>, this property specifies the size, in pixels
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
999case FlatStyle.Flat:
System\Windows\Forms\Controls\Buttons\ButtonBase.FlatStyle.Docs.cs (1)
16/// <see cref="FlatStyle.Flat"/>, and <see cref="FlatStyle.Popup"/> select framework-defined modern
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxModernAdapter.cs (1)
56FlatStyle.Flat => DarkModeAdapterFactory.CreateFlatAdapter(Control),
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (1)
24FlatStyle.Flat => _modern ? new ModernFlatButtonRenderer() : new FlatButtonDarkModeRenderer(),
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonColorMath.cs (1)
84FlatStyle.Flat => new ModernFlatButtonRenderer(),
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernFlatButtonRenderer.cs (1)
11/// Renders a modern <see cref="FlatStyle.Flat"/> button with a rectangular body and a single border.
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonModernAdapter.cs (1)
56FlatStyle.Flat => DarkModeAdapterFactory.CreateFlatAdapter(Control),
System\Windows\Forms\Controls\Buttons\CheckBox.cs (3)
355&& FlatStyle is FlatStyle.Standard or FlatStyle.Flat) 357ButtonBaseAdapter modernAdapter = FlatStyle == FlatStyle.Flat 685? new CheckBoxModernAdapter(this, FlatStyle.Flat)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
541? new RadioButtonModernAdapter(this, FlatStyle.Flat)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3813&& (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup))
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatStyle.Docs.cs (1)
16/// the TextBoxBase color scheme, <see cref="FlatStyle.Flat"/> uses the same colors with a square border,
System\Windows\Forms\Controls\ComboBox\ComboBox.Modern.cs (1)
24|| FlatStyle is FlatStyle.Flat or FlatStyle.Popup;
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (2)
76if (_flatStyle != FlatStyle.Flat) 105case FlatStyle.Flat:
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (6)
76Debug.Assert(value is >= FlatStyle.Flat and <= FlatStyle.System); 533(DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 558if (DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup) 759case FlatStyle.Flat: 889else if (FlatStyle == FlatStyle.Flat) 964FlatStyle != FlatStyle.Flat && FlatStyle != FlatStyle.Popup)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (9)
251Debug.Assert(value is >= FlatStyle.Flat and <= FlatStyle.System); 662case FlatStyle.Flat: 698FlatStyle.Flat => CheckBoxRenderer.GetGlyphSize(graphics, CheckBoxState.UncheckedNormal).Width - 3, 886(DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 911if (DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup) 1177case FlatStyle.Flat: 1191case FlatStyle.Flat: 1239if (DataGridView.ApplyVisualStylesToInnerCells && FlatStyle != FlatStyle.Flat && FlatStyle != FlatStyle.Popup) 1281else if (FlatStyle == FlatStyle.Flat)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (4)
363Debug.Assert(value is >= FlatStyle.Flat and <= FlatStyle.System); 401bool paintFlat = FlatStyle is FlatStyle.Flat or FlatStyle.Popup; 1206if (FlatStyle is FlatStyle.Flat or FlatStyle.Popup) 1888bool paintFlat = FlatStyle is FlatStyle.Flat or FlatStyle.Popup;
System\Windows\Forms\Controls\GroupBox\GroupBox.FlatStyle.Docs.cs (1)
16/// surface with an enlarged caption, <see cref="FlatStyle.Flat"/> renders a rounded accent outline with an
System\Windows\Forms\Controls\GroupBox\GroupBox.Modern.cs (3)
92case FlatStyle.Flat: 193case FlatStyle.Flat: 528float styleScale = FlatStyle == FlatStyle.Flat
System\Windows\Forms\Rendering\CheckBox\AnimatedCheckGlyphRenderer.cs (1)
247if (flatStyle == FlatStyle.Flat)
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ButtonBaseDesigner.cs (4)
126else if (flatStyle is FlatStyle.Flat or FlatStyle.Popup) 147else if (flatStyle is FlatStyle.Flat or FlatStyle.Popup) 174if (flatStyle is FlatStyle.Standard or FlatStyle.Flat or FlatStyle.Popup) 207else if (flatStyle == FlatStyle.Flat)