1928 references to ControlStyles
System.Windows.Forms (277)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (2)
85=> this.TryGetOwnerAs(out Control? owner) && owner.GetStyle(ControlStyles.ContainerControl) 349if (this.TryGetOwnerAs(out Control? owner) && owner.GetStyle(ControlStyles.UseTextForAccessibility))
System\Windows\Forms\ActiveX\AxHost.cs (1)
241SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (1)
330if (GetStyle(ControlStyles.ResizeRedraw))
System\Windows\Forms\Control.cs (74)
262private ControlStyles _controlStyle; 323ControlStyles.AllPaintingInWmPaint 324| ControlStyles.UserPaint 325| ControlStyles.StandardClick 326| ControlStyles.StandardDoubleClick 327| ControlStyles.UseTextForAccessibility 328| ControlStyles.Selectable, 810if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 884SetStyle(ControlStyles.ResizeRedraw, true); 1114return cacheTextCounter > 0 || GetStyle(ControlStyles.CacheText); 1119if (GetStyle(ControlStyles.CacheText) || !IsHandleCreated) 1321if (GetStyle(ControlStyles.ContainerControl)) 1724get => GetStyle(ControlStyles.OptimizedDoubleBuffer); 1731SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, value); 1735SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 1741private bool DoubleBufferingEnabled => GetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint); 1831if (IsHandleCreated && !GetStyle(ControlStyles.UserPaint)) 2392private bool IsValidBackColor(Color c) => c.IsEmpty || GetStyle(ControlStyles.SupportsTransparentBackColor) || c.A == 255; 2776=> GetStyle(ControlStyles.SupportsTransparentBackColor) && BackColor.A < 255; 2779=> GetStyle(ControlStyles.SupportsTransparentBackColor) && c.A < 255; 2829get => GetStyle(ControlStyles.ResizeRedraw); 2830set => SetStyle(ControlStyles.ResizeRedraw, value); 4333if ((_controlStyle & ControlStyles.Selectable) != ControlStyles.Selectable) 5256return ((ctl._controlStyle & ControlStyles.ContainerControl) == ControlStyles.ContainerControl && ctl is IContainerControl); 5327if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified & BoundsSpecified.Width) != 0) 5333if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified & BoundsSpecified.Height) != 0) 5728protected bool GetStyle(ControlStyles flag) => (_controlStyle & flag) == flag; 5782if (!GetStyle(ControlStyles.UserPaint)) 5835!GetStyle(ControlStyles.Opaque)); 5876bErase: !_controlStyle.HasFlag(ControlStyles.Opaque)); 5924bErase: !_controlStyle.HasFlag(ControlStyles.Opaque)); 6771if (GetStyle(ControlStyles.UserPaint)) 7084if (GetStyle(ControlStyles.UserPaint)) 7267if (!GetStyle(ControlStyles.UserPaint)) 7306if (Application.IsDarkModeEnabled && GetStyle(ControlStyles.ApplyThemingImplicitly)) 7887if (GetStyle(ControlStyles.ResizeRedraw)) 7961if ((_controlStyle & ControlStyles.ResizeRedraw) == ControlStyles.ResizeRedraw 8283if (!GetStyle(ControlStyles.Opaque)) 8484if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.GetStyle(ControlStyles.Selectable)) 8778if (GetStyle(ControlStyles.UserPaint)) 9623if (ScaleHelper.IsScalingRequirementMet && !GetStyle(ControlStyles.UserPaint) && !IsFontSet()) 9804if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth) 9810if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight) 9834if (!GetStyle(ControlStyles.FixedWidth)) 9839if (!GetStyle(ControlStyles.FixedHeight)) 10254protected void SetStyle(ControlStyles flag, bool value) 10457return GetStyle(ControlStyles.ContainerControl); 11161if (GetStyle(ControlStyles.UserPaint)) 11165if (!GetStyle(ControlStyles.AllPaintingInWmPaint)) 11307if (!GetStyle(ControlStyles.CacheText)) 11388if (!GetStyle(ControlStyles.UserMouse)) 11402if (button == MouseButtons.Left && GetStyle(ControlStyles.Selectable)) 11544if (!GetStyle(ControlStyles.UserMouse)) 11563if (!GetStyle(ControlStyles.UserMouse)) 11577bool fireClick = _controlStyle.HasFlag(ControlStyles.StandardClick) 11723bool doubleBuffered = DoubleBuffered || (GetStyle(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled); 11760bool paintBackground = (usingBeginPaint && GetStyle(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered; 12179if ((_controlStyle & ControlStyles.EnableNotifyMessage) == ControlStyles.EnableNotifyMessage) 12231if (GetStyle(ControlStyles.UserPaint)) 12243if (GetStyle(ControlStyles.UserPaint)) 12363if (GetStyle(ControlStyles.StandardDoubleClick)) 12380if (GetStyle(ControlStyles.StandardDoubleClick)) 12405if (GetStyle(ControlStyles.StandardDoubleClick)) 12456if (GetStyle(ControlStyles.StandardDoubleClick))
System\Windows\Forms\Controls\Buttons\Button.cs (5)
39SetStyle(ControlStyles.StandardClick | ControlStyles.StandardDoubleClick, false); 116if (GetStyle(ControlStyles.UserPaint)) 224if (GetStyle(ControlStyles.UserPaint)) 234if (GetStyle(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (14)
67ControlStyles.SupportsTransparentBackColor 68| ControlStyles.Opaque 69| ControlStyles.ResizeRedraw 70| ControlStyles.OptimizedDoubleBuffer 72| ControlStyles.CacheText 73| ControlStyles.StandardClick, 79SetStyle(ControlStyles.UserMouse | ControlStyles.UserPaint, OwnerDraw); 82SetStyle(ControlStyles.ApplyThemingImplicitly, true); 936Debug.Assert(GetStyle(ControlStyles.UserPaint), "Shouldn't be in PaintControl when control is not UserPaint style"); 1190if (GetStyle(ControlStyles.UserPaint)) 1240if (OwnerDraw != GetStyle(ControlStyles.UserPaint)) 1242SetStyle(ControlStyles.UserMouse | ControlStyles.UserPaint, OwnerDraw);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
45SetStyle(ControlStyles.StandardClick | ControlStyles.StandardDoubleClick, false);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
46SetStyle(ControlStyles.StandardClick, false); 470&& GetStyle(ControlStyles.UserPaint)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (8)
118SetStyle(ControlStyles.UserPaint | 119ControlStyles.UseTextForAccessibility | 120ControlStyles.StandardClick, false); 1999else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX && GetStyle(ControlStyles.UserPaint)) 3662if (!Application.RenderWithVisualStyles && !GetStyle(ControlStyles.UserPaint) 3732if (!GetStyle(ControlStyles.UserPaint) 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\DataGridView.cs (5)
384SetStyle(ControlStyles.UserPaint | 385ControlStyles.Opaque | 386ControlStyles.UserMouse, true); 388SetStyle(ControlStyles.SupportsTransparentBackColor, false); 391SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (4)
115SetStyle(ControlStyles.FixedHeight, true); 119SetStyle(ControlStyles.UserPaint | ControlStyles.StandardClick, false); 123SetStyle(ControlStyles.UseTextForAccessibility, false);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (10)
33SetStyle(ControlStyles.ContainerControl, true); 34SetStyle(ControlStyles.SupportsTransparentBackColor | ControlStyles.UserPaint | 35ControlStyles.ResizeRedraw, OwnerDraw); 37SetStyle(ControlStyles.Selectable, false); 197SetStyle(ControlStyles.ContainerControl, true); 199SetStyle(ControlStyles.SupportsTransparentBackColor | 200ControlStyles.UserPaint | 201ControlStyles.ResizeRedraw | 202ControlStyles.UserMouse, OwnerDraw);
System\Windows\Forms\Controls\Labels\FocusableLabel.cs (1)
14SetStyle(ControlStyles.Selectable, true);
System\Windows\Forms\Controls\Labels\Label.cs (10)
68SetStyle(ControlStyles.UserPaint | 69ControlStyles.SupportsTransparentBackColor | 70ControlStyles.OptimizedDoubleBuffer, IsOwnerDraw()); 72SetStyle(ControlStyles.FixedHeight | 73ControlStyles.Selectable, false); 75SetStyle(ControlStyles.ResizeRedraw, true); 78SetStyle(ControlStyles.ApplyThemingImplicitly, true); 340SetStyle(ControlStyles.UserPaint 341| ControlStyles.SupportsTransparentBackColor 342| ControlStyles.OptimizedDoubleBuffer, OwnerDraw);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (8)
55SetStyle(ControlStyles.AllPaintingInWmPaint 56| ControlStyles.OptimizedDoubleBuffer 57| ControlStyles.Opaque 58| ControlStyles.UserPaint 59| ControlStyles.StandardClick 60| ControlStyles.ResizeRedraw, 1009bool optimizeBackgroundRendering = !GetStyle(ControlStyles.OptimizedDoubleBuffer); 1718SetStyle(ControlStyles.Selectable, selectable);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
67SetStyle(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (4)
121SetStyle(ControlStyles.UserPaint | ControlStyles.StandardClick | ControlStyles.UseTextForAccessibility, false); 124SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\ListView\ListView.cs (3)
225SetStyle(ControlStyles.UserPaint, false); 226SetStyle(ControlStyles.StandardClick, false); 227SetStyle(ControlStyles.UseTextForAccessibility, false);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (3)
138SetStyle(ControlStyles.UserPaint, false); 139SetStyle(ControlStyles.StandardClick, false); 141SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (9)
111SetStyle(ControlStyles.Opaque | ControlStyles.Selectable, false); 112SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.SupportsTransparentBackColor, true); 115SetStyle(ControlStyles.ApplyThemingImplicitly, true); 836SetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth, true); 842SetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth, false);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (4)
40SetStyle(ControlStyles.UserPaint | ControlStyles.UseTextForAccessibility | ControlStyles.Selectable, false); 42SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
21SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
16SetStyle(ControlStyles.Selectable, true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
16SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
57SetStyle(ControlStyles.Selectable, false);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
134SetStyle(ControlStyles.OptimizedDoubleBuffer, true); 135SetStyle(ControlStyles.ResizeRedraw, false); 136SetStyle(ControlStyles.UserMouse, true);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (3)
3511bool oldStyle = GetStyle(ControlStyles.UserMouse); 3512SetStyle(ControlStyles.UserMouse, true); 3514SetStyle(ControlStyles.UserMouse, oldStyle);
System\Windows\Forms\Controls\Splitter\Splitter.cs (2)
49SetStyle(ControlStyles.Selectable, false); 51SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
85SetStyle(ControlStyles.UserPaint, false); 87SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
37SetStyle(ControlStyles.CacheText, true); 39SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
979!GetStyle(ControlStyles.UserPaint) &&
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (9)
95SetStyle(ControlStyles.FixedHeight, _textBoxFlags[s_autoSize]); 96SetStyle(ControlStyles.StandardClick 97| ControlStyles.StandardDoubleClick 98| ControlStyles.UseTextForAccessibility 99| ControlStyles.UserPaint, false); 102SetStyle(ControlStyles.ApplyThemingImplicitly, true); 267SetStyle(ControlStyles.FixedHeight, value); 733SetStyle(ControlStyles.FixedHeight, false); 738SetStyle(ControlStyles.FixedHeight, AutoSize);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
38SetStyle(ControlStyles.ResizeRedraw, true); 614SetStyle(ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (5)
131ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.SupportsTransparentBackColor, 134SetStyle(ControlStyles.Selectable, false); 3712SetStyle(ControlStyles.Selectable, TabStop);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.cs (2)
13SetStyle(ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (2)
21SetStyle(ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (3)
27SetStyle(ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor, true); 335SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (3)
955SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, false); 1093SetStyle(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (5)
51SetStyle(ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer | /*ControlStyles.AllPaintingInWmPaint |*/ControlStyles.SupportsTransparentBackColor, true); 52SetStyle(ControlStyles.Selectable, false); 323SetStyle(ControlStyles.Selectable, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (3)
20SetStyle(ControlStyles.AllPaintingInWmPaint, false); 21SetStyle(ControlStyles.OptimizedDoubleBuffer, true); 22SetStyle(ControlStyles.CacheText, true);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (11)
55SetStyle(ControlStyles.UserPaint, false); 56SetStyle(ControlStyles.UseTextForAccessibility, false); 59SetStyle(ControlStyles.ApplyThemingImplicitly, true); 90SetStyle(ControlStyles.FixedHeight, _autoSize); 91SetStyle(ControlStyles.FixedWidth, false); 95SetStyle(ControlStyles.FixedWidth, _autoSize); 96SetStyle(ControlStyles.FixedHeight, false); 380SetStyle(ControlStyles.FixedHeight, _autoSize); 381SetStyle(ControlStyles.FixedWidth, false); 386SetStyle(ControlStyles.FixedHeight, false); 387SetStyle(ControlStyles.FixedWidth, _autoSize);
System\Windows\Forms\Controls\TreeView\TreeView.cs (5)
170SetStyle(ControlStyles.UserPaint, false); 171SetStyle(ControlStyles.StandardClick, false); 172SetStyle(ControlStyles.UseTextForAccessibility, false); 174SetStyle(ControlStyles.ApplyThemingImplicitly, true); 918SetStyle(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (6)
67SetStyle(ControlStyles.Opaque | ControlStyles.FixedHeight | ControlStyles.ResizeRedraw, true); 68SetStyle(ControlStyles.StandardClick, false); 69SetStyle(ControlStyles.UseTextForAccessibility, false); 72SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (5)
35SetStyle(ControlStyles.Opaque | ControlStyles.FixedHeight | ControlStyles.FixedWidth, true); 36SetStyle(ControlStyles.Selectable, false); 39SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (2)
17SetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth, true);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
77SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\Form.cs (2)
210SetStyle(ControlStyles.ApplyThemingImplicitly, true); 3759if (!GetStyle(ControlStyles.Selectable) || !Enabled || !Visible)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
91SetStyle(ControlStyles.AllPaintingInWmPaint, false);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
102SetStyle(ControlStyles.SupportsTransparentBackColor, true); 103SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\MDI\MDIClient.cs (2)
31SetStyle(ControlStyles.Selectable, false); 34SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Panels\Panel.cs (4)
31SetStyle(ControlStyles.Selectable | ControlStyles.AllPaintingInWmPaint, false); 32SetStyle(ControlStyles.SupportsTransparentBackColor, true); 35SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Panels\SplitterPanel.cs (1)
17SetStyle(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
87SetStyle(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Printing\PrintPreviewControl.cs (4)
61SetStyle(ControlStyles.ResizeRedraw, false); 62SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
60SetStyle(ControlStyles.ContainerControl, true); 61SetStyle(ControlStyles.AllPaintingInWmPaint, false); 65SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Scrolling\ScrollBar.cs (4)
34SetStyle(ControlStyles.UserPaint, false); 35SetStyle(ControlStyles.StandardClick, false); 36SetStyle(ControlStyles.UseTextForAccessibility, false); 39SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\UserControl.cs (1)
34SetStyle(ControlStyles.SupportsTransparentBackColor, true);
System.Windows.Forms.Design (22)
System\ComponentModel\Design\ByteViewer.cs (1)
75SetStyle(ControlStyles.ResizeRedraw, true);
System\ComponentModel\Design\DesignerActionPanel.cs (5)
50SetStyle(ControlStyles.AllPaintingInWmPaint, true); 51SetStyle(ControlStyles.Opaque, true); 52SetStyle(ControlStyles.OptimizedDoubleBuffer, true); 53SetStyle(ControlStyles.ResizeRedraw, true); 54SetStyle(ControlStyles.UserPaint, true);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
324SetStyle(ControlStyles.Selectable, true);
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
68SetStyle(ControlStyles.Opaque, true);
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
195SetStyle(ControlStyles.Selectable, false);
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
31SetStyle(ControlStyles.Opaque, true);
System\Windows\Forms\Design\ComponentTray.cs (4)
83SetStyle(ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer, true); 1922SetStyle(ControlStyles.OptimizedDoubleBuffer, true); 1923SetStyle(ControlStyles.Selectable, false);
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
348SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);
System\Windows\Forms\Design\SelectionUIService.cs (3)
62SetStyle(ControlStyles.StandardClick | ControlStyles.Opaque | ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Design\TabOrder.cs (1)
68SetStyle(ControlStyles.Opaque, true);
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
174SetStyle(ControlStyles.Opaque, true);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1638SetStyle(ControlStyles.Selectable, true);
System.Windows.Forms.Design.Tests (22)
System\ComponentModel\Design\ByteViewerTests.cs (22)
191[InlineData(ControlStyles.ContainerControl, true)] 192[InlineData(ControlStyles.UserPaint, true)] 193[InlineData(ControlStyles.Opaque, false)] 194[InlineData(ControlStyles.ResizeRedraw, true)] 195[InlineData(ControlStyles.FixedWidth, false)] 196[InlineData(ControlStyles.FixedHeight, false)] 197[InlineData(ControlStyles.StandardClick, true)] 198[InlineData(ControlStyles.Selectable, false)] 199[InlineData(ControlStyles.UserMouse, false)] 200[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 201[InlineData(ControlStyles.StandardDoubleClick, true)] 202[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 203[InlineData(ControlStyles.CacheText, false)] 204[InlineData(ControlStyles.EnableNotifyMessage, false)] 205[InlineData(ControlStyles.DoubleBuffer, false)] 206[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 207[InlineData(ControlStyles.UseTextForAccessibility, true)] 208[InlineData((ControlStyles)0, true)] 209[InlineData((ControlStyles)int.MaxValue, false)] 210[InlineData((ControlStyles)(-1), false)] 211public void ByteViewer_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1078public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System.Windows.Forms.Tests (1604)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (13)
333ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 348ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 363ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 433ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 458ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 482ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 533ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 549ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 565ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 674ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 700ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 725ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 1742public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ButtonBaseTests.cs (54)
1064Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1065Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1072Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1073Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1106Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1107Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1114Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1115Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1160Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1161Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1170Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1171Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1214Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1215Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1224Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1225Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1273Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1274Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1283Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1284Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1339Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1340Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1352Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1353Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 5061[InlineData(ControlStyles.ContainerControl, false)] 5062[InlineData(ControlStyles.UserPaint, true)] 5063[InlineData(ControlStyles.Opaque, true)] 5064[InlineData(ControlStyles.ResizeRedraw, true)] 5065[InlineData(ControlStyles.FixedWidth, false)] 5066[InlineData(ControlStyles.FixedHeight, false)] 5067[InlineData(ControlStyles.StandardClick, true)] 5068[InlineData(ControlStyles.Selectable, true)] 5069[InlineData(ControlStyles.UserMouse, true)] 5070[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 5071[InlineData(ControlStyles.StandardDoubleClick, true)] 5072[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 5073[InlineData(ControlStyles.CacheText, true)] 5074[InlineData(ControlStyles.EnableNotifyMessage, false)] 5075[InlineData(ControlStyles.DoubleBuffer, false)] 5076[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 5077[InlineData(ControlStyles.UseTextForAccessibility, true)] 5078[InlineData((ControlStyles)0, true)] 5079[InlineData((ControlStyles)int.MaxValue, false)] 5080[InlineData((ControlStyles)(-1), false)] 5081public void ButtonBase_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 8876control.SetStyle(ControlStyles.UserMouse, userMouse); 8911control.SetStyle(ControlStyles.UserMouse, userMouse); 8912control.SetStyle(ControlStyles.Selectable, false); 8974control.SetStyle(ControlStyles.UserMouse, userMouse); 9017control.SetStyle(ControlStyles.UserMouse, userMouse); 9018control.SetStyle(ControlStyles.Selectable, false); 9249public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 9335public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 9375public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ButtonTests.cs (36)
149control.SetStyle(ControlStyles.UserPaint, userPaint); 1767[InlineData(ControlStyles.ContainerControl, false)] 1768[InlineData(ControlStyles.UserPaint, true)] 1769[InlineData(ControlStyles.Opaque, true)] 1770[InlineData(ControlStyles.ResizeRedraw, true)] 1771[InlineData(ControlStyles.FixedWidth, false)] 1772[InlineData(ControlStyles.FixedHeight, false)] 1773[InlineData(ControlStyles.StandardClick, false)] 1774[InlineData(ControlStyles.Selectable, true)] 1775[InlineData(ControlStyles.UserMouse, true)] 1776[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 1777[InlineData(ControlStyles.StandardDoubleClick, false)] 1778[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1779[InlineData(ControlStyles.CacheText, true)] 1780[InlineData(ControlStyles.EnableNotifyMessage, false)] 1781[InlineData(ControlStyles.DoubleBuffer, false)] 1782[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 1783[InlineData(ControlStyles.UseTextForAccessibility, true)] 1784[InlineData((ControlStyles)0, true)] 1785[InlineData((ControlStyles)int.MaxValue, false)] 1786[InlineData((ControlStyles)(-1), false)] 1787public void Button_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 3378control.SetStyle(ControlStyles.UserPaint, userPaint); 3379control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 3380control.SetStyle(ControlStyles.Opaque, opaque); 3417control.SetStyle(ControlStyles.UserPaint, userPaint); 3418control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 3419control.SetStyle(ControlStyles.Opaque, opaque); 3451control.SetStyle(ControlStyles.UserPaint, userPaint); 3452control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 3453control.SetStyle(ControlStyles.Opaque, opaque); 3483control.SetStyle(ControlStyles.UserPaint, userPaint); 3484control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 3485control.SetStyle(ControlStyles.Opaque, opaque); 3741public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 3771public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\CheckBoxTests.cs (22)
495[InlineData(ControlStyles.ContainerControl, false)] 496[InlineData(ControlStyles.UserPaint, true)] 497[InlineData(ControlStyles.Opaque, true)] 498[InlineData(ControlStyles.ResizeRedraw, true)] 499[InlineData(ControlStyles.FixedWidth, false)] 500[InlineData(ControlStyles.FixedHeight, false)] 501[InlineData(ControlStyles.StandardClick, false)] 502[InlineData(ControlStyles.Selectable, true)] 503[InlineData(ControlStyles.UserMouse, true)] 504[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 505[InlineData(ControlStyles.StandardDoubleClick, false)] 506[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 507[InlineData(ControlStyles.CacheText, true)] 508[InlineData(ControlStyles.EnableNotifyMessage, false)] 509[InlineData(ControlStyles.DoubleBuffer, false)] 510[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 511[InlineData(ControlStyles.UseTextForAccessibility, true)] 512[InlineData((ControlStyles)0, true)] 513[InlineData((ControlStyles)int.MaxValue, false)] 514[InlineData((ControlStyles)(-1), false)] 515public void CheckBox_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 694public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ComboBoxTests.cs (47)
1453[InlineData(ControlStyles.ContainerControl, false)] 1454[InlineData(ControlStyles.UserPaint, false)] 1455[InlineData(ControlStyles.Opaque, false)] 1456[InlineData(ControlStyles.ResizeRedraw, false)] 1457[InlineData(ControlStyles.FixedWidth, false)] 1458[InlineData(ControlStyles.FixedHeight, false)] 1459[InlineData(ControlStyles.StandardClick, false)] 1460[InlineData(ControlStyles.Selectable, true)] 1461[InlineData(ControlStyles.UserMouse, false)] 1462[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1463[InlineData(ControlStyles.StandardDoubleClick, true)] 1464[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1465[InlineData(ControlStyles.CacheText, false)] 1466[InlineData(ControlStyles.EnableNotifyMessage, false)] 1467[InlineData(ControlStyles.DoubleBuffer, false)] 1468[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1469[InlineData(ControlStyles.UseTextForAccessibility, false)] 1470[InlineData((ControlStyles)0, true)] 1471[InlineData((ControlStyles)int.MaxValue, false)] 1472[InlineData((ControlStyles)(-1), false)] 1473public void ComboBox_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1803control.SetStyle(ControlStyles.UserPaint, userPaint); 1804control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1805control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 1830control.SetStyle(ControlStyles.UserPaint, userPaint); 1831control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1832control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 1878control.SetStyle(ControlStyles.UserPaint, userPaint); 1879control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1880control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 1912control.SetStyle(ControlStyles.UserPaint, userPaint); 1913control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1914control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 1976control.SetStyle(ControlStyles.UserPaint, userPaint); 1977control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1978control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 2014control.SetStyle(ControlStyles.UserPaint, userPaint); 2015control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 2016control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 2073control.SetStyle(ControlStyles.UserPaint, userPaint); 2074control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 2075control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 2118control.SetStyle(ControlStyles.UserPaint, userPaint); 2119control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 2120control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 2894public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2936public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ContainerControlTests.cs (25)
511[InlineData(ControlStyles.ContainerControl, true)] 512[InlineData(ControlStyles.UserPaint, true)] 513[InlineData(ControlStyles.Opaque, false)] 514[InlineData(ControlStyles.ResizeRedraw, false)] 515[InlineData(ControlStyles.FixedWidth, false)] 516[InlineData(ControlStyles.FixedHeight, false)] 517[InlineData(ControlStyles.StandardClick, true)] 518[InlineData(ControlStyles.Selectable, true)] 519[InlineData(ControlStyles.UserMouse, false)] 520[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 521[InlineData(ControlStyles.StandardDoubleClick, true)] 522[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 523[InlineData(ControlStyles.CacheText, false)] 524[InlineData(ControlStyles.EnableNotifyMessage, false)] 525[InlineData(ControlStyles.DoubleBuffer, false)] 526[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 527[InlineData(ControlStyles.UseTextForAccessibility, true)] 528[InlineData((ControlStyles)0, true)] 529[InlineData((ControlStyles)int.MaxValue, false)] 530[InlineData((ControlStyles)(-1), false)] 531public void ContainerControl_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 804child4.SetStyle(ControlStyles.Selectable, false); 1030child4.SetStyle(ControlStyles.Selectable, false); 1396public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value); 1485public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ControlTests.cs (3)
524control.SetStyle(ControlStyles.ContainerControl, containerControl); 1216public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 1430public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ControlTests.Handlers.cs (29)
462Assert.True(control.GetStyle(ControlStyles.UserPaint)); 932control.SetStyle(ControlStyles.ResizeRedraw, true); 1437Assert.True(control.GetStyle(ControlStyles.UserPaint)); 1469control.SetStyle(ControlStyles.UserPaint, false); 1471Assert.False(control.GetStyle(ControlStyles.UserPaint)); 1695control.SetStyle(ControlStyles.UserPaint, userPaint); 2152control.SetStyle(ControlStyles.UserPaint, userPaint); 2806child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2808child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2906child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2908child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2983child1.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 3275control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 3277control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 3706control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 3708control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 3775control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 3859control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 3985control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4031control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4116control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4631control.SetStyle(ControlStyles.UserPaint, userPaint); 4632control.SetStyle(ControlStyles.Opaque, opaque); 4682control.SetStyle(ControlStyles.UserPaint, userPaint); 4683control.SetStyle(ControlStyles.Opaque, opaque); 4882control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 5215control.SetStyle(ControlStyles.ResizeRedraw, true); 5625control.SetStyle(ControlStyles.UserPaint, userPaint); 5671control.SetStyle(ControlStyles.UserPaint, userPaint);
System\Windows\Forms\ControlTests.Methods.cs (114)
418Assert.True(control.GetStyle(ControlStyles.UserPaint)); 439control.SetStyle(ControlStyles.UserPaint, false); 440Assert.False(control.GetStyle(ControlStyles.UserPaint)); 624control.SetStyle(ControlStyles.UserPaint, resizeRedraw); 2203grandparent.SetStyle(ControlStyles.ContainerControl, false); 2225grandparent.SetStyle(ControlStyles.ContainerControl, true); 2241public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value); 2736control.SetStyle(ControlStyles.FixedWidth, true); 2786control.SetStyle(ControlStyles.FixedHeight, true); 2836control.SetStyle(ControlStyles.FixedWidth, true); 2837control.SetStyle(ControlStyles.FixedHeight, true); 2852control.SetStyle(ControlStyles.FixedWidth, true); 2853control.SetStyle(ControlStyles.FixedHeight, true); 2864[InlineData(ControlStyles.ContainerControl, false)] 2865[InlineData(ControlStyles.UserPaint, true)] 2866[InlineData(ControlStyles.Opaque, false)] 2867[InlineData(ControlStyles.ResizeRedraw, false)] 2868[InlineData(ControlStyles.FixedWidth, false)] 2869[InlineData(ControlStyles.FixedHeight, false)] 2870[InlineData(ControlStyles.StandardClick, true)] 2871[InlineData(ControlStyles.Selectable, true)] 2872[InlineData(ControlStyles.UserMouse, false)] 2873[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 2874[InlineData(ControlStyles.StandardDoubleClick, true)] 2875[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 2876[InlineData(ControlStyles.CacheText, false)] 2877[InlineData(ControlStyles.EnableNotifyMessage, false)] 2878[InlineData(ControlStyles.DoubleBuffer, false)] 2879[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 2880[InlineData(ControlStyles.UseTextForAccessibility, true)] 2881[InlineData((ControlStyles)0, true)] 2882[InlineData((ControlStyles)int.MaxValue, false)] 2883[InlineData((ControlStyles)(-1), false)] 2884public void Control_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 3015control.SetStyle(ControlStyles.Opaque, opaque); 3036control.SetStyle(ControlStyles.Opaque, opaque); 3076control.SetStyle(ControlStyles.Opaque, opaque); 3127control.SetStyle(ControlStyles.Opaque, opaque); 3151control.SetStyle(ControlStyles.Opaque, opaque); 3194control.SetStyle(ControlStyles.Opaque, opaque); 3255control.SetStyle(ControlStyles.Opaque, opaque); 3289control.SetStyle(ControlStyles.Opaque, opaque); 3329control.SetStyle(ControlStyles.Opaque, opaque); 3393control.SetStyle(ControlStyles.Opaque, opaque); 3430control.SetStyle(ControlStyles.Opaque, opaque); 3470control.SetStyle(ControlStyles.Opaque, opaque); 3532control.SetStyle(ControlStyles.Opaque, opaque); 3567control.SetStyle(ControlStyles.Opaque, opaque); 3607control.SetStyle(ControlStyles.Opaque, opaque); 3672control.SetStyle(ControlStyles.Opaque, opaque); 3710control.SetStyle(ControlStyles.Opaque, opaque); 3750control.SetStyle(ControlStyles.Opaque, opaque); 4322otherControl.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 4606child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 4608child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 4706child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 4708child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 7824control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 7950control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 8681control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 8807control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 9513control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 9645control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 9894control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 9992yield return new object[] { ControlStyles.UserPaint, true, true }; 9993yield return new object[] { ControlStyles.UserPaint, false, false }; 9994yield return new object[] { (ControlStyles)0, true, true }; 9995yield return new object[] { (ControlStyles)0, false, true }; 10000public void Control_SetStyle_Invoke_GetStyleReturnsExpected(ControlStyles flag, bool value, bool expected) 10014public void Control_SetStyle_InvokeWithHandle_GetStyleReturnsExpected(ControlStyles flag, bool value, bool expected) 10187public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value); 11385control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 11488control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 11883control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 11986control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 12860control.SetStyle(ControlStyles.UserPaint, userPaint); 12861control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 12862control.SetStyle(ControlStyles.Opaque, opaque); 12896control.SetStyle(ControlStyles.UserPaint, userPaint); 12897control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 12898control.SetStyle(ControlStyles.Opaque, opaque); 12941control.SetStyle(ControlStyles.UserPaint, userPaint); 12942control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 12943control.SetStyle(ControlStyles.Opaque, opaque); 12984control.SetStyle(ControlStyles.UserPaint, userPaint); 12985control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 12986control.SetStyle(ControlStyles.Opaque, opaque); 13184control.SetStyle(ControlStyles.UserPaint, userPaint); 13185control.SetStyle(ControlStyles.Opaque, opaque); 13207control.SetStyle(ControlStyles.UserPaint, true); 13208control.SetStyle(ControlStyles.Opaque, false); 13239control.SetStyle(ControlStyles.UserPaint, userPaint); 13240control.SetStyle(ControlStyles.Opaque, opaque); 13279control.SetStyle(ControlStyles.UserPaint, userPaint); 13280control.SetStyle(ControlStyles.Opaque, opaque); 13309control.SetStyle(ControlStyles.UserPaint, true); 13310control.SetStyle(ControlStyles.Opaque, false); 13349control.SetStyle(ControlStyles.UserPaint, userPaint); 13350control.SetStyle(ControlStyles.Opaque, opaque); 13480control.SetStyle(ControlStyles.UserMouse, userMouse); 13515control.SetStyle(ControlStyles.UserMouse, userMouse); 13516control.SetStyle(ControlStyles.Selectable, false); 13582control.SetStyle(ControlStyles.UserMouse, userMouse); 13625control.SetStyle(ControlStyles.UserMouse, userMouse); 13626control.SetStyle(ControlStyles.Selectable, false); 13815control.SetStyle(ControlStyles.UserMouse, userMouse); 13850control.SetStyle(ControlStyles.UserMouse, userMouse); 13851control.SetStyle(ControlStyles.Selectable, false); 13913control.SetStyle(ControlStyles.UserMouse, userMouse); 13956control.SetStyle(ControlStyles.UserMouse, userMouse); 13957control.SetStyle(ControlStyles.Selectable, false); 14142parent.SetStyle(ControlStyles.ContainerControl, containerControl); 14189SetStyle(ControlStyles.ContainerControl, true); 14198public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ControlTests.Properties.cs (42)
1273control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 2806control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 2909control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 3432control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 4431control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 4444Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4450Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4456Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4475Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4484Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4493Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4530control.SetStyle(ControlStyles.UserPaint, userPaint); 4538Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 4944control.SetStyle(ControlStyles.UserPaint, userPaint); 4946Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 4990control.SetStyle(ControlStyles.UserPaint, userPaint); 4992Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 6095control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 6210control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 6846control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 6939control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 7060control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 7062control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 7329control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 7422control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 7545control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 7547control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 9498control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 9542control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 10027control.SetStyle(ControlStyles.ResizeRedraw, value); 10040Assert.Equal(value, control.GetStyle(ControlStyles.ResizeRedraw)); 10045Assert.Equal(value, control.GetStyle(ControlStyles.ResizeRedraw)); 10050Assert.Equal(!value, control.GetStyle(ControlStyles.ResizeRedraw)); 11499control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 11619control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 12280control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 12371control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 12492control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 12494control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 12774control.SetStyle(ControlStyles.UserPaint, userPaint); 13514control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 13629control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (24)
1098[InlineData(ControlStyles.ContainerControl, false)] 1099[InlineData(ControlStyles.UserPaint, false)] 1100[InlineData(ControlStyles.Opaque, false)] 1101[InlineData(ControlStyles.ResizeRedraw, false)] 1102[InlineData(ControlStyles.FixedWidth, false)] 1103[InlineData(ControlStyles.FixedHeight, true)] 1104[InlineData(ControlStyles.StandardClick, false)] 1105[InlineData(ControlStyles.Selectable, true)] 1106[InlineData(ControlStyles.UserMouse, false)] 1107[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1108[InlineData(ControlStyles.StandardDoubleClick, false)] 1109[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1110[InlineData(ControlStyles.CacheText, false)] 1111[InlineData(ControlStyles.EnableNotifyMessage, false)] 1112[InlineData(ControlStyles.DoubleBuffer, false)] 1113[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1114[InlineData(ControlStyles.UseTextForAccessibility, false)] 1115[InlineData((ControlStyles)0, true)] 1116[InlineData((ControlStyles)int.MaxValue, false)] 1117[InlineData((ControlStyles)(-1), false)] 1118public void DataGridViewTextBoxEditingDataGridViewTextBoxEditingControl_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1275control.SetStyle(ControlStyles.UserPaint, userPaint); 2166public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2180public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\DateTimePickerTests.cs (22)
861[InlineData(ControlStyles.ContainerControl, false)] 862[InlineData(ControlStyles.UserPaint, false)] 863[InlineData(ControlStyles.Opaque, false)] 864[InlineData(ControlStyles.ResizeRedraw, false)] 865[InlineData(ControlStyles.FixedWidth, false)] 866[InlineData(ControlStyles.FixedHeight, true)] 867[InlineData(ControlStyles.StandardClick, false)] 868[InlineData(ControlStyles.Selectable, true)] 869[InlineData(ControlStyles.UserMouse, false)] 870[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 871[InlineData(ControlStyles.StandardDoubleClick, true)] 872[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 873[InlineData(ControlStyles.CacheText, false)] 874[InlineData(ControlStyles.EnableNotifyMessage, false)] 875[InlineData(ControlStyles.DoubleBuffer, false)] 876[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 877[InlineData(ControlStyles.UseTextForAccessibility, false)] 878[InlineData((ControlStyles)0, true)] 879[InlineData((ControlStyles)int.MaxValue, false)] 880[InlineData((ControlStyles)(-1), false)] 881public void DateTimePicker_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1062public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (22)
214[InlineData(ControlStyles.ContainerControl, true)] 215[InlineData(ControlStyles.UserPaint, true)] 216[InlineData(ControlStyles.Opaque, false)] 217[InlineData(ControlStyles.ResizeRedraw, false)] 218[InlineData(ControlStyles.FixedWidth, false)] 219[InlineData(ControlStyles.FixedHeight, false)] 220[InlineData(ControlStyles.StandardClick, true)] 221[InlineData(ControlStyles.Selectable, true)] 222[InlineData(ControlStyles.UserMouse, false)] 223[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 224[InlineData(ControlStyles.StandardDoubleClick, true)] 225[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 226[InlineData(ControlStyles.CacheText, false)] 227[InlineData(ControlStyles.EnableNotifyMessage, false)] 228[InlineData(ControlStyles.DoubleBuffer, false)] 229[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 230[InlineData(ControlStyles.UseTextForAccessibility, true)] 231[InlineData((ControlStyles)0, true)] 232[InlineData((ControlStyles)int.MaxValue, false)] 233[InlineData((ControlStyles)(-1), false)] 234public void ComponentEditorComponentEditorForm_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 454public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (22)
676[InlineData(ControlStyles.ContainerControl, true)] 677[InlineData(ControlStyles.UserPaint, true)] 678[InlineData(ControlStyles.Opaque, false)] 679[InlineData(ControlStyles.ResizeRedraw, false)] 680[InlineData(ControlStyles.FixedWidth, false)] 681[InlineData(ControlStyles.FixedHeight, false)] 682[InlineData(ControlStyles.StandardClick, true)] 683[InlineData(ControlStyles.Selectable, false)] 684[InlineData(ControlStyles.UserMouse, false)] 685[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 686[InlineData(ControlStyles.StandardDoubleClick, true)] 687[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 688[InlineData(ControlStyles.CacheText, false)] 689[InlineData(ControlStyles.EnableNotifyMessage, false)] 690[InlineData(ControlStyles.DoubleBuffer, false)] 691[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 692[InlineData(ControlStyles.UseTextForAccessibility, true)] 693[InlineData((ControlStyles)0, true)] 694[InlineData((ControlStyles)int.MaxValue, false)] 695[InlineData((ControlStyles)(-1), false)] 696public void ComponentEditorPage_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 985public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\DomainUpDownTests.cs (22)
1064[InlineData(ControlStyles.ContainerControl, true)] 1065[InlineData(ControlStyles.UserPaint, true)] 1066[InlineData(ControlStyles.Opaque, true)] 1067[InlineData(ControlStyles.ResizeRedraw, true)] 1068[InlineData(ControlStyles.FixedWidth, false)] 1069[InlineData(ControlStyles.FixedHeight, true)] 1070[InlineData(ControlStyles.StandardClick, false)] 1071[InlineData(ControlStyles.Selectable, true)] 1072[InlineData(ControlStyles.UserMouse, false)] 1073[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1074[InlineData(ControlStyles.StandardDoubleClick, true)] 1075[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 1076[InlineData(ControlStyles.CacheText, false)] 1077[InlineData(ControlStyles.EnableNotifyMessage, false)] 1078[InlineData(ControlStyles.DoubleBuffer, false)] 1079[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1080[InlineData(ControlStyles.UseTextForAccessibility, false)] 1081[InlineData((ControlStyles)0, true)] 1082[InlineData((ControlStyles)int.MaxValue, false)] 1083[InlineData((ControlStyles)(-1), false)] 1084public void DomainUpDown_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1548public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\FlowLayoutPanelTests.cs (22)
278[InlineData(ControlStyles.ContainerControl, true)] 279[InlineData(ControlStyles.UserPaint, true)] 280[InlineData(ControlStyles.Opaque, false)] 281[InlineData(ControlStyles.ResizeRedraw, false)] 282[InlineData(ControlStyles.FixedWidth, false)] 283[InlineData(ControlStyles.FixedHeight, false)] 284[InlineData(ControlStyles.StandardClick, true)] 285[InlineData(ControlStyles.Selectable, false)] 286[InlineData(ControlStyles.UserMouse, false)] 287[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 288[InlineData(ControlStyles.StandardDoubleClick, true)] 289[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 290[InlineData(ControlStyles.CacheText, false)] 291[InlineData(ControlStyles.EnableNotifyMessage, false)] 292[InlineData(ControlStyles.DoubleBuffer, false)] 293[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 294[InlineData(ControlStyles.UseTextForAccessibility, true)] 295[InlineData((ControlStyles)0, true)] 296[InlineData((ControlStyles)int.MaxValue, false)] 297[InlineData((ControlStyles)(-1), false)] 298public void FlowLayoutPanel_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 500public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\FormTests.cs (22)
2429[InlineData(ControlStyles.ContainerControl, true)] 2430[InlineData(ControlStyles.UserPaint, true)] 2431[InlineData(ControlStyles.Opaque, false)] 2432[InlineData(ControlStyles.ResizeRedraw, false)] 2433[InlineData(ControlStyles.FixedWidth, false)] 2434[InlineData(ControlStyles.FixedHeight, false)] 2435[InlineData(ControlStyles.StandardClick, true)] 2436[InlineData(ControlStyles.Selectable, true)] 2437[InlineData(ControlStyles.UserMouse, false)] 2438[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 2439[InlineData(ControlStyles.StandardDoubleClick, true)] 2440[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 2441[InlineData(ControlStyles.CacheText, false)] 2442[InlineData(ControlStyles.EnableNotifyMessage, false)] 2443[InlineData(ControlStyles.DoubleBuffer, false)] 2444[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 2445[InlineData(ControlStyles.UseTextForAccessibility, true)] 2446[InlineData((ControlStyles)0, true)] 2447[InlineData((ControlStyles)int.MaxValue, false)] 2448[InlineData((ControlStyles)(-1), false)] 2449public void Form_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2764public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\GroupBoxTests.cs (90)
625control.SetStyle(ControlStyles.ContainerControl, false); 629Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 630Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 631Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 632Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 633Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 639Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 640Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 641Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 642Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 643Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 670control.SetStyle(ControlStyles.ContainerControl, false); 674Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 675Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 676Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 677Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 678Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 683Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 684Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 685Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 686Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 687Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 712control.SetStyle(ControlStyles.ContainerControl, false); 716Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 717Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 718Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 719Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 720Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 729Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 730Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 731Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 732Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 733Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 766control.SetStyle(ControlStyles.ContainerControl, false); 770Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 771Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 772Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 773Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 774Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 783Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 784Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 785Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 786Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 787Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 829control.SetStyle(ControlStyles.ContainerControl, false); 833Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 834Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 835Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 836Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 837Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 846Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 847Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 848Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 849Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 850Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 893control.SetStyle(ControlStyles.ContainerControl, false); 897Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 898Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 899Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 900Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 901Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 910Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 911Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 912Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 913Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 914Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 1413[InlineData(ControlStyles.ContainerControl, true)] 1414[InlineData(ControlStyles.UserPaint, true)] 1415[InlineData(ControlStyles.Opaque, false)] 1416[InlineData(ControlStyles.ResizeRedraw, true)] 1417[InlineData(ControlStyles.FixedWidth, false)] 1418[InlineData(ControlStyles.FixedHeight, false)] 1419[InlineData(ControlStyles.StandardClick, true)] 1420[InlineData(ControlStyles.Selectable, false)] 1421[InlineData(ControlStyles.UserMouse, false)] 1422[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 1423[InlineData(ControlStyles.StandardDoubleClick, true)] 1424[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1425[InlineData(ControlStyles.CacheText, false)] 1426[InlineData(ControlStyles.EnableNotifyMessage, false)] 1427[InlineData(ControlStyles.DoubleBuffer, false)] 1428[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1429[InlineData(ControlStyles.UseTextForAccessibility, true)] 1430[InlineData((ControlStyles)0, true)] 1431[InlineData((ControlStyles)int.MaxValue, false)] 1432[InlineData((ControlStyles)(-1), false)] 1433public void GroupBox_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1541control.SetStyle(ControlStyles.UserPaint, userPaint); 2353public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2387public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\HScrollBarTests.cs (22)
208[InlineData(ControlStyles.ContainerControl, false)] 209[InlineData(ControlStyles.UserPaint, false)] 210[InlineData(ControlStyles.Opaque, false)] 211[InlineData(ControlStyles.ResizeRedraw, false)] 212[InlineData(ControlStyles.FixedWidth, false)] 213[InlineData(ControlStyles.FixedHeight, false)] 214[InlineData(ControlStyles.StandardClick, false)] 215[InlineData(ControlStyles.Selectable, true)] 216[InlineData(ControlStyles.UserMouse, false)] 217[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 218[InlineData(ControlStyles.StandardDoubleClick, true)] 219[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 220[InlineData(ControlStyles.CacheText, false)] 221[InlineData(ControlStyles.EnableNotifyMessage, false)] 222[InlineData(ControlStyles.DoubleBuffer, false)] 223[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 224[InlineData(ControlStyles.UseTextForAccessibility, false)] 225[InlineData((ControlStyles)0, true)] 226[InlineData((ControlStyles)int.MaxValue, false)] 227[InlineData((ControlStyles)(-1), false)] 228public void HScrollBar_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 300public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\LabelTests.cs (22)
145[InlineData(ControlStyles.ContainerControl, false)] 146[InlineData(ControlStyles.UserPaint, true)] 147[InlineData(ControlStyles.Opaque, false)] 148[InlineData(ControlStyles.ResizeRedraw, true)] 149[InlineData(ControlStyles.FixedWidth, false)] 150[InlineData(ControlStyles.FixedHeight, false)] 151[InlineData(ControlStyles.StandardClick, true)] 152[InlineData(ControlStyles.Selectable, false)] 153[InlineData(ControlStyles.UserMouse, false)] 154[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 155[InlineData(ControlStyles.StandardDoubleClick, true)] 156[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 157[InlineData(ControlStyles.CacheText, false)] 158[InlineData(ControlStyles.EnableNotifyMessage, false)] 159[InlineData(ControlStyles.DoubleBuffer, false)] 160[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 161[InlineData(ControlStyles.UseTextForAccessibility, true)] 162[InlineData((ControlStyles)0, true)] 163[InlineData((ControlStyles)int.MaxValue, false)] 164[InlineData((ControlStyles)(-1), false)] 165public void Label_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 943public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ListBoxTests.cs (22)
4897[InlineData(ControlStyles.ContainerControl, false)] 4898[InlineData(ControlStyles.UserPaint, false)] 4899[InlineData(ControlStyles.Opaque, false)] 4900[InlineData(ControlStyles.ResizeRedraw, false)] 4901[InlineData(ControlStyles.FixedWidth, false)] 4902[InlineData(ControlStyles.FixedHeight, false)] 4903[InlineData(ControlStyles.StandardClick, false)] 4904[InlineData(ControlStyles.Selectable, true)] 4905[InlineData(ControlStyles.UserMouse, false)] 4906[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 4907[InlineData(ControlStyles.StandardDoubleClick, true)] 4908[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 4909[InlineData(ControlStyles.CacheText, false)] 4910[InlineData(ControlStyles.EnableNotifyMessage, false)] 4911[InlineData(ControlStyles.DoubleBuffer, false)] 4912[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 4913[InlineData(ControlStyles.UseTextForAccessibility, false)] 4914[InlineData((ControlStyles)0, true)] 4915[InlineData((ControlStyles)int.MaxValue, false)] 4916[InlineData((ControlStyles)(-1), false)] 4917public void ListBox_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 6466public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ListControlTests.cs (22)
2562[InlineData(ControlStyles.ContainerControl, false)] 2563[InlineData(ControlStyles.UserPaint, true)] 2564[InlineData(ControlStyles.Opaque, false)] 2565[InlineData(ControlStyles.ResizeRedraw, false)] 2566[InlineData(ControlStyles.FixedWidth, false)] 2567[InlineData(ControlStyles.FixedHeight, false)] 2568[InlineData(ControlStyles.StandardClick, true)] 2569[InlineData(ControlStyles.Selectable, true)] 2570[InlineData(ControlStyles.UserMouse, false)] 2571[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 2572[InlineData(ControlStyles.StandardDoubleClick, true)] 2573[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 2574[InlineData(ControlStyles.CacheText, false)] 2575[InlineData(ControlStyles.EnableNotifyMessage, false)] 2576[InlineData(ControlStyles.DoubleBuffer, false)] 2577[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 2578[InlineData(ControlStyles.UseTextForAccessibility, true)] 2579[InlineData((ControlStyles)0, true)] 2580[InlineData((ControlStyles)int.MaxValue, false)] 2581[InlineData((ControlStyles)(-1), false)] 2582public void ListControl_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2966public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ListViewTests.cs (30)
1146control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 1159Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1165Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1171Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1191Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1200Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1209Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4254[InlineData(ControlStyles.ContainerControl, false)] 4255[InlineData(ControlStyles.UserPaint, false)] 4256[InlineData(ControlStyles.Opaque, false)] 4257[InlineData(ControlStyles.ResizeRedraw, false)] 4258[InlineData(ControlStyles.FixedWidth, false)] 4259[InlineData(ControlStyles.FixedHeight, false)] 4260[InlineData(ControlStyles.StandardClick, false)] 4261[InlineData(ControlStyles.Selectable, true)] 4262[InlineData(ControlStyles.UserMouse, false)] 4263[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 4264[InlineData(ControlStyles.StandardDoubleClick, true)] 4265[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 4266[InlineData(ControlStyles.CacheText, false)] 4267[InlineData(ControlStyles.EnableNotifyMessage, false)] 4268[InlineData(ControlStyles.DoubleBuffer, false)] 4269[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 4270[InlineData(ControlStyles.UseTextForAccessibility, false)] 4271[InlineData((ControlStyles)0, true)] 4272[InlineData((ControlStyles)int.MaxValue, false)] 4273[InlineData((ControlStyles)(-1), false)] 4274public void ListView_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 6153public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 6161public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\MdiControlStripTests.cs (2)
440public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 450public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\MenuStripTests.cs (23)
511[InlineData(ControlStyles.ContainerControl, true)] 512[InlineData(ControlStyles.UserPaint, true)] 513[InlineData(ControlStyles.Opaque, false)] 514[InlineData(ControlStyles.ResizeRedraw, false)] 515[InlineData(ControlStyles.FixedWidth, false)] 516[InlineData(ControlStyles.FixedHeight, false)] 517[InlineData(ControlStyles.StandardClick, true)] 518[InlineData(ControlStyles.Selectable, false)] 519[InlineData(ControlStyles.UserMouse, false)] 520[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 521[InlineData(ControlStyles.StandardDoubleClick, true)] 522[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 523[InlineData(ControlStyles.CacheText, false)] 524[InlineData(ControlStyles.EnableNotifyMessage, false)] 525[InlineData(ControlStyles.DoubleBuffer, false)] 526[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 527[InlineData(ControlStyles.UseTextForAccessibility, true)] 528[InlineData((ControlStyles)0, true)] 529[InlineData((ControlStyles)int.MaxValue, false)] 530[InlineData((ControlStyles)(-1), false)] 531public void MenuStrip_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 936public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 946public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\MonthCalendarTests.cs (29)
751Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 757Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 763Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 782Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 791Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 800Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 3323[InlineData(ControlStyles.ContainerControl, false)] 3324[InlineData(ControlStyles.UserPaint, false)] 3325[InlineData(ControlStyles.Opaque, false)] 3326[InlineData(ControlStyles.ResizeRedraw, false)] 3327[InlineData(ControlStyles.FixedWidth, false)] 3328[InlineData(ControlStyles.FixedHeight, false)] 3329[InlineData(ControlStyles.StandardClick, false)] 3330[InlineData(ControlStyles.Selectable, true)] 3331[InlineData(ControlStyles.UserMouse, false)] 3332[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 3333[InlineData(ControlStyles.StandardDoubleClick, true)] 3334[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 3335[InlineData(ControlStyles.CacheText, false)] 3336[InlineData(ControlStyles.EnableNotifyMessage, false)] 3337[InlineData(ControlStyles.DoubleBuffer, false)] 3338[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 3339[InlineData(ControlStyles.UseTextForAccessibility, true)] 3340[InlineData((ControlStyles)0, true)] 3341[InlineData((ControlStyles)int.MaxValue, false)] 3342[InlineData((ControlStyles)(-1), false)] 3343public void MonthCalendar_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 4786public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 4820public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\PanelTests.cs (25)
852[InlineData(ControlStyles.ContainerControl, true)] 853[InlineData(ControlStyles.UserPaint, true)] 854[InlineData(ControlStyles.Opaque, false)] 855[InlineData(ControlStyles.ResizeRedraw, false)] 856[InlineData(ControlStyles.FixedWidth, false)] 857[InlineData(ControlStyles.FixedHeight, false)] 858[InlineData(ControlStyles.StandardClick, true)] 859[InlineData(ControlStyles.Selectable, false)] 860[InlineData(ControlStyles.UserMouse, false)] 861[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 862[InlineData(ControlStyles.StandardDoubleClick, true)] 863[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 864[InlineData(ControlStyles.CacheText, false)] 865[InlineData(ControlStyles.EnableNotifyMessage, false)] 866[InlineData(ControlStyles.DoubleBuffer, false)] 867[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 868[InlineData(ControlStyles.UseTextForAccessibility, true)] 869[InlineData((ControlStyles)0, true)] 870[InlineData((ControlStyles)int.MaxValue, false)] 871[InlineData((ControlStyles)(-1), false)] 872public void Panel_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1009control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 1090control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 1222public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 1234public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\PictureBoxTests.cs (33)
1296Assert.Equal(expectedAutoSize, pictureBox.GetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth)); 1302Assert.Equal(expectedAutoSize, pictureBox.GetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth)); 1315Assert.Equal(expectedAutoSize, pictureBox.GetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth)); 1321Assert.Equal(expectedAutoSize, pictureBox.GetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth)); 1868[InlineData(ControlStyles.ContainerControl, false)] 1869[InlineData(ControlStyles.UserPaint, true)] 1870[InlineData(ControlStyles.Opaque, false)] 1871[InlineData(ControlStyles.ResizeRedraw, false)] 1872[InlineData(ControlStyles.FixedWidth, false)] 1873[InlineData(ControlStyles.FixedHeight, false)] 1874[InlineData(ControlStyles.StandardClick, true)] 1875[InlineData(ControlStyles.Selectable, false)] 1876[InlineData(ControlStyles.UserMouse, false)] 1877[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 1878[InlineData(ControlStyles.StandardDoubleClick, true)] 1879[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1880[InlineData(ControlStyles.CacheText, false)] 1881[InlineData(ControlStyles.EnableNotifyMessage, false)] 1882[InlineData(ControlStyles.DoubleBuffer, false)] 1883[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 1884[InlineData(ControlStyles.UseTextForAccessibility, true)] 1885[InlineData((ControlStyles)0, true)] 1886[InlineData((ControlStyles)int.MaxValue, false)] 1887[InlineData((ControlStyles)(-1), false)] 1888public void PictureBox_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2218Assert.True(control.GetStyle(ControlStyles.UserPaint)); 2682control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 2894public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2928public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ProgressBarTests.cs (31)
403control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 416Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 422Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 428Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 447Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 456Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 465Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1797[InlineData(ControlStyles.ContainerControl, false)] 1798[InlineData(ControlStyles.UserPaint, false)] 1799[InlineData(ControlStyles.Opaque, false)] 1800[InlineData(ControlStyles.ResizeRedraw, false)] 1801[InlineData(ControlStyles.FixedWidth, false)] 1802[InlineData(ControlStyles.FixedHeight, false)] 1803[InlineData(ControlStyles.StandardClick, true)] 1804[InlineData(ControlStyles.Selectable, false)] 1805[InlineData(ControlStyles.UserMouse, false)] 1806[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1807[InlineData(ControlStyles.StandardDoubleClick, true)] 1808[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1809[InlineData(ControlStyles.CacheText, false)] 1810[InlineData(ControlStyles.EnableNotifyMessage, false)] 1811[InlineData(ControlStyles.DoubleBuffer, false)] 1812[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1813[InlineData(ControlStyles.UseTextForAccessibility, false)] 1814[InlineData((ControlStyles)0, true)] 1815[InlineData((ControlStyles)int.MaxValue, false)] 1816[InlineData((ControlStyles)(-1), false)] 1817public void ProgressBar_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2141Assert.False(control.GetStyle(ControlStyles.UserPaint)); 2644public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2674public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\PropertyGridTests.cs (22)
3473[InlineData(ControlStyles.ContainerControl, true)] 3474[InlineData(ControlStyles.UserPaint, true)] 3475[InlineData(ControlStyles.Opaque, false)] 3476[InlineData(ControlStyles.ResizeRedraw, false)] 3477[InlineData(ControlStyles.FixedWidth, false)] 3478[InlineData(ControlStyles.FixedHeight, false)] 3479[InlineData(ControlStyles.StandardClick, true)] 3480[InlineData(ControlStyles.Selectable, true)] 3481[InlineData(ControlStyles.UserMouse, false)] 3482[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 3483[InlineData(ControlStyles.StandardDoubleClick, true)] 3484[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 3485[InlineData(ControlStyles.CacheText, false)] 3486[InlineData(ControlStyles.EnableNotifyMessage, false)] 3487[InlineData(ControlStyles.DoubleBuffer, false)] 3488[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 3489[InlineData(ControlStyles.UseTextForAccessibility, true)] 3490[InlineData((ControlStyles)0, true)] 3491[InlineData((ControlStyles)int.MaxValue, false)] 3492[InlineData((ControlStyles)(-1), false)] 3493public void PropertyGrid_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 4225public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\RadioButtonTests.cs (24)
149control.SetStyle(ControlStyles.UserPaint, userPaint); 622[InlineData(ControlStyles.ContainerControl, false)] 623[InlineData(ControlStyles.UserPaint, true)] 624[InlineData(ControlStyles.Opaque, true)] 625[InlineData(ControlStyles.ResizeRedraw, true)] 626[InlineData(ControlStyles.FixedWidth, false)] 627[InlineData(ControlStyles.FixedHeight, false)] 628[InlineData(ControlStyles.StandardClick, false)] 629[InlineData(ControlStyles.Selectable, true)] 630[InlineData(ControlStyles.UserMouse, true)] 631[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 632[InlineData(ControlStyles.StandardDoubleClick, true)] 633[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 634[InlineData(ControlStyles.CacheText, true)] 635[InlineData(ControlStyles.EnableNotifyMessage, false)] 636[InlineData(ControlStyles.DoubleBuffer, false)] 637[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 638[InlineData(ControlStyles.UseTextForAccessibility, true)] 639[InlineData((ControlStyles)0, true)] 640[InlineData((ControlStyles)int.MaxValue, false)] 641[InlineData((ControlStyles)(-1), false)] 642public void RadioButton_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1593public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 1619public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\RichTextBoxTests.cs (52)
388Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 397Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 406Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 432Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 441Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 450Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 476Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 486Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 496Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 1427control.SetStyle(ControlStyles.UserPaint, userPaint); 1429Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1464control.SetStyle(ControlStyles.UserPaint, userPaint); 1466Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1511control.SetStyle(ControlStyles.UserPaint, userPaint); 1513Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1550control.SetStyle(ControlStyles.UserPaint, userPaint); 1552Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 2068Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2076Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2084Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2106Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 2114Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 2122Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 2145Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2155Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2165Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2209Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 2219Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 2229Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 8970[InlineData(ControlStyles.ContainerControl, false)] 8971[InlineData(ControlStyles.UserPaint, false)] 8972[InlineData(ControlStyles.Opaque, false)] 8973[InlineData(ControlStyles.ResizeRedraw, false)] 8974[InlineData(ControlStyles.FixedWidth, false)] 8975[InlineData(ControlStyles.FixedHeight, false)] 8976[InlineData(ControlStyles.StandardClick, false)] 8977[InlineData(ControlStyles.Selectable, true)] 8978[InlineData(ControlStyles.UserMouse, false)] 8979[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 8980[InlineData(ControlStyles.StandardDoubleClick, false)] 8981[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 8982[InlineData(ControlStyles.CacheText, false)] 8983[InlineData(ControlStyles.EnableNotifyMessage, false)] 8984[InlineData(ControlStyles.DoubleBuffer, false)] 8985[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 8986[InlineData(ControlStyles.UseTextForAccessibility, false)] 8987[InlineData((ControlStyles)0, true)] 8988[InlineData((ControlStyles)int.MaxValue, false)] 8989[InlineData((ControlStyles)(-1), false)] 8990public void RichTextBox_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 10978public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 11000public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ScrollableControlTests.cs (28)
1349[InlineData(ControlStyles.ContainerControl, true)] 1350[InlineData(ControlStyles.UserPaint, true)] 1351[InlineData(ControlStyles.Opaque, false)] 1352[InlineData(ControlStyles.ResizeRedraw, false)] 1353[InlineData(ControlStyles.FixedWidth, false)] 1354[InlineData(ControlStyles.FixedHeight, false)] 1355[InlineData(ControlStyles.StandardClick, true)] 1356[InlineData(ControlStyles.Selectable, true)] 1357[InlineData(ControlStyles.UserMouse, false)] 1358[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1359[InlineData(ControlStyles.StandardDoubleClick, true)] 1360[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 1361[InlineData(ControlStyles.CacheText, false)] 1362[InlineData(ControlStyles.EnableNotifyMessage, false)] 1363[InlineData(ControlStyles.DoubleBuffer, false)] 1364[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1365[InlineData(ControlStyles.UseTextForAccessibility, true)] 1366[InlineData((ControlStyles)0, true)] 1367[InlineData((ControlStyles)int.MaxValue, false)] 1368[InlineData((ControlStyles)(-1), false)] 1369public void ScrollableControl_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1469control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 1539control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 1688control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 1738control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 1832control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 2642public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2662public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ScrollBarTests.cs (26)
1861[InlineData(ControlStyles.ContainerControl, false)] 1862[InlineData(ControlStyles.UserPaint, false)] 1863[InlineData(ControlStyles.Opaque, false)] 1864[InlineData(ControlStyles.ResizeRedraw, false)] 1865[InlineData(ControlStyles.FixedWidth, false)] 1866[InlineData(ControlStyles.FixedHeight, false)] 1867[InlineData(ControlStyles.StandardClick, false)] 1868[InlineData(ControlStyles.Selectable, true)] 1869[InlineData(ControlStyles.UserMouse, false)] 1870[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1871[InlineData(ControlStyles.StandardDoubleClick, true)] 1872[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1873[InlineData(ControlStyles.CacheText, false)] 1874[InlineData(ControlStyles.EnableNotifyMessage, false)] 1875[InlineData(ControlStyles.DoubleBuffer, false)] 1876[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1877[InlineData(ControlStyles.UseTextForAccessibility, false)] 1878[InlineData((ControlStyles)0, true)] 1879[InlineData((ControlStyles)int.MaxValue, false)] 1880[InlineData((ControlStyles)(-1), false)] 1881public void ScrollBar_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2689control.SetStyle(ControlStyles.UserPaint, userPaint); 2690control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 2691control.SetStyle(ControlStyles.Opaque, opaque); 3216public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 3246public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\SplitterTests.cs (22)
1640[InlineData(ControlStyles.ContainerControl, false)] 1641[InlineData(ControlStyles.UserPaint, true)] 1642[InlineData(ControlStyles.Opaque, false)] 1643[InlineData(ControlStyles.ResizeRedraw, false)] 1644[InlineData(ControlStyles.FixedWidth, false)] 1645[InlineData(ControlStyles.FixedHeight, false)] 1646[InlineData(ControlStyles.StandardClick, true)] 1647[InlineData(ControlStyles.Selectable, false)] 1648[InlineData(ControlStyles.UserMouse, false)] 1649[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1650[InlineData(ControlStyles.StandardDoubleClick, true)] 1651[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1652[InlineData(ControlStyles.CacheText, false)] 1653[InlineData(ControlStyles.EnableNotifyMessage, false)] 1654[InlineData(ControlStyles.DoubleBuffer, false)] 1655[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1656[InlineData(ControlStyles.UseTextForAccessibility, true)] 1657[InlineData((ControlStyles)0, true)] 1658[InlineData((ControlStyles)int.MaxValue, false)] 1659[InlineData((ControlStyles)(-1), false)] 1660public void Splitter_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2359public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\StatusStripTests.cs (22)
1096[InlineData(ControlStyles.ContainerControl, true)] 1097[InlineData(ControlStyles.UserPaint, true)] 1098[InlineData(ControlStyles.Opaque, false)] 1099[InlineData(ControlStyles.ResizeRedraw, true)] 1100[InlineData(ControlStyles.FixedWidth, false)] 1101[InlineData(ControlStyles.FixedHeight, false)] 1102[InlineData(ControlStyles.StandardClick, true)] 1103[InlineData(ControlStyles.Selectable, false)] 1104[InlineData(ControlStyles.UserMouse, false)] 1105[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 1106[InlineData(ControlStyles.StandardDoubleClick, true)] 1107[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1108[InlineData(ControlStyles.CacheText, false)] 1109[InlineData(ControlStyles.EnableNotifyMessage, false)] 1110[InlineData(ControlStyles.DoubleBuffer, false)] 1111[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 1112[InlineData(ControlStyles.UseTextForAccessibility, true)] 1113[InlineData((ControlStyles)0, true)] 1114[InlineData((ControlStyles)int.MaxValue, false)] 1115[InlineData((ControlStyles)(-1), false)] 1116public void StatusStrip_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1356public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\TabControlTests.cs (30)
796control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 809Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 815Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 821Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 840Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 849Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 858Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 3929[InlineData(ControlStyles.ContainerControl, false)] 3930[InlineData(ControlStyles.UserPaint, false)] 3931[InlineData(ControlStyles.Opaque, false)] 3932[InlineData(ControlStyles.ResizeRedraw, false)] 3933[InlineData(ControlStyles.FixedWidth, false)] 3934[InlineData(ControlStyles.FixedHeight, false)] 3935[InlineData(ControlStyles.StandardClick, true)] 3936[InlineData(ControlStyles.Selectable, true)] 3937[InlineData(ControlStyles.UserMouse, false)] 3938[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 3939[InlineData(ControlStyles.StandardDoubleClick, true)] 3940[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 3941[InlineData(ControlStyles.CacheText, false)] 3942[InlineData(ControlStyles.EnableNotifyMessage, false)] 3943[InlineData(ControlStyles.DoubleBuffer, false)] 3944[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 3945[InlineData(ControlStyles.UseTextForAccessibility, true)] 3946[InlineData((ControlStyles)0, true)] 3947[InlineData((ControlStyles)int.MaxValue, false)] 3948[InlineData((ControlStyles)(-1), false)] 3949public void TabControl_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 5785public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 5819public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\TableLayoutPanelTests.cs (29)
225control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 237Assert.Equal(expectedResizeRedraw, control.GetStyle(ControlStyles.ResizeRedraw)); 244Assert.Equal(expectedResizeRedraw, control.GetStyle(ControlStyles.ResizeRedraw)); 254control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 273Assert.Equal(expectedResizeRedraw, control.GetStyle(ControlStyles.ResizeRedraw)); 283Assert.Equal(expectedResizeRedraw, control.GetStyle(ControlStyles.ResizeRedraw)); 1168[InlineData(ControlStyles.ContainerControl, true)] 1169[InlineData(ControlStyles.UserPaint, true)] 1170[InlineData(ControlStyles.Opaque, false)] 1171[InlineData(ControlStyles.ResizeRedraw, false)] 1172[InlineData(ControlStyles.FixedWidth, false)] 1173[InlineData(ControlStyles.FixedHeight, false)] 1174[InlineData(ControlStyles.StandardClick, true)] 1175[InlineData(ControlStyles.Selectable, false)] 1176[InlineData(ControlStyles.UserMouse, false)] 1177[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 1178[InlineData(ControlStyles.StandardDoubleClick, true)] 1179[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 1180[InlineData(ControlStyles.CacheText, false)] 1181[InlineData(ControlStyles.EnableNotifyMessage, false)] 1182[InlineData(ControlStyles.DoubleBuffer, false)] 1183[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1184[InlineData(ControlStyles.UseTextForAccessibility, true)] 1185[InlineData((ControlStyles)0, true)] 1186[InlineData((ControlStyles)int.MaxValue, false)] 1187[InlineData((ControlStyles)(-1), false)] 1188public void TableLayoutPanel_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2241public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2259public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\TabPageTests.cs (36)
1025control.SetStyle(ControlStyles.UserPaint, userPaint); 1033Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 2055control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 2159control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 2283control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 2285control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 3610control.SetStyle(ControlStyles.UserPaint, userPaint); 3774[InlineData(ControlStyles.ContainerControl, true)] 3775[InlineData(ControlStyles.UserPaint, true)] 3776[InlineData(ControlStyles.Opaque, false)] 3777[InlineData(ControlStyles.ResizeRedraw, false)] 3778[InlineData(ControlStyles.FixedWidth, false)] 3779[InlineData(ControlStyles.FixedHeight, false)] 3780[InlineData(ControlStyles.StandardClick, true)] 3781[InlineData(ControlStyles.Selectable, false)] 3782[InlineData(ControlStyles.UserMouse, false)] 3783[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 3784[InlineData(ControlStyles.StandardDoubleClick, true)] 3785[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 3786[InlineData(ControlStyles.CacheText, true)] 3787[InlineData(ControlStyles.EnableNotifyMessage, false)] 3788[InlineData(ControlStyles.DoubleBuffer, false)] 3789[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 3790[InlineData(ControlStyles.UseTextForAccessibility, true)] 3791[InlineData((ControlStyles)0, true)] 3792[InlineData((ControlStyles)int.MaxValue, false)] 3793[InlineData((ControlStyles)(-1), false)] 3794public void TabPage_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 3981control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4061control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4107control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4200control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4561control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 4712control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 5305public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 5311public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ToolStripContentPanelTests.cs (37)
1148control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1153Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1160Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1169Assert.True(control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1181control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1193Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1203Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1215Assert.True(control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1672[InlineData(ControlStyles.ContainerControl, true)] 1673[InlineData(ControlStyles.UserPaint, true)] 1674[InlineData(ControlStyles.Opaque, false)] 1675[InlineData(ControlStyles.ResizeRedraw, true)] 1676[InlineData(ControlStyles.FixedWidth, false)] 1677[InlineData(ControlStyles.FixedHeight, false)] 1678[InlineData(ControlStyles.StandardClick, true)] 1679[InlineData(ControlStyles.Selectable, false)] 1680[InlineData(ControlStyles.UserMouse, false)] 1681[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 1682[InlineData(ControlStyles.StandardDoubleClick, true)] 1683[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 1684[InlineData(ControlStyles.CacheText, false)] 1685[InlineData(ControlStyles.EnableNotifyMessage, false)] 1686[InlineData(ControlStyles.DoubleBuffer, false)] 1687[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1688[InlineData(ControlStyles.UseTextForAccessibility, true)] 1689[InlineData((ControlStyles)0, true)] 1690[InlineData((ControlStyles)int.MaxValue, false)] 1691[InlineData((ControlStyles)(-1), false)] 1692public void ToolStripContentPanel_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1913control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1926Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1933Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1952control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1965Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1975Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 2084public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2096public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ToolStripDropDownTests.cs (23)
3643[InlineData(ControlStyles.ContainerControl, true)] 3644[InlineData(ControlStyles.UserPaint, true)] 3645[InlineData(ControlStyles.Opaque, false)] 3646[InlineData(ControlStyles.ResizeRedraw, true)] 3647[InlineData(ControlStyles.FixedWidth, false)] 3648[InlineData(ControlStyles.FixedHeight, false)] 3649[InlineData(ControlStyles.StandardClick, true)] 3650[InlineData(ControlStyles.Selectable, false)] 3651[InlineData(ControlStyles.UserMouse, false)] 3652[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 3653[InlineData(ControlStyles.StandardDoubleClick, true)] 3654[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 3655[InlineData(ControlStyles.CacheText, false)] 3656[InlineData(ControlStyles.EnableNotifyMessage, false)] 3657[InlineData(ControlStyles.DoubleBuffer, false)] 3658[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 3659[InlineData(ControlStyles.UseTextForAccessibility, true)] 3660[InlineData((ControlStyles)0, true)] 3661[InlineData((ControlStyles)int.MaxValue, false)] 3662[InlineData((ControlStyles)(-1), false)] 3663public void ToolStripDropDown_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 5182public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 5238public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ToolStripPanelTests.cs (22)
306[InlineData(ControlStyles.ContainerControl, true)] 307[InlineData(ControlStyles.UserPaint, true)] 308[InlineData(ControlStyles.Opaque, false)] 309[InlineData(ControlStyles.ResizeRedraw, true)] 310[InlineData(ControlStyles.FixedWidth, false)] 311[InlineData(ControlStyles.FixedHeight, false)] 312[InlineData(ControlStyles.StandardClick, true)] 313[InlineData(ControlStyles.Selectable, false)] 314[InlineData(ControlStyles.UserMouse, false)] 315[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 316[InlineData(ControlStyles.StandardDoubleClick, true)] 317[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 318[InlineData(ControlStyles.CacheText, false)] 319[InlineData(ControlStyles.EnableNotifyMessage, false)] 320[InlineData(ControlStyles.DoubleBuffer, false)] 321[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 322[InlineData(ControlStyles.UseTextForAccessibility, true)] 323[InlineData((ControlStyles)0, true)] 324[InlineData((ControlStyles)int.MaxValue, false)] 325[InlineData((ControlStyles)(-1), false)] 326public void ToolStripPanel_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 425public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ToolStripTests.cs (37)
3720Assert.Equal(value, control.GetStyle(ControlStyles.Selectable)); 3726Assert.Equal(value, control.GetStyle(ControlStyles.Selectable)); 3732Assert.Equal(!value, control.GetStyle(ControlStyles.Selectable)); 3751Assert.Equal(value, control.GetStyle(ControlStyles.Selectable)); 3760Assert.Equal(value, control.GetStyle(ControlStyles.Selectable)); 3769Assert.Equal(!value, control.GetStyle(ControlStyles.Selectable)); 4133control.SetStyle(ControlStyles.UserPaint, userPaint); 4921[InlineData(ControlStyles.ContainerControl, true)] 4922[InlineData(ControlStyles.UserPaint, true)] 4923[InlineData(ControlStyles.Opaque, false)] 4924[InlineData(ControlStyles.ResizeRedraw, false)] 4925[InlineData(ControlStyles.FixedWidth, false)] 4926[InlineData(ControlStyles.FixedHeight, false)] 4927[InlineData(ControlStyles.StandardClick, true)] 4928[InlineData(ControlStyles.Selectable, false)] 4929[InlineData(ControlStyles.UserMouse, false)] 4930[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 4931[InlineData(ControlStyles.StandardDoubleClick, true)] 4932[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 4933[InlineData(ControlStyles.CacheText, false)] 4934[InlineData(ControlStyles.EnableNotifyMessage, false)] 4935[InlineData(ControlStyles.DoubleBuffer, false)] 4936[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 4937[InlineData(ControlStyles.UseTextForAccessibility, true)] 4938[InlineData((ControlStyles)0, true)] 4939[InlineData((ControlStyles)int.MaxValue, false)] 4940[InlineData((ControlStyles)(-1), false)] 4941public void ToolStrip_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 5880control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 6029control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 6078control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 6171control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 6790control.SetStyle(ControlStyles.Selectable, !tabStop); 6802Assert.Equal(tabStop, control.GetStyle(ControlStyles.Selectable)); 6808Assert.Equal(tabStop, control.GetStyle(ControlStyles.Selectable)); 7614public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 7690public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\TreeViewTests.cs (25)
5044[InlineData(ControlStyles.ContainerControl, false)] 5045[InlineData(ControlStyles.UserPaint, false)] 5046[InlineData(ControlStyles.Opaque, false)] 5047[InlineData(ControlStyles.ResizeRedraw, false)] 5048[InlineData(ControlStyles.FixedWidth, false)] 5049[InlineData(ControlStyles.FixedHeight, false)] 5050[InlineData(ControlStyles.StandardClick, false)] 5051[InlineData(ControlStyles.Selectable, true)] 5052[InlineData(ControlStyles.UserMouse, false)] 5053[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 5054[InlineData(ControlStyles.StandardDoubleClick, true)] 5055[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 5056[InlineData(ControlStyles.CacheText, false)] 5057[InlineData(ControlStyles.EnableNotifyMessage, false)] 5058[InlineData(ControlStyles.DoubleBuffer, false)] 5059[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 5060[InlineData(ControlStyles.UseTextForAccessibility, false)] 5061[InlineData((ControlStyles)0, true)] 5062[InlineData((ControlStyles)int.MaxValue, false)] 5063[InlineData((ControlStyles)(-1), false)] 5064public void TreeView_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 5976Assert.False(control.GetStyle(ControlStyles.UserPaint)); 6032Assert.False(control.GetStyle(ControlStyles.UserPaint)); 6113Assert.False(control.GetStyle(ControlStyles.UserPaint)); 7626public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\UpDownBaseTests.cs (22)
1681[InlineData(ControlStyles.ContainerControl, true)] 1682[InlineData(ControlStyles.UserPaint, true)] 1683[InlineData(ControlStyles.Opaque, true)] 1684[InlineData(ControlStyles.ResizeRedraw, true)] 1685[InlineData(ControlStyles.FixedWidth, false)] 1686[InlineData(ControlStyles.FixedHeight, true)] 1687[InlineData(ControlStyles.StandardClick, false)] 1688[InlineData(ControlStyles.Selectable, true)] 1689[InlineData(ControlStyles.UserMouse, false)] 1690[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1691[InlineData(ControlStyles.StandardDoubleClick, true)] 1692[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 1693[InlineData(ControlStyles.CacheText, false)] 1694[InlineData(ControlStyles.EnableNotifyMessage, false)] 1695[InlineData(ControlStyles.DoubleBuffer, false)] 1696[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1697[InlineData(ControlStyles.UseTextForAccessibility, false)] 1698[InlineData((ControlStyles)0, true)] 1699[InlineData((ControlStyles)int.MaxValue, false)] 1700[InlineData((ControlStyles)(-1), false)] 1701public void UpDownBase_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 3184public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\UserControlTests.cs (28)
896[InlineData(ControlStyles.ContainerControl, true)] 897[InlineData(ControlStyles.UserPaint, true)] 898[InlineData(ControlStyles.Opaque, false)] 899[InlineData(ControlStyles.ResizeRedraw, false)] 900[InlineData(ControlStyles.FixedWidth, false)] 901[InlineData(ControlStyles.FixedHeight, false)] 902[InlineData(ControlStyles.StandardClick, true)] 903[InlineData(ControlStyles.Selectable, true)] 904[InlineData(ControlStyles.UserMouse, false)] 905[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 906[InlineData(ControlStyles.StandardDoubleClick, true)] 907[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 908[InlineData(ControlStyles.CacheText, false)] 909[InlineData(ControlStyles.EnableNotifyMessage, false)] 910[InlineData(ControlStyles.DoubleBuffer, false)] 911[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 912[InlineData(ControlStyles.UseTextForAccessibility, true)] 913[InlineData((ControlStyles)0, true)] 914[InlineData((ControlStyles)int.MaxValue, false)] 915[InlineData((ControlStyles)(-1), false)] 916public void UserControl_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1143control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 1197control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 1270child4.SetStyle(ControlStyles.Selectable, false); 1496child4.SetStyle(ControlStyles.Selectable, false); 1780public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value); 1865public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 1877public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\VScrollBarTests.cs (22)
198[InlineData(ControlStyles.ContainerControl, false)] 199[InlineData(ControlStyles.UserPaint, false)] 200[InlineData(ControlStyles.Opaque, false)] 201[InlineData(ControlStyles.ResizeRedraw, false)] 202[InlineData(ControlStyles.FixedWidth, false)] 203[InlineData(ControlStyles.FixedHeight, false)] 204[InlineData(ControlStyles.StandardClick, false)] 205[InlineData(ControlStyles.Selectable, true)] 206[InlineData(ControlStyles.UserMouse, false)] 207[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 208[InlineData(ControlStyles.StandardDoubleClick, true)] 209[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 210[InlineData(ControlStyles.CacheText, false)] 211[InlineData(ControlStyles.EnableNotifyMessage, false)] 212[InlineData(ControlStyles.DoubleBuffer, false)] 213[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 214[InlineData(ControlStyles.UseTextForAccessibility, false)] 215[InlineData((ControlStyles)0, true)] 216[InlineData((ControlStyles)int.MaxValue, false)] 217[InlineData((ControlStyles)(-1), false)] 218public void VScrollBar_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 290public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\WebBrowserTests.cs (22)
2815[InlineData(ControlStyles.ContainerControl, false)] 2816[InlineData(ControlStyles.UserPaint, false)] 2817[InlineData(ControlStyles.Opaque, false)] 2818[InlineData(ControlStyles.ResizeRedraw, false)] 2819[InlineData(ControlStyles.FixedWidth, false)] 2820[InlineData(ControlStyles.FixedHeight, false)] 2821[InlineData(ControlStyles.StandardClick, true)] 2822[InlineData(ControlStyles.Selectable, true)] 2823[InlineData(ControlStyles.UserMouse, false)] 2824[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 2825[InlineData(ControlStyles.StandardDoubleClick, true)] 2826[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 2827[InlineData(ControlStyles.CacheText, false)] 2828[InlineData(ControlStyles.EnableNotifyMessage, false)] 2829[InlineData(ControlStyles.DoubleBuffer, false)] 2830[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 2831[InlineData(ControlStyles.UseTextForAccessibility, true)] 2832[InlineData((ControlStyles)0, true)] 2833[InlineData((ControlStyles)int.MaxValue, false)] 2834[InlineData((ControlStyles)(-1), false)] 2835public void WebBrowser_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 4728public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
TextBoxBaseTests.cs (65)
216Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 225Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 234Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 254Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 264Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 274Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 301Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 311Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 321Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 798control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 811Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 817Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 823Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 842Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 851Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 860Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 965control.SetStyle(ControlStyles.UserPaint, userPaint); 967Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1002control.SetStyle(ControlStyles.UserPaint, userPaint); 1004Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1049control.SetStyle(ControlStyles.UserPaint, userPaint); 1051Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1088control.SetStyle(ControlStyles.UserPaint, userPaint); 1090Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1948Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 1956Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 1964Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 1980Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 1988Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 1996Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2028Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 2038Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 2048Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 2080Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2090Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2100Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 5141[InlineData(ControlStyles.ContainerControl, false)] 5142[InlineData(ControlStyles.UserPaint, false)] 5143[InlineData(ControlStyles.Opaque, false)] 5144[InlineData(ControlStyles.ResizeRedraw, false)] 5145[InlineData(ControlStyles.FixedWidth, false)] 5146[InlineData(ControlStyles.FixedHeight, true)] 5147[InlineData(ControlStyles.StandardClick, false)] 5148[InlineData(ControlStyles.Selectable, true)] 5149[InlineData(ControlStyles.UserMouse, false)] 5150[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 5151[InlineData(ControlStyles.StandardDoubleClick, false)] 5152[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 5153[InlineData(ControlStyles.CacheText, false)] 5154[InlineData(ControlStyles.EnableNotifyMessage, false)] 5155[InlineData(ControlStyles.DoubleBuffer, false)] 5156[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 5157[InlineData(ControlStyles.UseTextForAccessibility, false)] 5158[InlineData((ControlStyles)0, true)] 5159[InlineData((ControlStyles)int.MaxValue, false)] 5160[InlineData((ControlStyles)(-1), false)] 5161public void TextBoxBase_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 7259control.SetStyle(ControlStyles.UserMouse, userMouse); 7294control.SetStyle(ControlStyles.UserMouse, userMouse); 7295control.SetStyle(ControlStyles.Selectable, false); 7361control.SetStyle(ControlStyles.UserMouse, userMouse); 7404control.SetStyle(ControlStyles.UserMouse, userMouse); 7405control.SetStyle(ControlStyles.Selectable, false); 7739public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 7783public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
TextBoxTests.cs (24)
494[InlineData(ControlStyles.ContainerControl, false)] 495[InlineData(ControlStyles.UserPaint, false)] 496[InlineData(ControlStyles.Opaque, false)] 497[InlineData(ControlStyles.ResizeRedraw, false)] 498[InlineData(ControlStyles.FixedWidth, false)] 499[InlineData(ControlStyles.FixedHeight, true)] 500[InlineData(ControlStyles.StandardClick, false)] 501[InlineData(ControlStyles.Selectable, true)] 502[InlineData(ControlStyles.UserMouse, false)] 503[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 504[InlineData(ControlStyles.StandardDoubleClick, false)] 505[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 506[InlineData(ControlStyles.CacheText, false)] 507[InlineData(ControlStyles.EnableNotifyMessage, false)] 508[InlineData(ControlStyles.DoubleBuffer, false)] 509[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 510[InlineData(ControlStyles.UseTextForAccessibility, false)] 511[InlineData((ControlStyles)0, true)] 512[InlineData((ControlStyles)int.MaxValue, false)] 513[InlineData((ControlStyles)(-1), false)] 514public void TextBox_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 741public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 760get => GetStyle(ControlStyles.UserPaint); 761set => SetStyle(ControlStyles.UserPaint, value);
TrackBarTests.cs (70)
229Assert.False(control.GetStyle(ControlStyles.FixedWidth)); 230Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 238Assert.False(control.GetStyle(ControlStyles.FixedWidth)); 239Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 247Assert.False(control.GetStyle(ControlStyles.FixedWidth)); 248Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 267Assert.Equal(value, control.GetStyle(ControlStyles.FixedWidth)); 268Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 276Assert.Equal(value, control.GetStyle(ControlStyles.FixedWidth)); 277Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 285Assert.Equal(!value, control.GetStyle(ControlStyles.FixedWidth)); 286Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 309Assert.False(control.GetStyle(ControlStyles.FixedWidth)); 310Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 321Assert.False(control.GetStyle(ControlStyles.FixedWidth)); 322Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 333Assert.False(control.GetStyle(ControlStyles.FixedWidth)); 334Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 363Assert.Equal(value, control.GetStyle(ControlStyles.FixedWidth)); 364Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 375Assert.Equal(value, control.GetStyle(ControlStyles.FixedWidth)); 376Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 387Assert.Equal(!value, control.GetStyle(ControlStyles.FixedWidth)); 388Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 552control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 565Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 571Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 577Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 596Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 605Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 614Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1316Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1317Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 1324Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1325Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 1350Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1351Assert.Equal(expectedFixedHeight, control.GetStyle(ControlStyles.FixedHeight)); 1358Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1359Assert.Equal(expectedFixedHeight, control.GetStyle(ControlStyles.FixedHeight)); 1390Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1391Assert.Equal(expectedFixedHeight, control.GetStyle(ControlStyles.FixedHeight)); 1401Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1402Assert.Equal(expectedFixedHeight, control.GetStyle(ControlStyles.FixedHeight)); 1437Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1438Assert.Equal(expectedFixedHeight, control.GetStyle(ControlStyles.FixedHeight)); 1448Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1449Assert.Equal(expectedFixedHeight, control.GetStyle(ControlStyles.FixedHeight)); 2272[InlineData(ControlStyles.ContainerControl, false)] 2273[InlineData(ControlStyles.UserPaint, false)] 2274[InlineData(ControlStyles.Opaque, false)] 2275[InlineData(ControlStyles.ResizeRedraw, false)] 2276[InlineData(ControlStyles.FixedWidth, false)] 2277[InlineData(ControlStyles.FixedHeight, false)] 2278[InlineData(ControlStyles.StandardClick, true)] 2279[InlineData(ControlStyles.Selectable, true)] 2280[InlineData(ControlStyles.UserMouse, false)] 2281[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 2282[InlineData(ControlStyles.StandardDoubleClick, true)] 2283[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 2284[InlineData(ControlStyles.CacheText, false)] 2285[InlineData(ControlStyles.EnableNotifyMessage, false)] 2286[InlineData(ControlStyles.DoubleBuffer, false)] 2287[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 2288[InlineData(ControlStyles.UseTextForAccessibility, false)] 2289[InlineData((ControlStyles)0, true)] 2290[InlineData((ControlStyles)int.MaxValue, false)] 2291[InlineData((ControlStyles)(-1), false)] 2292public void TrackBar_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 3334public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 3370public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
WebBrowserBaseTests.cs (24)
140control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 763[InlineData(ControlStyles.ContainerControl, false)] 764[InlineData(ControlStyles.UserPaint, false)] 765[InlineData(ControlStyles.Opaque, false)] 766[InlineData(ControlStyles.ResizeRedraw, false)] 767[InlineData(ControlStyles.FixedWidth, false)] 768[InlineData(ControlStyles.FixedHeight, false)] 769[InlineData(ControlStyles.StandardClick, true)] 770[InlineData(ControlStyles.Selectable, true)] 771[InlineData(ControlStyles.UserMouse, false)] 772[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 773[InlineData(ControlStyles.StandardDoubleClick, true)] 774[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 775[InlineData(ControlStyles.CacheText, false)] 776[InlineData(ControlStyles.EnableNotifyMessage, false)] 777[InlineData(ControlStyles.DoubleBuffer, false)] 778[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 779[InlineData(ControlStyles.UseTextForAccessibility, true)] 780[InlineData((ControlStyles)0, true)] 781[InlineData((ControlStyles)int.MaxValue, false)] 782[InlineData((ControlStyles)(-1), false)] 783public void WebBrowserBase_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 946public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 952public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
WindowsFormsIntegration (3)
System\Windows\Integration\ElementHost.cs (3)
71SetStyle(SWF.ControlStyles.SupportsTransparentBackColor, true); 72SetStyle(SWF.ControlStyles.UserPaint, true); 73SetStyle(SWF.ControlStyles.AllPaintingInWmPaint, true);