33 references to Flat
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.cs (2)
522
button.FlatStyle = FlatStyle.
Flat
;
814
button?.FlatStyle = FlatStyle.
Flat
;
System.Windows.Forms (27)
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 (2)
365
/// <term><see cref="FlatStyle.
Flat
"/></term>
1037
case FlatStyle.
Flat
:
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (1)
18
FlatStyle.
Flat
=> new FlatButtonDarkModeRenderer(),
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
3651
&& (FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup))
3759
&& (FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup)
3825
if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup))
3831
if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup))
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (6)
76
Debug.Assert(value is >= FlatStyle.
Flat
and <= FlatStyle.System);
533
(DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup))
558
if (DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup)
759
case FlatStyle.
Flat
:
889
else if (FlatStyle == FlatStyle.
Flat
)
964
FlatStyle != FlatStyle.
Flat
&& FlatStyle != FlatStyle.Popup)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (9)
251
Debug.Assert(value is >= FlatStyle.
Flat
and <= FlatStyle.System);
662
case FlatStyle.
Flat
:
698
FlatStyle.
Flat
=> CheckBoxRenderer.GetGlyphSize(graphics, CheckBoxState.UncheckedNormal).Width - 3,
886
(DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup))
911
if (DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup)
1177
case FlatStyle.
Flat
:
1191
case FlatStyle.
Flat
:
1239
if (DataGridView.ApplyVisualStylesToInnerCells && FlatStyle != FlatStyle.
Flat
&& FlatStyle != FlatStyle.Popup)
1281
else if (FlatStyle == FlatStyle.
Flat
)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (4)
363
Debug.Assert(value is >= FlatStyle.
Flat
and <= FlatStyle.System);
401
bool paintFlat = FlatStyle is FlatStyle.
Flat
or FlatStyle.Popup;
1206
if (FlatStyle is FlatStyle.
Flat
or FlatStyle.Popup)
1888
bool paintFlat = FlatStyle is FlatStyle.
Flat
or FlatStyle.Popup;
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ButtonBaseDesigner.cs (4)
126
else if (flatStyle is FlatStyle.
Flat
or FlatStyle.Popup)
147
else if (flatStyle is FlatStyle.
Flat
or FlatStyle.Popup)
174
if (flatStyle is FlatStyle.Standard or FlatStyle.
Flat
or FlatStyle.Popup)
207
else if (flatStyle == FlatStyle.
Flat
)