210 references to Flat
Accessibility_Core_App (2)
CommonControl1.Designer.cs (1)
139this.button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
ContainerControls.Designer.cs (1)
219this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.cs (2)
526button.FlatStyle = FlatStyle.Flat; 823button.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)
978case FlatStyle.Flat:
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
3664&& (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 3733&& (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup) 3785if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 3791if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup))
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (6)
76Debug.Assert(value is >= FlatStyle.Flat and <= FlatStyle.System); 536(DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 561if (DataGridView.ApplyVisualStylesToInnerCells || FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup) 762case FlatStyle.Flat: 892else if (FlatStyle == FlatStyle.Flat) 967FlatStyle != 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) 1169case FlatStyle.Flat: 1183case FlatStyle.Flat: 1231if (DataGridView.ApplyVisualStylesToInnerCells && FlatStyle != FlatStyle.Flat && FlatStyle != FlatStyle.Popup) 1273else 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; 1209if (FlatStyle is FlatStyle.Flat or FlatStyle.Popup) 1891bool paintFlat = FlatStyle is FlatStyle.Flat or FlatStyle.Popup;
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ButtonBaseDesigner.cs (4)
128else if (flatStyle is FlatStyle.Flat or FlatStyle.Popup) 149else if (flatStyle is FlatStyle.Flat or FlatStyle.Popup) 176if (flatStyle is FlatStyle.Standard or FlatStyle.Flat or FlatStyle.Popup) 209else if (flatStyle == FlatStyle.Flat)
System.Windows.Forms.Tests (173)
LinkLabelTests.cs (1)
32[InlineData(FlatStyle.Flat)]
System\Windows\Forms\AbstractButtonBaseTests.cs (3)
15control.FlatStyle = FlatStyle.Flat; 37control.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)] 180foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Flat, FlatStyle.Popup, FlatStyle.Standard }) 1122yield return new object[] { true, FlatStyle.Flat, 1 }; 1127yield return new object[] { false, FlatStyle.Flat, 0 }; 1187yield return new object[] { autoSize, FlatStyle.Flat, 1, 0 }; 1234yield return new object[] { FlatStyle.Flat, FlatStyle.Flat, 0, 0 }; 1235yield return new object[] { FlatStyle.Flat, FlatStyle.Popup, 1, 0 }; 1236yield return new object[] { FlatStyle.Flat, FlatStyle.Standard, 1, 0 }; 1237yield return new object[] { FlatStyle.Flat, FlatStyle.System, 1, 1 }; 1239yield return new object[] { FlatStyle.Popup, FlatStyle.Flat, 1, 0 }; 1244yield return new object[] { FlatStyle.Standard, FlatStyle.Flat, 1, 0 }; 1249yield return new object[] { FlatStyle.System, FlatStyle.Flat, 1, 1 }; 1293yield return new object[] { true, FlatStyle.Flat, 1, 1, 0 }; 1298yield return new object[] { false, FlatStyle.Flat, 0, 1, 0 }; 2741yield return new object[] { FlatStyle.Flat, true, 1, 0, 2, 0 }; 2746yield return new object[] { FlatStyle.Flat, false, 0, 0, 1, 0 }; 3365yield return new object[] { autoSize, FlatStyle.Flat, value, expectedCallCount, 0 }; 3415yield return new object[] { true, FlatStyle.Flat, value, expectedCallCount, expectedCallCount, 0 }; 3420yield 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)] 9095yield return new object[] { FlatStyle.Flat, IntPtr.Zero, IntPtr.Zero, 0 }; 9096yield return new object[] { FlatStyle.Flat, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 }; 9097yield return new object[] { FlatStyle.Flat, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), IntPtr.Zero, 0 }; 9098yield return new object[] { FlatStyle.Flat, PARAM.FromLowHigh(123, 456), IntPtr.Zero, 0 }; 9187yield return new object[] { FlatStyle.Flat, (IntPtr)250 };
System\Windows\Forms\ButtonRenderingTests.cs (1)
229button.FlatStyle = FlatStyle.Flat;
System\Windows\Forms\ButtonTests.cs (63)
168[InlineData(FlatStyle.Flat, true, 0x5601000B)] 169[InlineData(FlatStyle.Flat, false, 0x5601000B)] 202foreach (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)] 1376yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(8, 8) }; 1377yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(8, 8) }; 1378yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(8, 8) }; 1379yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(8, 8) }; 1380yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(8, 8) }; 1381yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(8, 8) }; 1382yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(8, 8) }; 1383yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(8, 8) }; 1384yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(8, 8) }; 1385yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(8, 8) }; 1386yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(8, 8) }; 1387yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(8, 8) }; 1415foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Flat, FlatStyle.Popup, FlatStyle.Standard }) 1454yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(12, 14) }; 1455yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(12, 14) }; 1456yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(12, 14) }; 1457yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(12, 14) }; 1458yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(12, 14) }; 1459yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(12, 14) }; 1460yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(12, 14) }; 1461yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(12, 14) }; 1462yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(12, 14) }; 1463yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(12, 14) }; 1464yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(12, 14) }; 1465yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(12, 14) }; 1493foreach (FlatStyle flatStyle in new FlatStyle[] { FlatStyle.Flat, FlatStyle.Popup, FlatStyle.Standard }) 1533yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, Size.Empty, new Size(12, 14) }; 1534yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-1, -2), new Size(12, 14) }; 1535yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-2, -1), new Size(12, 14) }; 1536yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(-1, -1), new Size(12, 14) }; 1537yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(1, 2), new Size(12, 14) }; 1538yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(2, 1), new Size(12, 14) }; 1539yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(1, 1), new Size(12, 14) }; 1540yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(10, 20), new Size(12, 14) }; 1541yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(30, 40), new Size(12, 14) }; 1542yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(30, int.MaxValue), new Size(12, 14) }; 1543yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, 40), new Size(12, 14) }; 1544yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowAndShrink, new Size(int.MaxValue, int.MaxValue), new Size(12, 14) }; 1546yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, Size.Empty, new Size(12, 14) }; 1547yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(-1, -2), new Size(12, 14) }; 1548yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(-2, -1), new Size(12, 14) }; 1549yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(-1, -1), new Size(12, 14) }; 1550yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(1, 2), new Size(12, 14) }; 1551yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(2, 1), new Size(12, 14) }; 1552yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(1, 1), new Size(12, 14) }; 1553yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(10, 20), new Size(12, 14) }; 1554yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(30, 40), new Size(12, 14) }; 1555yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(30, int.MaxValue), new Size(12, 14) }; 1556yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(int.MaxValue, 40), new Size(12, 14) }; 1557yield return new object[] { FlatStyle.Flat, AutoSizeMode.GrowOnly, new Size(int.MaxValue, int.MaxValue), new Size(12, 14) }; 1629FlatStyle = FlatStyle.Flat, 1653FlatStyle = FlatStyle.Flat, 1838yield return new object[] { FlatStyle.Flat, true, 1, 0, 2, 0 }; 1843yield return new object[] { FlatStyle.Flat, false, 0, 0, 1, 0 }; 3560yield return new object[] { FlatStyle.Flat, IntPtr.Zero, (IntPtr)250, 1 }; 3561yield return new object[] { FlatStyle.Flat, PARAM.FromLowHigh(0, (int)PInvoke.BN_CLICKED), (IntPtr)250, 1 }; 3562yield return new object[] { FlatStyle.Flat, PARAM.FromLowHigh(123, (int)PInvoke.BN_CLICKED), (IntPtr)250, 1 }; 3563yield return new object[] { FlatStyle.Flat, PARAM.FromLowHigh(123, 456), (IntPtr)250, 0 };
System\Windows\Forms\CheckBoxTests.cs (2)
777yield return new object[] { Appearance.Button, FlatStyle.Flat }; 781yield return new object[] { Appearance.Normal, FlatStyle.Flat };
System\Windows\Forms\ComboBoxTests.cs (16)
1773yield return new object[] { FlatStyle.Flat, false, true, allPaintingInWmPaint, true, 0 }; 1777yield return new object[] { FlatStyle.Flat, false, false, allPaintingInWmPaint, true, 0 }; 1782yield return new object[] { FlatStyle.Flat, true, true, allPaintingInWmPaint, true, 0 }; 1786yield return new object[] { FlatStyle.Flat, true, false, allPaintingInWmPaint, true, 1 }; 1850yield return new object[] { FlatStyle.Flat, false, true, allPaintingInWmPaint, 0 }; 1854yield return new object[] { FlatStyle.Flat, false, false, allPaintingInWmPaint, 0 }; 1859yield return new object[] { FlatStyle.Flat, true, true, allPaintingInWmPaint, 0 }; 1863yield return new object[] { FlatStyle.Flat, true, false, allPaintingInWmPaint, 1 }; 1941yield return new object[] { FlatStyle.Flat, false, true, allPaintingInWmPaint, true, 0 }; 1945yield return new object[] { FlatStyle.Flat, false, false, allPaintingInWmPaint, true, 0 }; 1950yield return new object[] { FlatStyle.Flat, true, true, allPaintingInWmPaint, false, 1 }; 1954yield return new object[] { FlatStyle.Flat, true, false, allPaintingInWmPaint, false, 1 }; 2040yield return new object[] { FlatStyle.Flat, false, true, allPaintingInWmPaint, 0 }; 2044yield return new object[] { FlatStyle.Flat, false, false, allPaintingInWmPaint, 0 }; 2049yield return new object[] { FlatStyle.Flat, true, true, allPaintingInWmPaint, 1 }; 2053yield 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)] 371if (style != FlatStyle.Flat) 373label.FlatStyle = FlatStyle.Flat; 376Assert.Equal(FlatStyle.Flat, label.FlatStyle);
System\Windows\Forms\RadioButtonTests.cs (7)
343yield 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)
13FlatStyle.Flat,
ComboBoxes.Designer.cs (3)
144this.comboBox7.FlatStyle = System.Windows.Forms.FlatStyle.Flat; 157this.comboBox8.FlatStyle = System.Windows.Forms.FlatStyle.Flat; 170this.comboBox9.FlatStyle = System.Windows.Forms.FlatStyle.Flat;