210 references to Flat
Accessibility_Core_App (2)
CommonControl1.Designer.cs (1)
139
this.button10.FlatStyle = System.Windows.Forms.FlatStyle.
Flat
;
ContainerControls.Designer.cs (1)
219
this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.
Flat
;
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.cs (2)
526
button.FlatStyle = FlatStyle.
Flat
;
823
button.FlatStyle = FlatStyle.
Flat
;
System.Windows.Forms (25)
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)
978
case FlatStyle.
Flat
:
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
3664
&& (FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup))
3733
&& (FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup)
3785
if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup))
3791
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);
536
(DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup))
561
if (DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.
Flat
|| FlatStyle == FlatStyle.Popup)
762
case FlatStyle.
Flat
:
892
else if (FlatStyle == FlatStyle.
Flat
)
967
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)
1169
case FlatStyle.
Flat
:
1183
case FlatStyle.
Flat
:
1231
if (DataGridView.ApplyVisualStylesToInnerCells && FlatStyle != FlatStyle.
Flat
&& FlatStyle != FlatStyle.Popup)
1273
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;
1209
if (FlatStyle is FlatStyle.
Flat
or FlatStyle.Popup)
1891
bool paintFlat = FlatStyle is FlatStyle.
Flat
or FlatStyle.Popup;
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ButtonBaseDesigner.cs (4)
128
else if (flatStyle is FlatStyle.
Flat
or FlatStyle.Popup)
149
else if (flatStyle is FlatStyle.
Flat
or FlatStyle.Popup)
176
if (flatStyle is FlatStyle.Standard or FlatStyle.
Flat
or FlatStyle.Popup)
209
else if (flatStyle == FlatStyle.
Flat
)
System.Windows.Forms.Tests (173)
LinkLabelTests.cs (1)
32
[InlineData(FlatStyle.
Flat
)]
System\Windows\Forms\AbstractButtonBaseTests.cs (3)
15
control.FlatStyle = FlatStyle.
Flat
;
37
control.FlatStyle = FlatStyle.
Flat
;
66
&& flatStyle != FlatStyle.
Flat
))
System\Windows\Forms\AccessibleObjects\ButtonBase.ButtonBaseAccessibleObjectTests.cs (4)
25
[InlineData(FlatStyle.
Flat
, true, true, AccessibleStates.Focusable | AccessibleStates.Pressed)]
26
[InlineData(FlatStyle.
Flat
, false, true, AccessibleStates.None)]
27
[InlineData(FlatStyle.
Flat
, true, false, AccessibleStates.Focusable)]
28
[InlineData(FlatStyle.
Flat
, false, false, AccessibleStates.None)]
System\Windows\Forms\ButtonBaseTests.cs (41)
146
[InlineData(FlatStyle.
Flat
, true, 0x56010000)]
147
[InlineData(FlatStyle.
Flat
, false, 0x56010000)]
180
foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.
Flat
, FlatStyle.Popup, FlatStyle.Standard })
1122
yield return new object[] { true, FlatStyle.
Flat
, 1 };
1127
yield return new object[] { false, FlatStyle.
Flat
, 0 };
1187
yield return new object[] { autoSize, FlatStyle.
Flat
, 1, 0 };
1234
yield return new object[] { FlatStyle.
Flat
, FlatStyle.
Flat
, 0, 0 };
1235
yield return new object[] { FlatStyle.
Flat
, FlatStyle.Popup, 1, 0 };
1236
yield return new object[] { FlatStyle.
Flat
, FlatStyle.Standard, 1, 0 };
1237
yield return new object[] { FlatStyle.
Flat
, FlatStyle.System, 1, 1 };
1239
yield return new object[] { FlatStyle.Popup, FlatStyle.
Flat
, 1, 0 };
1244
yield return new object[] { FlatStyle.Standard, FlatStyle.
Flat
, 1, 0 };
1249
yield return new object[] { FlatStyle.System, FlatStyle.
Flat
, 1, 1 };
1293
yield return new object[] { true, FlatStyle.
Flat
, 1, 1, 0 };
1298
yield return new object[] { false, FlatStyle.
Flat
, 0, 1, 0 };
2741
yield return new object[] { FlatStyle.
Flat
, true, 1, 0, 2, 0 };
2746
yield return new object[] { FlatStyle.
Flat
, false, 0, 0, 1, 0 };
3365
yield return new object[] { autoSize, FlatStyle.
Flat
, value, expectedCallCount, 0 };
3415
yield return new object[] { true, FlatStyle.
Flat
, value, expectedCallCount, expectedCallCount, 0 };
3420
yield return new object[] { false, FlatStyle.
Flat
, value, 0, expectedCallCount, 0 };
5686
[InlineData(FlatStyle.
Flat
, Keys.Cancel, 0)]
5687
[InlineData(FlatStyle.
Flat
, Keys.Enter, 0)]
5688
[InlineData(FlatStyle.
Flat
, Keys.Space, 0)]
5710
[InlineData(FlatStyle.
Flat
, Keys.Cancel, 0)]
5711
[InlineData(FlatStyle.
Flat
, Keys.Enter, 0)]
5712
[InlineData(FlatStyle.
Flat
, Keys.Space, 0)]
5965
[InlineData(FlatStyle.
Flat
, Keys.Cancel, 0)]
5966
[InlineData(FlatStyle.
Flat
, Keys.Enter, 0)]
5967
[InlineData(FlatStyle.
Flat
, Keys.Space, 0)]
5989
[InlineData(FlatStyle.
Flat
, Keys.Cancel, 0)]
5990
[InlineData(FlatStyle.
Flat
, Keys.Enter, 0)]
5991
[InlineData(FlatStyle.
Flat
, Keys.Space, 0)]
7781
[InlineData(FlatStyle.
Flat
, 1)]
8126
[InlineData(FlatStyle.
Flat
, 1)]
8631
[InlineData(FlatStyle.
Flat
, 2)]
9095
yield return new object[] { FlatStyle.
Flat
, IntPtr.Zero, IntPtr.Zero, 0 };
9096
yield return new object[] { FlatStyle.
Flat
, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 };
9097
yield return new object[] { FlatStyle.
Flat
, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 };
9098
yield return new object[] { FlatStyle.
Flat
, PARAM.FromLowHigh(123, 456), IntPtr.Zero, 0 };
9187
yield return new object[] { FlatStyle.
Flat
, (IntPtr)250 };
System\Windows\Forms\ButtonRenderingTests.cs (1)
229
button.FlatStyle = FlatStyle.
Flat
;
System\Windows\Forms\ButtonTests.cs (63)
168
[InlineData(FlatStyle.
Flat
, true, 0x5601000B)]
169
[InlineData(FlatStyle.
Flat
, false, 0x5601000B)]
202
foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.
Flat
, FlatStyle.Popup, FlatStyle.Standard })
1037
[InlineData(true, FlatStyle.
Flat
, AccessibleStates.Pressed | AccessibleStates.Focusable, AccessibleRole.PushButton)]
1041
[InlineData(false, FlatStyle.
Flat
, AccessibleStates.None, AccessibleRole.None)]
1376
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(8, 8) };
1377
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(8, 8) };
1378
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(8, 8) };
1379
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(8, 8) };
1380
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(8, 8) };
1381
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(8, 8) };
1382
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(8, 8) };
1383
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(8, 8) };
1384
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(8, 8) };
1385
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(8, 8) };
1386
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(8, 8) };
1387
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(8, 8) };
1415
foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.
Flat
, FlatStyle.Popup, FlatStyle.Standard })
1454
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(12, 14) };
1455
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(12, 14) };
1456
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(12, 14) };
1457
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(12, 14) };
1458
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(12, 14) };
1459
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(12, 14) };
1460
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(12, 14) };
1461
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(12, 14) };
1462
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(12, 14) };
1463
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(12, 14) };
1464
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(12, 14) };
1465
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(12, 14) };
1493
foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.
Flat
, FlatStyle.Popup, FlatStyle.Standard })
1533
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(12, 14) };
1534
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(12, 14) };
1535
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(12, 14) };
1536
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(12, 14) };
1537
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(12, 14) };
1538
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(12, 14) };
1539
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(12, 14) };
1540
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(12, 14) };
1541
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(12, 14) };
1542
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(12, 14) };
1543
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(12, 14) };
1544
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(12, 14) };
1546
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowOnly, Size.Empty, new Size(12, 14) };
1547
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowOnly, new Size(-1, -2), new Size(12, 14) };
1548
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowOnly, new Size(-2, -1), new Size(12, 14) };
1549
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowOnly, new Size(-1, -1), new Size(12, 14) };
1550
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowOnly, new Size(1, 2), new Size(12, 14) };
1551
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowOnly, new Size(2, 1), new Size(12, 14) };
1552
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowOnly, new Size(1, 1), new Size(12, 14) };
1553
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowOnly, new Size(10, 20), new Size(12, 14) };
1554
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowOnly, new Size(30, 40), new Size(12, 14) };
1555
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowOnly, new Size(30, int.MaxValue), new Size(12, 14) };
1556
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowOnly, new Size(int.MaxValue, 40), new Size(12, 14) };
1557
yield return new object[] { FlatStyle.
Flat
, AutoSizeMode.GrowOnly, new Size(int.MaxValue, int.MaxValue), new Size(12, 14) };
1629
FlatStyle = FlatStyle.
Flat
,
1653
FlatStyle = FlatStyle.
Flat
,
1838
yield return new object[] { FlatStyle.
Flat
, true, 1, 0, 2, 0 };
1843
yield return new object[] { FlatStyle.
Flat
, false, 0, 0, 1, 0 };
3560
yield return new object[] { FlatStyle.
Flat
, IntPtr.Zero, (IntPtr)250, 1 };
3561
yield return new object[] { FlatStyle.
Flat
, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), (IntPtr)250, 1 };
3562
yield return new object[] { FlatStyle.
Flat
, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), (IntPtr)250, 1 };
3563
yield return new object[] { FlatStyle.
Flat
, PARAM.FromLowHigh(123, 456), (IntPtr)250, 0 };
System\Windows\Forms\CheckBoxTests.cs (2)
777
yield return new object[] { Appearance.Button, FlatStyle.
Flat
};
781
yield return new object[] { Appearance.Normal, FlatStyle.
Flat
};
System\Windows\Forms\ComboBoxTests.cs (16)
1773
yield return new object[] { FlatStyle.
Flat
, false, true, allPaintingInWmPaint, true, 0 };
1777
yield return new object[] { FlatStyle.
Flat
, false, false, allPaintingInWmPaint, true, 0 };
1782
yield return new object[] { FlatStyle.
Flat
, true, true, allPaintingInWmPaint, true, 0 };
1786
yield return new object[] { FlatStyle.
Flat
, true, false, allPaintingInWmPaint, true, 1 };
1850
yield return new object[] { FlatStyle.
Flat
, false, true, allPaintingInWmPaint, 0 };
1854
yield return new object[] { FlatStyle.
Flat
, false, false, allPaintingInWmPaint, 0 };
1859
yield return new object[] { FlatStyle.
Flat
, true, true, allPaintingInWmPaint, 0 };
1863
yield return new object[] { FlatStyle.
Flat
, true, false, allPaintingInWmPaint, 1 };
1941
yield return new object[] { FlatStyle.
Flat
, false, true, allPaintingInWmPaint, true, 0 };
1945
yield return new object[] { FlatStyle.
Flat
, false, false, allPaintingInWmPaint, true, 0 };
1950
yield return new object[] { FlatStyle.
Flat
, true, true, allPaintingInWmPaint, false, 1 };
1954
yield return new object[] { FlatStyle.
Flat
, true, false, allPaintingInWmPaint, false, 1 };
2040
yield return new object[] { FlatStyle.
Flat
, false, true, allPaintingInWmPaint, 0 };
2044
yield return new object[] { FlatStyle.
Flat
, false, false, allPaintingInWmPaint, 0 };
2049
yield return new object[] { FlatStyle.
Flat
, true, true, allPaintingInWmPaint, 1 };
2053
yield return new object[] { FlatStyle.
Flat
, true, false, allPaintingInWmPaint, 1 };
System\Windows\Forms\GroupBoxTests.cs (30)
127
[InlineData(FlatStyle.
Flat
, null, 0x56000000)]
618
[InlineData(FlatStyle.
Flat
, true, true, true)]
648
[InlineData(FlatStyle.
Flat
, FlatStyle.
Flat
, false, true, true)]
649
[InlineData(FlatStyle.
Flat
, FlatStyle.Popup, true, true, true)]
650
[InlineData(FlatStyle.
Flat
, FlatStyle.Standard, true, true, true)]
651
[InlineData(FlatStyle.
Flat
, FlatStyle.System, true, false, false)]
652
[InlineData(FlatStyle.Popup, FlatStyle.
Flat
, true, true, true)]
656
[InlineData(FlatStyle.Standard, FlatStyle.
Flat
, true, true, true)]
660
[InlineData(FlatStyle.System, FlatStyle.
Flat
, true, true, true)]
693
[InlineData(FlatStyle.
Flat
, true, true, true, 1, 0)]
741
[InlineData(FlatStyle.
Flat
, true, true, true, 1, 0)]
795
[InlineData(FlatStyle.
Flat
, FlatStyle.
Flat
, false, true, true, 0, 0)]
796
[InlineData(FlatStyle.
Flat
, FlatStyle.Popup, true, true, true, 1, 0)]
797
[InlineData(FlatStyle.
Flat
, FlatStyle.Standard, true, true, true, 1, 0)]
798
[InlineData(FlatStyle.
Flat
, FlatStyle.System, true, false, false, 0, 1)]
799
[InlineData(FlatStyle.Popup, FlatStyle.
Flat
, true, true, true, 1, 0)]
803
[InlineData(FlatStyle.Standard, FlatStyle.
Flat
, true, true, true, 1, 0)]
807
[InlineData(FlatStyle.System, FlatStyle.
Flat
, true, true, true, 0, 1)]
858
[InlineData(FlatStyle.
Flat
, FlatStyle.
Flat
, false, true, true, 0, 0)]
859
[InlineData(FlatStyle.
Flat
, FlatStyle.Popup, true, true, true, 1, 0)]
860
[InlineData(FlatStyle.
Flat
, FlatStyle.Standard, true, true, true, 1, 0)]
861
[InlineData(FlatStyle.
Flat
, FlatStyle.System, true, false, false, 0, 1)]
862
[InlineData(FlatStyle.Popup, FlatStyle.
Flat
, true, true, true, 1, 0)]
866
[InlineData(FlatStyle.Standard, FlatStyle.
Flat
, true, true, true, 1, 0)]
870
[InlineData(FlatStyle.System, FlatStyle.
Flat
, true, true, true, 0, 1)]
2169
[InlineData(FlatStyle.
Flat
)]
2214
[InlineData(FlatStyle.
Flat
)]
System\Windows\Forms\LabelTests.cs (4)
353
[InlineData(FlatStyle.
Flat
)]
371
if (style != FlatStyle.
Flat
)
373
label.FlatStyle = FlatStyle.
Flat
;
376
Assert.Equal(FlatStyle.
Flat
, label.FlatStyle);
System\Windows\Forms\RadioButtonTests.cs (7)
343
yield return new object[] { autoSize, FlatStyle.
Flat
, value, expectedCallCount, 0 };
485
[InlineData(FlatStyle.
Flat
, "", true, AccessibleStates.Focusable)]
489
[InlineData(FlatStyle.
Flat
, "Description", true, AccessibleStates.Focusable)]
493
[InlineData(FlatStyle.
Flat
, "", false, AccessibleStates.None)]
497
[InlineData(FlatStyle.
Flat
, "Description", false, AccessibleStates.None)]
1657
[InlineData(Appearance.Button, FlatStyle.
Flat
)]
1661
[InlineData(Appearance.Normal, FlatStyle.
Flat
)]
System\Windows\Forms\ToolStripComboBoxTests.cs (1)
172
[InlineData(FlatStyle.
Flat
)]
WinFormsControlsTest (4)
Buttons.cs (1)
13
FlatStyle.
Flat
,
ComboBoxes.Designer.cs (3)
144
this.comboBox7.FlatStyle = System.Windows.Forms.FlatStyle.
Flat
;
157
this.comboBox8.FlatStyle = System.Windows.Forms.FlatStyle.
Flat
;
170
this.comboBox9.FlatStyle = System.Windows.Forms.FlatStyle.
Flat
;