1929 references to ControlStyles
System.Windows.Forms (277)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (2)
84=> this.TryGetOwnerAs(out Control? owner) && owner.GetStyle(ControlStyles.ContainerControl) 348if (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)
260private ControlStyles _controlStyle; 321ControlStyles.AllPaintingInWmPaint 322| ControlStyles.UserPaint 323| ControlStyles.StandardClick 324| ControlStyles.StandardDoubleClick 325| ControlStyles.UseTextForAccessibility 326| ControlStyles.Selectable, 808if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 882SetStyle(ControlStyles.ResizeRedraw, true); 1112return cacheTextCounter > 0 || GetStyle(ControlStyles.CacheText); 1117if (GetStyle(ControlStyles.CacheText) || !IsHandleCreated) 1319if (GetStyle(ControlStyles.ContainerControl)) 1722get => GetStyle(ControlStyles.OptimizedDoubleBuffer); 1729SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, value); 1733SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 1739private bool DoubleBufferingEnabled => GetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint); 1829if (IsHandleCreated && !GetStyle(ControlStyles.UserPaint)) 2390private bool IsValidBackColor(Color c) => c.IsEmpty || GetStyle(ControlStyles.SupportsTransparentBackColor) || c.A == 255; 2774=> GetStyle(ControlStyles.SupportsTransparentBackColor) && BackColor.A < 255; 2777=> GetStyle(ControlStyles.SupportsTransparentBackColor) && c.A < 255; 2827get => GetStyle(ControlStyles.ResizeRedraw); 2828set => SetStyle(ControlStyles.ResizeRedraw, value); 4331if ((_controlStyle & ControlStyles.Selectable) != ControlStyles.Selectable) 5254return ((ctl._controlStyle & ControlStyles.ContainerControl) == ControlStyles.ContainerControl && ctl is IContainerControl); 5325if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified & BoundsSpecified.Width) != 0) 5331if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified & BoundsSpecified.Height) != 0) 5726protected bool GetStyle(ControlStyles flag) => (_controlStyle & flag) == flag; 5780if (!GetStyle(ControlStyles.UserPaint)) 5833!GetStyle(ControlStyles.Opaque)); 5874bErase: !_controlStyle.HasFlag(ControlStyles.Opaque)); 5922bErase: !_controlStyle.HasFlag(ControlStyles.Opaque)); 6769if (GetStyle(ControlStyles.UserPaint)) 7082if (GetStyle(ControlStyles.UserPaint)) 7265if (!GetStyle(ControlStyles.UserPaint)) 7304if (Application.IsDarkModeEnabled && GetStyle(ControlStyles.ApplyThemingImplicitly)) 7885if (GetStyle(ControlStyles.ResizeRedraw)) 7959if ((_controlStyle & ControlStyles.ResizeRedraw) == ControlStyles.ResizeRedraw 8281if (!GetStyle(ControlStyles.Opaque)) 8482if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.GetStyle(ControlStyles.Selectable)) 8776if (GetStyle(ControlStyles.UserPaint)) 9621if (ScaleHelper.IsScalingRequirementMet && !GetStyle(ControlStyles.UserPaint) && !IsFontSet()) 9802if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth) 9808if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight) 9832if (!GetStyle(ControlStyles.FixedWidth)) 9837if (!GetStyle(ControlStyles.FixedHeight)) 10252protected void SetStyle(ControlStyles flag, bool value) 10455return GetStyle(ControlStyles.ContainerControl); 11159if (GetStyle(ControlStyles.UserPaint)) 11163if (!GetStyle(ControlStyles.AllPaintingInWmPaint)) 11305if (!GetStyle(ControlStyles.CacheText)) 11386if (!GetStyle(ControlStyles.UserMouse)) 11400if (button == MouseButtons.Left && GetStyle(ControlStyles.Selectable)) 11542if (!GetStyle(ControlStyles.UserMouse)) 11561if (!GetStyle(ControlStyles.UserMouse)) 11575bool fireClick = _controlStyle.HasFlag(ControlStyles.StandardClick) 11721bool doubleBuffered = DoubleBuffered || (GetStyle(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled); 11758bool paintBackground = (usingBeginPaint && GetStyle(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered; 12177if ((_controlStyle & ControlStyles.EnableNotifyMessage) == ControlStyles.EnableNotifyMessage) 12229if (GetStyle(ControlStyles.UserPaint)) 12241if (GetStyle(ControlStyles.UserPaint)) 12361if (GetStyle(ControlStyles.StandardDoubleClick)) 12378if (GetStyle(ControlStyles.StandardDoubleClick)) 12403if (GetStyle(ControlStyles.StandardDoubleClick)) 12454if (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) 3778if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 3784if (!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)
110SetStyle(ControlStyles.Opaque | ControlStyles.Selectable, false); 111SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.SupportsTransparentBackColor, true); 114SetStyle(ControlStyles.ApplyThemingImplicitly, true); 835SetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth, true); 841SetStyle(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)
35SetStyle(ControlStyles.ResizeRedraw, true); 622SetStyle(ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (5)
130ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.SupportsTransparentBackColor, 133SetStyle(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)
54SetStyle(ControlStyles.UserPaint, false); 55SetStyle(ControlStyles.UseTextForAccessibility, false); 58SetStyle(ControlStyles.ApplyThemingImplicitly, true); 89SetStyle(ControlStyles.FixedHeight, _autoSize); 90SetStyle(ControlStyles.FixedWidth, false); 94SetStyle(ControlStyles.FixedWidth, _autoSize); 95SetStyle(ControlStyles.FixedHeight, false); 379SetStyle(ControlStyles.FixedHeight, _autoSize); 380SetStyle(ControlStyles.FixedWidth, false); 385SetStyle(ControlStyles.FixedHeight, false); 386SetStyle(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)
90SetStyle(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 (23)
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\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
113SetStyle(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1638SetStyle(ControlStyles.Selectable, true);
System.Windows.Forms.Design.Tests (22)
System\ComponentModel\Design\ByteViewerTests.cs (22)
193[InlineData(ControlStyles.ContainerControl, true)] 194[InlineData(ControlStyles.UserPaint, true)] 195[InlineData(ControlStyles.Opaque, false)] 196[InlineData(ControlStyles.ResizeRedraw, true)] 197[InlineData(ControlStyles.FixedWidth, false)] 198[InlineData(ControlStyles.FixedHeight, false)] 199[InlineData(ControlStyles.StandardClick, true)] 200[InlineData(ControlStyles.Selectable, false)] 201[InlineData(ControlStyles.UserMouse, false)] 202[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 203[InlineData(ControlStyles.StandardDoubleClick, true)] 204[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 205[InlineData(ControlStyles.CacheText, false)] 206[InlineData(ControlStyles.EnableNotifyMessage, false)] 207[InlineData(ControlStyles.DoubleBuffer, false)] 208[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 209[InlineData(ControlStyles.UseTextForAccessibility, true)] 210[InlineData((ControlStyles)0, true)] 211[InlineData((ControlStyles)int.MaxValue, false)] 212[InlineData((ControlStyles)(-1), false)] 213public void ByteViewer_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1080public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System.Windows.Forms.Tests (1604)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (13)
346ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 361ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 376ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 446ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 471ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 495ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 546ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 562ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 578ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 687ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 713ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 738ownerControl.SetStyle(ControlStyles.UseTextForAccessibility, useTextForAccessibility); 1762public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ButtonBaseTests.cs (54)
1066Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1067Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1074Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1075Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1108Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1109Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1116Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1117Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1162Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1163Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1172Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1173Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1216Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1217Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1226Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1227Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1275Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1276Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1285Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1286Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1341Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1342Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1354Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserMouse)); 1355Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 5063[InlineData(ControlStyles.ContainerControl, false)] 5064[InlineData(ControlStyles.UserPaint, true)] 5065[InlineData(ControlStyles.Opaque, true)] 5066[InlineData(ControlStyles.ResizeRedraw, true)] 5067[InlineData(ControlStyles.FixedWidth, false)] 5068[InlineData(ControlStyles.FixedHeight, false)] 5069[InlineData(ControlStyles.StandardClick, true)] 5070[InlineData(ControlStyles.Selectable, true)] 5071[InlineData(ControlStyles.UserMouse, true)] 5072[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 5073[InlineData(ControlStyles.StandardDoubleClick, true)] 5074[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 5075[InlineData(ControlStyles.CacheText, true)] 5076[InlineData(ControlStyles.EnableNotifyMessage, false)] 5077[InlineData(ControlStyles.DoubleBuffer, false)] 5078[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 5079[InlineData(ControlStyles.UseTextForAccessibility, true)] 5080[InlineData((ControlStyles)0, true)] 5081[InlineData((ControlStyles)int.MaxValue, false)] 5082[InlineData((ControlStyles)(-1), false)] 5083public void ButtonBase_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 8878control.SetStyle(ControlStyles.UserMouse, userMouse); 8913control.SetStyle(ControlStyles.UserMouse, userMouse); 8914control.SetStyle(ControlStyles.Selectable, false); 8976control.SetStyle(ControlStyles.UserMouse, userMouse); 9019control.SetStyle(ControlStyles.UserMouse, userMouse); 9020control.SetStyle(ControlStyles.Selectable, false); 9251public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 9337public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 9377public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ButtonTests.cs (36)
151control.SetStyle(ControlStyles.UserPaint, userPaint); 1769[InlineData(ControlStyles.ContainerControl, false)] 1770[InlineData(ControlStyles.UserPaint, true)] 1771[InlineData(ControlStyles.Opaque, true)] 1772[InlineData(ControlStyles.ResizeRedraw, true)] 1773[InlineData(ControlStyles.FixedWidth, false)] 1774[InlineData(ControlStyles.FixedHeight, false)] 1775[InlineData(ControlStyles.StandardClick, false)] 1776[InlineData(ControlStyles.Selectable, true)] 1777[InlineData(ControlStyles.UserMouse, true)] 1778[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 1779[InlineData(ControlStyles.StandardDoubleClick, false)] 1780[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1781[InlineData(ControlStyles.CacheText, true)] 1782[InlineData(ControlStyles.EnableNotifyMessage, false)] 1783[InlineData(ControlStyles.DoubleBuffer, false)] 1784[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 1785[InlineData(ControlStyles.UseTextForAccessibility, true)] 1786[InlineData((ControlStyles)0, true)] 1787[InlineData((ControlStyles)int.MaxValue, false)] 1788[InlineData((ControlStyles)(-1), false)] 1789public void Button_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 3380control.SetStyle(ControlStyles.UserPaint, userPaint); 3381control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 3382control.SetStyle(ControlStyles.Opaque, opaque); 3419control.SetStyle(ControlStyles.UserPaint, userPaint); 3420control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 3421control.SetStyle(ControlStyles.Opaque, opaque); 3453control.SetStyle(ControlStyles.UserPaint, userPaint); 3454control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 3455control.SetStyle(ControlStyles.Opaque, opaque); 3485control.SetStyle(ControlStyles.UserPaint, userPaint); 3486control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 3487control.SetStyle(ControlStyles.Opaque, opaque); 3743public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 3773public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\CheckBoxTests.cs (22)
497[InlineData(ControlStyles.ContainerControl, false)] 498[InlineData(ControlStyles.UserPaint, true)] 499[InlineData(ControlStyles.Opaque, true)] 500[InlineData(ControlStyles.ResizeRedraw, true)] 501[InlineData(ControlStyles.FixedWidth, false)] 502[InlineData(ControlStyles.FixedHeight, false)] 503[InlineData(ControlStyles.StandardClick, false)] 504[InlineData(ControlStyles.Selectable, true)] 505[InlineData(ControlStyles.UserMouse, true)] 506[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 507[InlineData(ControlStyles.StandardDoubleClick, false)] 508[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 509[InlineData(ControlStyles.CacheText, true)] 510[InlineData(ControlStyles.EnableNotifyMessage, false)] 511[InlineData(ControlStyles.DoubleBuffer, false)] 512[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 513[InlineData(ControlStyles.UseTextForAccessibility, true)] 514[InlineData((ControlStyles)0, true)] 515[InlineData((ControlStyles)int.MaxValue, false)] 516[InlineData((ControlStyles)(-1), false)] 517public void CheckBox_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 696public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ComboBoxTests.cs (47)
1455[InlineData(ControlStyles.ContainerControl, false)] 1456[InlineData(ControlStyles.UserPaint, false)] 1457[InlineData(ControlStyles.Opaque, false)] 1458[InlineData(ControlStyles.ResizeRedraw, false)] 1459[InlineData(ControlStyles.FixedWidth, false)] 1460[InlineData(ControlStyles.FixedHeight, false)] 1461[InlineData(ControlStyles.StandardClick, false)] 1462[InlineData(ControlStyles.Selectable, true)] 1463[InlineData(ControlStyles.UserMouse, false)] 1464[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1465[InlineData(ControlStyles.StandardDoubleClick, true)] 1466[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1467[InlineData(ControlStyles.CacheText, false)] 1468[InlineData(ControlStyles.EnableNotifyMessage, false)] 1469[InlineData(ControlStyles.DoubleBuffer, false)] 1470[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1471[InlineData(ControlStyles.UseTextForAccessibility, false)] 1472[InlineData((ControlStyles)0, true)] 1473[InlineData((ControlStyles)int.MaxValue, false)] 1474[InlineData((ControlStyles)(-1), false)] 1475public void ComboBox_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1805control.SetStyle(ControlStyles.UserPaint, userPaint); 1806control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1807control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 1832control.SetStyle(ControlStyles.UserPaint, userPaint); 1833control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1834control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 1880control.SetStyle(ControlStyles.UserPaint, userPaint); 1881control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1882control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 1914control.SetStyle(ControlStyles.UserPaint, userPaint); 1915control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1916control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 1978control.SetStyle(ControlStyles.UserPaint, userPaint); 1979control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1980control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 2016control.SetStyle(ControlStyles.UserPaint, userPaint); 2017control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 2018control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 2075control.SetStyle(ControlStyles.UserPaint, userPaint); 2076control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 2077control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 2120control.SetStyle(ControlStyles.UserPaint, userPaint); 2121control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 2122control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 2896public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2938public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ContainerControlTests.cs (25)
513[InlineData(ControlStyles.ContainerControl, true)] 514[InlineData(ControlStyles.UserPaint, true)] 515[InlineData(ControlStyles.Opaque, false)] 516[InlineData(ControlStyles.ResizeRedraw, false)] 517[InlineData(ControlStyles.FixedWidth, false)] 518[InlineData(ControlStyles.FixedHeight, false)] 519[InlineData(ControlStyles.StandardClick, true)] 520[InlineData(ControlStyles.Selectable, true)] 521[InlineData(ControlStyles.UserMouse, false)] 522[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 523[InlineData(ControlStyles.StandardDoubleClick, true)] 524[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 525[InlineData(ControlStyles.CacheText, false)] 526[InlineData(ControlStyles.EnableNotifyMessage, false)] 527[InlineData(ControlStyles.DoubleBuffer, false)] 528[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 529[InlineData(ControlStyles.UseTextForAccessibility, true)] 530[InlineData((ControlStyles)0, true)] 531[InlineData((ControlStyles)int.MaxValue, false)] 532[InlineData((ControlStyles)(-1), false)] 533public void ContainerControl_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 806child4.SetStyle(ControlStyles.Selectable, false); 1032child4.SetStyle(ControlStyles.Selectable, false); 1398public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value); 1487public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ControlTests.cs (3)
526control.SetStyle(ControlStyles.ContainerControl, containerControl); 1218public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 1432public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ControlTests.Handlers.cs (29)
464Assert.True(control.GetStyle(ControlStyles.UserPaint)); 934control.SetStyle(ControlStyles.ResizeRedraw, true); 1439Assert.True(control.GetStyle(ControlStyles.UserPaint)); 1471control.SetStyle(ControlStyles.UserPaint, false); 1473Assert.False(control.GetStyle(ControlStyles.UserPaint)); 1697control.SetStyle(ControlStyles.UserPaint, userPaint); 2154control.SetStyle(ControlStyles.UserPaint, userPaint); 2808child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2810child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2908child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2910child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2985child1.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 3277control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 3279control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 3708control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 3710control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 3777control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 3861control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 3987control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4033control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4118control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4633control.SetStyle(ControlStyles.UserPaint, userPaint); 4634control.SetStyle(ControlStyles.Opaque, opaque); 4684control.SetStyle(ControlStyles.UserPaint, userPaint); 4685control.SetStyle(ControlStyles.Opaque, opaque); 4884control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 5217control.SetStyle(ControlStyles.ResizeRedraw, true); 5627control.SetStyle(ControlStyles.UserPaint, userPaint); 5673control.SetStyle(ControlStyles.UserPaint, userPaint);
System\Windows\Forms\ControlTests.Methods.cs (114)
419Assert.True(control.GetStyle(ControlStyles.UserPaint)); 440control.SetStyle(ControlStyles.UserPaint, false); 441Assert.False(control.GetStyle(ControlStyles.UserPaint)); 625control.SetStyle(ControlStyles.UserPaint, resizeRedraw); 2163grandparent.SetStyle(ControlStyles.ContainerControl, false); 2185grandparent.SetStyle(ControlStyles.ContainerControl, true); 2201public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value); 2696control.SetStyle(ControlStyles.FixedWidth, true); 2746control.SetStyle(ControlStyles.FixedHeight, true); 2796control.SetStyle(ControlStyles.FixedWidth, true); 2797control.SetStyle(ControlStyles.FixedHeight, true); 2812control.SetStyle(ControlStyles.FixedWidth, true); 2813control.SetStyle(ControlStyles.FixedHeight, true); 2824[InlineData(ControlStyles.ContainerControl, false)] 2825[InlineData(ControlStyles.UserPaint, true)] 2826[InlineData(ControlStyles.Opaque, false)] 2827[InlineData(ControlStyles.ResizeRedraw, false)] 2828[InlineData(ControlStyles.FixedWidth, false)] 2829[InlineData(ControlStyles.FixedHeight, false)] 2830[InlineData(ControlStyles.StandardClick, true)] 2831[InlineData(ControlStyles.Selectable, true)] 2832[InlineData(ControlStyles.UserMouse, false)] 2833[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 2834[InlineData(ControlStyles.StandardDoubleClick, true)] 2835[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 2836[InlineData(ControlStyles.CacheText, false)] 2837[InlineData(ControlStyles.EnableNotifyMessage, false)] 2838[InlineData(ControlStyles.DoubleBuffer, false)] 2839[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 2840[InlineData(ControlStyles.UseTextForAccessibility, true)] 2841[InlineData((ControlStyles)0, true)] 2842[InlineData((ControlStyles)int.MaxValue, false)] 2843[InlineData((ControlStyles)(-1), false)] 2844public void Control_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2975control.SetStyle(ControlStyles.Opaque, opaque); 2996control.SetStyle(ControlStyles.Opaque, opaque); 3036control.SetStyle(ControlStyles.Opaque, opaque); 3087control.SetStyle(ControlStyles.Opaque, opaque); 3111control.SetStyle(ControlStyles.Opaque, opaque); 3154control.SetStyle(ControlStyles.Opaque, opaque); 3215control.SetStyle(ControlStyles.Opaque, opaque); 3249control.SetStyle(ControlStyles.Opaque, opaque); 3289control.SetStyle(ControlStyles.Opaque, opaque); 3353control.SetStyle(ControlStyles.Opaque, opaque); 3390control.SetStyle(ControlStyles.Opaque, opaque); 3430control.SetStyle(ControlStyles.Opaque, opaque); 3492control.SetStyle(ControlStyles.Opaque, opaque); 3527control.SetStyle(ControlStyles.Opaque, opaque); 3567control.SetStyle(ControlStyles.Opaque, opaque); 3632control.SetStyle(ControlStyles.Opaque, opaque); 3670control.SetStyle(ControlStyles.Opaque, opaque); 3710control.SetStyle(ControlStyles.Opaque, opaque); 4282otherControl.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 4566child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 4568child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 4666child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 4668child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 7784control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 7910control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 8641control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 8767control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 9473control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 9605control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 9854control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 9952yield return new object[] { ControlStyles.UserPaint, true, true }; 9953yield return new object[] { ControlStyles.UserPaint, false, false }; 9954yield return new object[] { (ControlStyles)0, true, true }; 9955yield return new object[] { (ControlStyles)0, false, true }; 9960public void Control_SetStyle_Invoke_GetStyleReturnsExpected(ControlStyles flag, bool value, bool expected) 9974public void Control_SetStyle_InvokeWithHandle_GetStyleReturnsExpected(ControlStyles flag, bool value, bool expected) 10147public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value); 11345control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 11448control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 11843control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 11946control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 12820control.SetStyle(ControlStyles.UserPaint, userPaint); 12821control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 12822control.SetStyle(ControlStyles.Opaque, opaque); 12856control.SetStyle(ControlStyles.UserPaint, userPaint); 12857control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 12858control.SetStyle(ControlStyles.Opaque, opaque); 12901control.SetStyle(ControlStyles.UserPaint, userPaint); 12902control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 12903control.SetStyle(ControlStyles.Opaque, opaque); 12944control.SetStyle(ControlStyles.UserPaint, userPaint); 12945control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 12946control.SetStyle(ControlStyles.Opaque, opaque); 13144control.SetStyle(ControlStyles.UserPaint, userPaint); 13145control.SetStyle(ControlStyles.Opaque, opaque); 13167control.SetStyle(ControlStyles.UserPaint, true); 13168control.SetStyle(ControlStyles.Opaque, false); 13199control.SetStyle(ControlStyles.UserPaint, userPaint); 13200control.SetStyle(ControlStyles.Opaque, opaque); 13239control.SetStyle(ControlStyles.UserPaint, userPaint); 13240control.SetStyle(ControlStyles.Opaque, opaque); 13269control.SetStyle(ControlStyles.UserPaint, true); 13270control.SetStyle(ControlStyles.Opaque, false); 13309control.SetStyle(ControlStyles.UserPaint, userPaint); 13310control.SetStyle(ControlStyles.Opaque, opaque); 13440control.SetStyle(ControlStyles.UserMouse, userMouse); 13475control.SetStyle(ControlStyles.UserMouse, userMouse); 13476control.SetStyle(ControlStyles.Selectable, false); 13542control.SetStyle(ControlStyles.UserMouse, userMouse); 13585control.SetStyle(ControlStyles.UserMouse, userMouse); 13586control.SetStyle(ControlStyles.Selectable, false); 13775control.SetStyle(ControlStyles.UserMouse, userMouse); 13810control.SetStyle(ControlStyles.UserMouse, userMouse); 13811control.SetStyle(ControlStyles.Selectable, false); 13873control.SetStyle(ControlStyles.UserMouse, userMouse); 13916control.SetStyle(ControlStyles.UserMouse, userMouse); 13917control.SetStyle(ControlStyles.Selectable, false); 14102parent.SetStyle(ControlStyles.ContainerControl, containerControl); 14149SetStyle(ControlStyles.ContainerControl, true); 14158public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ControlTests.Properties.cs (42)
1275control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 2808control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 2911control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 3434control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 4433control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 4446Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4452Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4458Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4477Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4486Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4495Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4532control.SetStyle(ControlStyles.UserPaint, userPaint); 4540Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 4946control.SetStyle(ControlStyles.UserPaint, userPaint); 4948Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 4992control.SetStyle(ControlStyles.UserPaint, userPaint); 4994Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 6097control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 6212control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 6848control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 6941control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 7062control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 7064control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 7331control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 7424control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 7547control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 7549control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 9500control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 9544control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 10029control.SetStyle(ControlStyles.ResizeRedraw, value); 10042Assert.Equal(value, control.GetStyle(ControlStyles.ResizeRedraw)); 10047Assert.Equal(value, control.GetStyle(ControlStyles.ResizeRedraw)); 10052Assert.Equal(!value, control.GetStyle(ControlStyles.ResizeRedraw)); 11501control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 11621control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 12282control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 12373control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 12494control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 12496control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 12776control.SetStyle(ControlStyles.UserPaint, userPaint); 13516control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 13631control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (24)
1100[InlineData(ControlStyles.ContainerControl, false)] 1101[InlineData(ControlStyles.UserPaint, false)] 1102[InlineData(ControlStyles.Opaque, false)] 1103[InlineData(ControlStyles.ResizeRedraw, false)] 1104[InlineData(ControlStyles.FixedWidth, false)] 1105[InlineData(ControlStyles.FixedHeight, true)] 1106[InlineData(ControlStyles.StandardClick, false)] 1107[InlineData(ControlStyles.Selectable, true)] 1108[InlineData(ControlStyles.UserMouse, false)] 1109[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1110[InlineData(ControlStyles.StandardDoubleClick, false)] 1111[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1112[InlineData(ControlStyles.CacheText, false)] 1113[InlineData(ControlStyles.EnableNotifyMessage, false)] 1114[InlineData(ControlStyles.DoubleBuffer, false)] 1115[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1116[InlineData(ControlStyles.UseTextForAccessibility, false)] 1117[InlineData((ControlStyles)0, true)] 1118[InlineData((ControlStyles)int.MaxValue, false)] 1119[InlineData((ControlStyles)(-1), false)] 1120public void DataGridViewTextBoxEditingDataGridViewTextBoxEditingControl_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1277control.SetStyle(ControlStyles.UserPaint, userPaint); 2168public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2182public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\DateTimePickerTests.cs (22)
863[InlineData(ControlStyles.ContainerControl, false)] 864[InlineData(ControlStyles.UserPaint, false)] 865[InlineData(ControlStyles.Opaque, false)] 866[InlineData(ControlStyles.ResizeRedraw, false)] 867[InlineData(ControlStyles.FixedWidth, false)] 868[InlineData(ControlStyles.FixedHeight, true)] 869[InlineData(ControlStyles.StandardClick, false)] 870[InlineData(ControlStyles.Selectable, true)] 871[InlineData(ControlStyles.UserMouse, false)] 872[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 873[InlineData(ControlStyles.StandardDoubleClick, true)] 874[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 875[InlineData(ControlStyles.CacheText, false)] 876[InlineData(ControlStyles.EnableNotifyMessage, false)] 877[InlineData(ControlStyles.DoubleBuffer, false)] 878[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 879[InlineData(ControlStyles.UseTextForAccessibility, false)] 880[InlineData((ControlStyles)0, true)] 881[InlineData((ControlStyles)int.MaxValue, false)] 882[InlineData((ControlStyles)(-1), false)] 883public void DateTimePicker_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1064public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (22)
216[InlineData(ControlStyles.ContainerControl, true)] 217[InlineData(ControlStyles.UserPaint, true)] 218[InlineData(ControlStyles.Opaque, false)] 219[InlineData(ControlStyles.ResizeRedraw, false)] 220[InlineData(ControlStyles.FixedWidth, false)] 221[InlineData(ControlStyles.FixedHeight, false)] 222[InlineData(ControlStyles.StandardClick, true)] 223[InlineData(ControlStyles.Selectable, true)] 224[InlineData(ControlStyles.UserMouse, false)] 225[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 226[InlineData(ControlStyles.StandardDoubleClick, true)] 227[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 228[InlineData(ControlStyles.CacheText, false)] 229[InlineData(ControlStyles.EnableNotifyMessage, false)] 230[InlineData(ControlStyles.DoubleBuffer, false)] 231[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 232[InlineData(ControlStyles.UseTextForAccessibility, true)] 233[InlineData((ControlStyles)0, true)] 234[InlineData((ControlStyles)int.MaxValue, false)] 235[InlineData((ControlStyles)(-1), false)] 236public void ComponentEditorComponentEditorForm_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 456public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (22)
678[InlineData(ControlStyles.ContainerControl, true)] 679[InlineData(ControlStyles.UserPaint, true)] 680[InlineData(ControlStyles.Opaque, false)] 681[InlineData(ControlStyles.ResizeRedraw, false)] 682[InlineData(ControlStyles.FixedWidth, false)] 683[InlineData(ControlStyles.FixedHeight, false)] 684[InlineData(ControlStyles.StandardClick, true)] 685[InlineData(ControlStyles.Selectable, false)] 686[InlineData(ControlStyles.UserMouse, false)] 687[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 688[InlineData(ControlStyles.StandardDoubleClick, true)] 689[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 690[InlineData(ControlStyles.CacheText, false)] 691[InlineData(ControlStyles.EnableNotifyMessage, false)] 692[InlineData(ControlStyles.DoubleBuffer, false)] 693[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 694[InlineData(ControlStyles.UseTextForAccessibility, true)] 695[InlineData((ControlStyles)0, true)] 696[InlineData((ControlStyles)int.MaxValue, false)] 697[InlineData((ControlStyles)(-1), false)] 698public void ComponentEditorPage_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 987public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\DomainUpDownTests.cs (22)
1066[InlineData(ControlStyles.ContainerControl, true)] 1067[InlineData(ControlStyles.UserPaint, true)] 1068[InlineData(ControlStyles.Opaque, true)] 1069[InlineData(ControlStyles.ResizeRedraw, true)] 1070[InlineData(ControlStyles.FixedWidth, false)] 1071[InlineData(ControlStyles.FixedHeight, true)] 1072[InlineData(ControlStyles.StandardClick, false)] 1073[InlineData(ControlStyles.Selectable, true)] 1074[InlineData(ControlStyles.UserMouse, false)] 1075[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1076[InlineData(ControlStyles.StandardDoubleClick, true)] 1077[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 1078[InlineData(ControlStyles.CacheText, false)] 1079[InlineData(ControlStyles.EnableNotifyMessage, false)] 1080[InlineData(ControlStyles.DoubleBuffer, false)] 1081[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1082[InlineData(ControlStyles.UseTextForAccessibility, false)] 1083[InlineData((ControlStyles)0, true)] 1084[InlineData((ControlStyles)int.MaxValue, false)] 1085[InlineData((ControlStyles)(-1), false)] 1086public void DomainUpDown_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1550public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\FlowLayoutPanelTests.cs (22)
280[InlineData(ControlStyles.ContainerControl, true)] 281[InlineData(ControlStyles.UserPaint, true)] 282[InlineData(ControlStyles.Opaque, false)] 283[InlineData(ControlStyles.ResizeRedraw, false)] 284[InlineData(ControlStyles.FixedWidth, false)] 285[InlineData(ControlStyles.FixedHeight, false)] 286[InlineData(ControlStyles.StandardClick, true)] 287[InlineData(ControlStyles.Selectable, false)] 288[InlineData(ControlStyles.UserMouse, false)] 289[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 290[InlineData(ControlStyles.StandardDoubleClick, true)] 291[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 292[InlineData(ControlStyles.CacheText, false)] 293[InlineData(ControlStyles.EnableNotifyMessage, false)] 294[InlineData(ControlStyles.DoubleBuffer, false)] 295[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 296[InlineData(ControlStyles.UseTextForAccessibility, true)] 297[InlineData((ControlStyles)0, true)] 298[InlineData((ControlStyles)int.MaxValue, false)] 299[InlineData((ControlStyles)(-1), false)] 300public void FlowLayoutPanel_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 502public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\FormTests.cs (22)
2431[InlineData(ControlStyles.ContainerControl, true)] 2432[InlineData(ControlStyles.UserPaint, true)] 2433[InlineData(ControlStyles.Opaque, false)] 2434[InlineData(ControlStyles.ResizeRedraw, false)] 2435[InlineData(ControlStyles.FixedWidth, false)] 2436[InlineData(ControlStyles.FixedHeight, false)] 2437[InlineData(ControlStyles.StandardClick, true)] 2438[InlineData(ControlStyles.Selectable, true)] 2439[InlineData(ControlStyles.UserMouse, false)] 2440[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 2441[InlineData(ControlStyles.StandardDoubleClick, true)] 2442[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 2443[InlineData(ControlStyles.CacheText, false)] 2444[InlineData(ControlStyles.EnableNotifyMessage, false)] 2445[InlineData(ControlStyles.DoubleBuffer, false)] 2446[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 2447[InlineData(ControlStyles.UseTextForAccessibility, true)] 2448[InlineData((ControlStyles)0, true)] 2449[InlineData((ControlStyles)int.MaxValue, false)] 2450[InlineData((ControlStyles)(-1), false)] 2451public void Form_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2766public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\GroupBoxTests.cs (90)
627control.SetStyle(ControlStyles.ContainerControl, false); 631Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 632Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 633Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 634Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 635Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 641Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 642Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 643Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 644Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 645Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 672control.SetStyle(ControlStyles.ContainerControl, false); 676Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 677Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 678Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 679Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 680Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 685Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 686Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 687Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 688Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 689Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 714control.SetStyle(ControlStyles.ContainerControl, false); 718Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 719Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 720Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 721Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 722Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 731Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 732Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 733Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 734Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 735Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 768control.SetStyle(ControlStyles.ContainerControl, false); 772Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 773Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 774Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 775Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 776Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 785Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 786Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 787Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 788Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 789Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 831control.SetStyle(ControlStyles.ContainerControl, false); 835Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 836Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 837Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 838Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 839Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 848Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 849Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 850Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 851Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 852Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 895control.SetStyle(ControlStyles.ContainerControl, false); 899Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 900Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 901Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 902Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 903Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 912Assert.Equal(containerControl, control.GetStyle(ControlStyles.ContainerControl)); 913Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 914Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 915Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.ResizeRedraw)); 916Assert.Equal(userMouse, control.GetStyle(ControlStyles.UserMouse)); 1415[InlineData(ControlStyles.ContainerControl, true)] 1416[InlineData(ControlStyles.UserPaint, true)] 1417[InlineData(ControlStyles.Opaque, false)] 1418[InlineData(ControlStyles.ResizeRedraw, true)] 1419[InlineData(ControlStyles.FixedWidth, false)] 1420[InlineData(ControlStyles.FixedHeight, false)] 1421[InlineData(ControlStyles.StandardClick, true)] 1422[InlineData(ControlStyles.Selectable, false)] 1423[InlineData(ControlStyles.UserMouse, false)] 1424[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 1425[InlineData(ControlStyles.StandardDoubleClick, true)] 1426[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1427[InlineData(ControlStyles.CacheText, false)] 1428[InlineData(ControlStyles.EnableNotifyMessage, false)] 1429[InlineData(ControlStyles.DoubleBuffer, false)] 1430[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1431[InlineData(ControlStyles.UseTextForAccessibility, true)] 1432[InlineData((ControlStyles)0, true)] 1433[InlineData((ControlStyles)int.MaxValue, false)] 1434[InlineData((ControlStyles)(-1), false)] 1435public void GroupBox_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1543control.SetStyle(ControlStyles.UserPaint, userPaint); 2355public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2389public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\HScrollBarTests.cs (22)
210[InlineData(ControlStyles.ContainerControl, false)] 211[InlineData(ControlStyles.UserPaint, false)] 212[InlineData(ControlStyles.Opaque, false)] 213[InlineData(ControlStyles.ResizeRedraw, false)] 214[InlineData(ControlStyles.FixedWidth, false)] 215[InlineData(ControlStyles.FixedHeight, false)] 216[InlineData(ControlStyles.StandardClick, false)] 217[InlineData(ControlStyles.Selectable, true)] 218[InlineData(ControlStyles.UserMouse, false)] 219[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 220[InlineData(ControlStyles.StandardDoubleClick, true)] 221[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 222[InlineData(ControlStyles.CacheText, false)] 223[InlineData(ControlStyles.EnableNotifyMessage, false)] 224[InlineData(ControlStyles.DoubleBuffer, false)] 225[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 226[InlineData(ControlStyles.UseTextForAccessibility, false)] 227[InlineData((ControlStyles)0, true)] 228[InlineData((ControlStyles)int.MaxValue, false)] 229[InlineData((ControlStyles)(-1), false)] 230public void HScrollBar_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 302public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\LabelTests.cs (22)
147[InlineData(ControlStyles.ContainerControl, false)] 148[InlineData(ControlStyles.UserPaint, true)] 149[InlineData(ControlStyles.Opaque, false)] 150[InlineData(ControlStyles.ResizeRedraw, true)] 151[InlineData(ControlStyles.FixedWidth, false)] 152[InlineData(ControlStyles.FixedHeight, false)] 153[InlineData(ControlStyles.StandardClick, true)] 154[InlineData(ControlStyles.Selectable, false)] 155[InlineData(ControlStyles.UserMouse, false)] 156[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 157[InlineData(ControlStyles.StandardDoubleClick, true)] 158[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 159[InlineData(ControlStyles.CacheText, false)] 160[InlineData(ControlStyles.EnableNotifyMessage, false)] 161[InlineData(ControlStyles.DoubleBuffer, false)] 162[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 163[InlineData(ControlStyles.UseTextForAccessibility, true)] 164[InlineData((ControlStyles)0, true)] 165[InlineData((ControlStyles)int.MaxValue, false)] 166[InlineData((ControlStyles)(-1), false)] 167public void Label_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 945public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ListBoxTests.cs (22)
4899[InlineData(ControlStyles.ContainerControl, false)] 4900[InlineData(ControlStyles.UserPaint, false)] 4901[InlineData(ControlStyles.Opaque, false)] 4902[InlineData(ControlStyles.ResizeRedraw, false)] 4903[InlineData(ControlStyles.FixedWidth, false)] 4904[InlineData(ControlStyles.FixedHeight, false)] 4905[InlineData(ControlStyles.StandardClick, false)] 4906[InlineData(ControlStyles.Selectable, true)] 4907[InlineData(ControlStyles.UserMouse, false)] 4908[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 4909[InlineData(ControlStyles.StandardDoubleClick, true)] 4910[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 4911[InlineData(ControlStyles.CacheText, false)] 4912[InlineData(ControlStyles.EnableNotifyMessage, false)] 4913[InlineData(ControlStyles.DoubleBuffer, false)] 4914[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 4915[InlineData(ControlStyles.UseTextForAccessibility, false)] 4916[InlineData((ControlStyles)0, true)] 4917[InlineData((ControlStyles)int.MaxValue, false)] 4918[InlineData((ControlStyles)(-1), false)] 4919public void ListBox_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 6468public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ListControlTests.cs (22)
2564[InlineData(ControlStyles.ContainerControl, false)] 2565[InlineData(ControlStyles.UserPaint, true)] 2566[InlineData(ControlStyles.Opaque, false)] 2567[InlineData(ControlStyles.ResizeRedraw, false)] 2568[InlineData(ControlStyles.FixedWidth, false)] 2569[InlineData(ControlStyles.FixedHeight, false)] 2570[InlineData(ControlStyles.StandardClick, true)] 2571[InlineData(ControlStyles.Selectable, true)] 2572[InlineData(ControlStyles.UserMouse, false)] 2573[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 2574[InlineData(ControlStyles.StandardDoubleClick, true)] 2575[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 2576[InlineData(ControlStyles.CacheText, false)] 2577[InlineData(ControlStyles.EnableNotifyMessage, false)] 2578[InlineData(ControlStyles.DoubleBuffer, false)] 2579[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 2580[InlineData(ControlStyles.UseTextForAccessibility, true)] 2581[InlineData((ControlStyles)0, true)] 2582[InlineData((ControlStyles)int.MaxValue, false)] 2583[InlineData((ControlStyles)(-1), false)] 2584public void ListControl_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2968public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ListViewTests.cs (30)
1148control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 1161Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1167Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1173Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1193Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1202Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1211Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 4256[InlineData(ControlStyles.ContainerControl, false)] 4257[InlineData(ControlStyles.UserPaint, false)] 4258[InlineData(ControlStyles.Opaque, false)] 4259[InlineData(ControlStyles.ResizeRedraw, false)] 4260[InlineData(ControlStyles.FixedWidth, false)] 4261[InlineData(ControlStyles.FixedHeight, false)] 4262[InlineData(ControlStyles.StandardClick, false)] 4263[InlineData(ControlStyles.Selectable, true)] 4264[InlineData(ControlStyles.UserMouse, false)] 4265[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 4266[InlineData(ControlStyles.StandardDoubleClick, true)] 4267[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 4268[InlineData(ControlStyles.CacheText, false)] 4269[InlineData(ControlStyles.EnableNotifyMessage, false)] 4270[InlineData(ControlStyles.DoubleBuffer, false)] 4271[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 4272[InlineData(ControlStyles.UseTextForAccessibility, false)] 4273[InlineData((ControlStyles)0, true)] 4274[InlineData((ControlStyles)int.MaxValue, false)] 4275[InlineData((ControlStyles)(-1), false)] 4276public void ListView_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 6155public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 6163public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\MdiControlStripTests.cs (2)
442public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 452public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\MenuStripTests.cs (23)
513[InlineData(ControlStyles.ContainerControl, true)] 514[InlineData(ControlStyles.UserPaint, true)] 515[InlineData(ControlStyles.Opaque, false)] 516[InlineData(ControlStyles.ResizeRedraw, false)] 517[InlineData(ControlStyles.FixedWidth, false)] 518[InlineData(ControlStyles.FixedHeight, false)] 519[InlineData(ControlStyles.StandardClick, true)] 520[InlineData(ControlStyles.Selectable, false)] 521[InlineData(ControlStyles.UserMouse, false)] 522[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 523[InlineData(ControlStyles.StandardDoubleClick, true)] 524[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 525[InlineData(ControlStyles.CacheText, false)] 526[InlineData(ControlStyles.EnableNotifyMessage, false)] 527[InlineData(ControlStyles.DoubleBuffer, false)] 528[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 529[InlineData(ControlStyles.UseTextForAccessibility, true)] 530[InlineData((ControlStyles)0, true)] 531[InlineData((ControlStyles)int.MaxValue, false)] 532[InlineData((ControlStyles)(-1), false)] 533public void MenuStrip_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 938public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 948public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\MonthCalendarTests.cs (29)
753Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 759Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 765Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 784Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 793Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 802Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 3325[InlineData(ControlStyles.ContainerControl, false)] 3326[InlineData(ControlStyles.UserPaint, false)] 3327[InlineData(ControlStyles.Opaque, false)] 3328[InlineData(ControlStyles.ResizeRedraw, false)] 3329[InlineData(ControlStyles.FixedWidth, false)] 3330[InlineData(ControlStyles.FixedHeight, false)] 3331[InlineData(ControlStyles.StandardClick, false)] 3332[InlineData(ControlStyles.Selectable, true)] 3333[InlineData(ControlStyles.UserMouse, false)] 3334[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 3335[InlineData(ControlStyles.StandardDoubleClick, true)] 3336[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 3337[InlineData(ControlStyles.CacheText, false)] 3338[InlineData(ControlStyles.EnableNotifyMessage, false)] 3339[InlineData(ControlStyles.DoubleBuffer, false)] 3340[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 3341[InlineData(ControlStyles.UseTextForAccessibility, true)] 3342[InlineData((ControlStyles)0, true)] 3343[InlineData((ControlStyles)int.MaxValue, false)] 3344[InlineData((ControlStyles)(-1), false)] 3345public void MonthCalendar_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 4788public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 4822public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\PanelTests.cs (25)
854[InlineData(ControlStyles.ContainerControl, true)] 855[InlineData(ControlStyles.UserPaint, true)] 856[InlineData(ControlStyles.Opaque, false)] 857[InlineData(ControlStyles.ResizeRedraw, false)] 858[InlineData(ControlStyles.FixedWidth, false)] 859[InlineData(ControlStyles.FixedHeight, false)] 860[InlineData(ControlStyles.StandardClick, true)] 861[InlineData(ControlStyles.Selectable, false)] 862[InlineData(ControlStyles.UserMouse, false)] 863[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 864[InlineData(ControlStyles.StandardDoubleClick, true)] 865[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 866[InlineData(ControlStyles.CacheText, false)] 867[InlineData(ControlStyles.EnableNotifyMessage, false)] 868[InlineData(ControlStyles.DoubleBuffer, false)] 869[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 870[InlineData(ControlStyles.UseTextForAccessibility, true)] 871[InlineData((ControlStyles)0, true)] 872[InlineData((ControlStyles)int.MaxValue, false)] 873[InlineData((ControlStyles)(-1), false)] 874public void Panel_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1011control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 1092control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 1224public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 1236public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\PictureBoxTests.cs (33)
1298Assert.Equal(expectedAutoSize, pictureBox.GetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth)); 1304Assert.Equal(expectedAutoSize, pictureBox.GetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth)); 1317Assert.Equal(expectedAutoSize, pictureBox.GetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth)); 1323Assert.Equal(expectedAutoSize, pictureBox.GetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth)); 1870[InlineData(ControlStyles.ContainerControl, false)] 1871[InlineData(ControlStyles.UserPaint, true)] 1872[InlineData(ControlStyles.Opaque, false)] 1873[InlineData(ControlStyles.ResizeRedraw, false)] 1874[InlineData(ControlStyles.FixedWidth, false)] 1875[InlineData(ControlStyles.FixedHeight, false)] 1876[InlineData(ControlStyles.StandardClick, true)] 1877[InlineData(ControlStyles.Selectable, false)] 1878[InlineData(ControlStyles.UserMouse, false)] 1879[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 1880[InlineData(ControlStyles.StandardDoubleClick, true)] 1881[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1882[InlineData(ControlStyles.CacheText, false)] 1883[InlineData(ControlStyles.EnableNotifyMessage, false)] 1884[InlineData(ControlStyles.DoubleBuffer, false)] 1885[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 1886[InlineData(ControlStyles.UseTextForAccessibility, true)] 1887[InlineData((ControlStyles)0, true)] 1888[InlineData((ControlStyles)int.MaxValue, false)] 1889[InlineData((ControlStyles)(-1), false)] 1890public void PictureBox_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2220Assert.True(control.GetStyle(ControlStyles.UserPaint)); 2684control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 2896public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2930public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ProgressBarTests.cs (31)
405control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 418Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 424Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 430Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 449Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 458Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 467Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1799[InlineData(ControlStyles.ContainerControl, false)] 1800[InlineData(ControlStyles.UserPaint, false)] 1801[InlineData(ControlStyles.Opaque, false)] 1802[InlineData(ControlStyles.ResizeRedraw, false)] 1803[InlineData(ControlStyles.FixedWidth, false)] 1804[InlineData(ControlStyles.FixedHeight, false)] 1805[InlineData(ControlStyles.StandardClick, true)] 1806[InlineData(ControlStyles.Selectable, false)] 1807[InlineData(ControlStyles.UserMouse, false)] 1808[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1809[InlineData(ControlStyles.StandardDoubleClick, true)] 1810[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1811[InlineData(ControlStyles.CacheText, false)] 1812[InlineData(ControlStyles.EnableNotifyMessage, false)] 1813[InlineData(ControlStyles.DoubleBuffer, false)] 1814[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1815[InlineData(ControlStyles.UseTextForAccessibility, false)] 1816[InlineData((ControlStyles)0, true)] 1817[InlineData((ControlStyles)int.MaxValue, false)] 1818[InlineData((ControlStyles)(-1), false)] 1819public void ProgressBar_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2143Assert.False(control.GetStyle(ControlStyles.UserPaint)); 2646public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2676public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\PropertyGridTests.cs (22)
3475[InlineData(ControlStyles.ContainerControl, true)] 3476[InlineData(ControlStyles.UserPaint, true)] 3477[InlineData(ControlStyles.Opaque, false)] 3478[InlineData(ControlStyles.ResizeRedraw, false)] 3479[InlineData(ControlStyles.FixedWidth, false)] 3480[InlineData(ControlStyles.FixedHeight, false)] 3481[InlineData(ControlStyles.StandardClick, true)] 3482[InlineData(ControlStyles.Selectable, true)] 3483[InlineData(ControlStyles.UserMouse, false)] 3484[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 3485[InlineData(ControlStyles.StandardDoubleClick, true)] 3486[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 3487[InlineData(ControlStyles.CacheText, false)] 3488[InlineData(ControlStyles.EnableNotifyMessage, false)] 3489[InlineData(ControlStyles.DoubleBuffer, false)] 3490[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 3491[InlineData(ControlStyles.UseTextForAccessibility, true)] 3492[InlineData((ControlStyles)0, true)] 3493[InlineData((ControlStyles)int.MaxValue, false)] 3494[InlineData((ControlStyles)(-1), false)] 3495public void PropertyGrid_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 4227public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\RadioButtonTests.cs (24)
151control.SetStyle(ControlStyles.UserPaint, userPaint); 624[InlineData(ControlStyles.ContainerControl, false)] 625[InlineData(ControlStyles.UserPaint, true)] 626[InlineData(ControlStyles.Opaque, true)] 627[InlineData(ControlStyles.ResizeRedraw, true)] 628[InlineData(ControlStyles.FixedWidth, false)] 629[InlineData(ControlStyles.FixedHeight, false)] 630[InlineData(ControlStyles.StandardClick, false)] 631[InlineData(ControlStyles.Selectable, true)] 632[InlineData(ControlStyles.UserMouse, true)] 633[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 634[InlineData(ControlStyles.StandardDoubleClick, true)] 635[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 636[InlineData(ControlStyles.CacheText, true)] 637[InlineData(ControlStyles.EnableNotifyMessage, false)] 638[InlineData(ControlStyles.DoubleBuffer, false)] 639[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 640[InlineData(ControlStyles.UseTextForAccessibility, true)] 641[InlineData((ControlStyles)0, true)] 642[InlineData((ControlStyles)int.MaxValue, false)] 643[InlineData((ControlStyles)(-1), false)] 644public void RadioButton_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1595public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 1621public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\RichTextBoxTests.cs (52)
390Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 399Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 408Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 434Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 443Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 452Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 478Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 488Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 498Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 1429control.SetStyle(ControlStyles.UserPaint, userPaint); 1431Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1466control.SetStyle(ControlStyles.UserPaint, userPaint); 1468Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1513control.SetStyle(ControlStyles.UserPaint, userPaint); 1515Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1552control.SetStyle(ControlStyles.UserPaint, userPaint); 1554Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 2070Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2078Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2086Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2108Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 2116Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 2124Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 2147Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2157Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2167Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2211Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 2221Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 2231Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 8972[InlineData(ControlStyles.ContainerControl, false)] 8973[InlineData(ControlStyles.UserPaint, false)] 8974[InlineData(ControlStyles.Opaque, false)] 8975[InlineData(ControlStyles.ResizeRedraw, false)] 8976[InlineData(ControlStyles.FixedWidth, false)] 8977[InlineData(ControlStyles.FixedHeight, false)] 8978[InlineData(ControlStyles.StandardClick, false)] 8979[InlineData(ControlStyles.Selectable, true)] 8980[InlineData(ControlStyles.UserMouse, false)] 8981[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 8982[InlineData(ControlStyles.StandardDoubleClick, false)] 8983[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 8984[InlineData(ControlStyles.CacheText, false)] 8985[InlineData(ControlStyles.EnableNotifyMessage, false)] 8986[InlineData(ControlStyles.DoubleBuffer, false)] 8987[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 8988[InlineData(ControlStyles.UseTextForAccessibility, false)] 8989[InlineData((ControlStyles)0, true)] 8990[InlineData((ControlStyles)int.MaxValue, false)] 8991[InlineData((ControlStyles)(-1), false)] 8992public void RichTextBox_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 10980public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 11002public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ScrollableControlTests.cs (28)
1351[InlineData(ControlStyles.ContainerControl, true)] 1352[InlineData(ControlStyles.UserPaint, true)] 1353[InlineData(ControlStyles.Opaque, false)] 1354[InlineData(ControlStyles.ResizeRedraw, false)] 1355[InlineData(ControlStyles.FixedWidth, false)] 1356[InlineData(ControlStyles.FixedHeight, false)] 1357[InlineData(ControlStyles.StandardClick, true)] 1358[InlineData(ControlStyles.Selectable, true)] 1359[InlineData(ControlStyles.UserMouse, false)] 1360[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1361[InlineData(ControlStyles.StandardDoubleClick, true)] 1362[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 1363[InlineData(ControlStyles.CacheText, false)] 1364[InlineData(ControlStyles.EnableNotifyMessage, false)] 1365[InlineData(ControlStyles.DoubleBuffer, false)] 1366[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1367[InlineData(ControlStyles.UseTextForAccessibility, true)] 1368[InlineData((ControlStyles)0, true)] 1369[InlineData((ControlStyles)int.MaxValue, false)] 1370[InlineData((ControlStyles)(-1), false)] 1371public void ScrollableControl_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1471control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 1541control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 1690control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 1740control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 1834control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 2644public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2664public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ScrollBarTests.cs (26)
1863[InlineData(ControlStyles.ContainerControl, false)] 1864[InlineData(ControlStyles.UserPaint, false)] 1865[InlineData(ControlStyles.Opaque, false)] 1866[InlineData(ControlStyles.ResizeRedraw, false)] 1867[InlineData(ControlStyles.FixedWidth, false)] 1868[InlineData(ControlStyles.FixedHeight, false)] 1869[InlineData(ControlStyles.StandardClick, false)] 1870[InlineData(ControlStyles.Selectable, true)] 1871[InlineData(ControlStyles.UserMouse, false)] 1872[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1873[InlineData(ControlStyles.StandardDoubleClick, true)] 1874[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1875[InlineData(ControlStyles.CacheText, false)] 1876[InlineData(ControlStyles.EnableNotifyMessage, false)] 1877[InlineData(ControlStyles.DoubleBuffer, false)] 1878[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1879[InlineData(ControlStyles.UseTextForAccessibility, false)] 1880[InlineData((ControlStyles)0, true)] 1881[InlineData((ControlStyles)int.MaxValue, false)] 1882[InlineData((ControlStyles)(-1), false)] 1883public void ScrollBar_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2691control.SetStyle(ControlStyles.UserPaint, userPaint); 2692control.SetStyle(ControlStyles.AllPaintingInWmPaint, allPaintingInWmPaint); 2693control.SetStyle(ControlStyles.Opaque, opaque); 3218public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 3248public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\SplitterTests.cs (22)
1642[InlineData(ControlStyles.ContainerControl, false)] 1643[InlineData(ControlStyles.UserPaint, true)] 1644[InlineData(ControlStyles.Opaque, false)] 1645[InlineData(ControlStyles.ResizeRedraw, false)] 1646[InlineData(ControlStyles.FixedWidth, false)] 1647[InlineData(ControlStyles.FixedHeight, false)] 1648[InlineData(ControlStyles.StandardClick, true)] 1649[InlineData(ControlStyles.Selectable, false)] 1650[InlineData(ControlStyles.UserMouse, false)] 1651[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1652[InlineData(ControlStyles.StandardDoubleClick, true)] 1653[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1654[InlineData(ControlStyles.CacheText, false)] 1655[InlineData(ControlStyles.EnableNotifyMessage, false)] 1656[InlineData(ControlStyles.DoubleBuffer, false)] 1657[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1658[InlineData(ControlStyles.UseTextForAccessibility, true)] 1659[InlineData((ControlStyles)0, true)] 1660[InlineData((ControlStyles)int.MaxValue, false)] 1661[InlineData((ControlStyles)(-1), false)] 1662public void Splitter_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2361public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\StatusStripTests.cs (22)
1098[InlineData(ControlStyles.ContainerControl, true)] 1099[InlineData(ControlStyles.UserPaint, true)] 1100[InlineData(ControlStyles.Opaque, false)] 1101[InlineData(ControlStyles.ResizeRedraw, true)] 1102[InlineData(ControlStyles.FixedWidth, false)] 1103[InlineData(ControlStyles.FixedHeight, false)] 1104[InlineData(ControlStyles.StandardClick, true)] 1105[InlineData(ControlStyles.Selectable, false)] 1106[InlineData(ControlStyles.UserMouse, false)] 1107[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 1108[InlineData(ControlStyles.StandardDoubleClick, true)] 1109[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 1110[InlineData(ControlStyles.CacheText, false)] 1111[InlineData(ControlStyles.EnableNotifyMessage, false)] 1112[InlineData(ControlStyles.DoubleBuffer, false)] 1113[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 1114[InlineData(ControlStyles.UseTextForAccessibility, true)] 1115[InlineData((ControlStyles)0, true)] 1116[InlineData((ControlStyles)int.MaxValue, false)] 1117[InlineData((ControlStyles)(-1), false)] 1118public void StatusStrip_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1358public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\TabControlTests.cs (30)
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)); 3931[InlineData(ControlStyles.ContainerControl, false)] 3932[InlineData(ControlStyles.UserPaint, false)] 3933[InlineData(ControlStyles.Opaque, false)] 3934[InlineData(ControlStyles.ResizeRedraw, false)] 3935[InlineData(ControlStyles.FixedWidth, false)] 3936[InlineData(ControlStyles.FixedHeight, false)] 3937[InlineData(ControlStyles.StandardClick, true)] 3938[InlineData(ControlStyles.Selectable, true)] 3939[InlineData(ControlStyles.UserMouse, false)] 3940[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 3941[InlineData(ControlStyles.StandardDoubleClick, true)] 3942[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 3943[InlineData(ControlStyles.CacheText, false)] 3944[InlineData(ControlStyles.EnableNotifyMessage, false)] 3945[InlineData(ControlStyles.DoubleBuffer, false)] 3946[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 3947[InlineData(ControlStyles.UseTextForAccessibility, true)] 3948[InlineData((ControlStyles)0, true)] 3949[InlineData((ControlStyles)int.MaxValue, false)] 3950[InlineData((ControlStyles)(-1), false)] 3951public void TabControl_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 5814public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 5848public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\TableLayoutPanelTests.cs (29)
227control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 239Assert.Equal(expectedResizeRedraw, control.GetStyle(ControlStyles.ResizeRedraw)); 246Assert.Equal(expectedResizeRedraw, control.GetStyle(ControlStyles.ResizeRedraw)); 256control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 275Assert.Equal(expectedResizeRedraw, control.GetStyle(ControlStyles.ResizeRedraw)); 285Assert.Equal(expectedResizeRedraw, control.GetStyle(ControlStyles.ResizeRedraw)); 1170[InlineData(ControlStyles.ContainerControl, true)] 1171[InlineData(ControlStyles.UserPaint, true)] 1172[InlineData(ControlStyles.Opaque, false)] 1173[InlineData(ControlStyles.ResizeRedraw, false)] 1174[InlineData(ControlStyles.FixedWidth, false)] 1175[InlineData(ControlStyles.FixedHeight, false)] 1176[InlineData(ControlStyles.StandardClick, true)] 1177[InlineData(ControlStyles.Selectable, false)] 1178[InlineData(ControlStyles.UserMouse, false)] 1179[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 1180[InlineData(ControlStyles.StandardDoubleClick, true)] 1181[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 1182[InlineData(ControlStyles.CacheText, false)] 1183[InlineData(ControlStyles.EnableNotifyMessage, false)] 1184[InlineData(ControlStyles.DoubleBuffer, false)] 1185[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1186[InlineData(ControlStyles.UseTextForAccessibility, true)] 1187[InlineData((ControlStyles)0, true)] 1188[InlineData((ControlStyles)int.MaxValue, false)] 1189[InlineData((ControlStyles)(-1), false)] 1190public void TableLayoutPanel_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 2243public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2261public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\TabPageTests.cs (36)
1027control.SetStyle(ControlStyles.UserPaint, userPaint); 1035Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 2057control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 2161control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 2285control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 2287control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 3612control.SetStyle(ControlStyles.UserPaint, userPaint); 3776[InlineData(ControlStyles.ContainerControl, true)] 3777[InlineData(ControlStyles.UserPaint, true)] 3778[InlineData(ControlStyles.Opaque, false)] 3779[InlineData(ControlStyles.ResizeRedraw, false)] 3780[InlineData(ControlStyles.FixedWidth, false)] 3781[InlineData(ControlStyles.FixedHeight, false)] 3782[InlineData(ControlStyles.StandardClick, true)] 3783[InlineData(ControlStyles.Selectable, false)] 3784[InlineData(ControlStyles.UserMouse, false)] 3785[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 3786[InlineData(ControlStyles.StandardDoubleClick, true)] 3787[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 3788[InlineData(ControlStyles.CacheText, true)] 3789[InlineData(ControlStyles.EnableNotifyMessage, false)] 3790[InlineData(ControlStyles.DoubleBuffer, false)] 3791[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 3792[InlineData(ControlStyles.UseTextForAccessibility, true)] 3793[InlineData((ControlStyles)0, true)] 3794[InlineData((ControlStyles)int.MaxValue, false)] 3795[InlineData((ControlStyles)(-1), false)] 3796public void TabPage_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 3983control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4063control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4109control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4202control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4563control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 4714control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 5307public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 5313public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ToolStripContentPanelTests.cs (37)
1150control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1155Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1162Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1171Assert.True(control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1183control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1195Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1205Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1217Assert.True(control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1674[InlineData(ControlStyles.ContainerControl, true)] 1675[InlineData(ControlStyles.UserPaint, true)] 1676[InlineData(ControlStyles.Opaque, false)] 1677[InlineData(ControlStyles.ResizeRedraw, true)] 1678[InlineData(ControlStyles.FixedWidth, false)] 1679[InlineData(ControlStyles.FixedHeight, false)] 1680[InlineData(ControlStyles.StandardClick, true)] 1681[InlineData(ControlStyles.Selectable, false)] 1682[InlineData(ControlStyles.UserMouse, false)] 1683[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 1684[InlineData(ControlStyles.StandardDoubleClick, true)] 1685[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 1686[InlineData(ControlStyles.CacheText, false)] 1687[InlineData(ControlStyles.EnableNotifyMessage, false)] 1688[InlineData(ControlStyles.DoubleBuffer, false)] 1689[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1690[InlineData(ControlStyles.UseTextForAccessibility, true)] 1691[InlineData((ControlStyles)0, true)] 1692[InlineData((ControlStyles)int.MaxValue, false)] 1693[InlineData((ControlStyles)(-1), false)] 1694public void ToolStripContentPanel_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1915control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1928Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1935Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1954control.SetStyle(ControlStyles.OptimizedDoubleBuffer, doubleBuffered); 1967Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1977Assert.Equal(expectedDoubleBuffered, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 2086public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 2098public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ToolStripDropDownTests.cs (23)
3645[InlineData(ControlStyles.ContainerControl, true)] 3646[InlineData(ControlStyles.UserPaint, true)] 3647[InlineData(ControlStyles.Opaque, false)] 3648[InlineData(ControlStyles.ResizeRedraw, true)] 3649[InlineData(ControlStyles.FixedWidth, false)] 3650[InlineData(ControlStyles.FixedHeight, false)] 3651[InlineData(ControlStyles.StandardClick, true)] 3652[InlineData(ControlStyles.Selectable, false)] 3653[InlineData(ControlStyles.UserMouse, false)] 3654[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 3655[InlineData(ControlStyles.StandardDoubleClick, true)] 3656[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 3657[InlineData(ControlStyles.CacheText, false)] 3658[InlineData(ControlStyles.EnableNotifyMessage, false)] 3659[InlineData(ControlStyles.DoubleBuffer, false)] 3660[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 3661[InlineData(ControlStyles.UseTextForAccessibility, true)] 3662[InlineData((ControlStyles)0, true)] 3663[InlineData((ControlStyles)int.MaxValue, false)] 3664[InlineData((ControlStyles)(-1), false)] 3665public void ToolStripDropDown_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 5184public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 5240public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\ToolStripPanelTests.cs (22)
308[InlineData(ControlStyles.ContainerControl, true)] 309[InlineData(ControlStyles.UserPaint, true)] 310[InlineData(ControlStyles.Opaque, false)] 311[InlineData(ControlStyles.ResizeRedraw, true)] 312[InlineData(ControlStyles.FixedWidth, false)] 313[InlineData(ControlStyles.FixedHeight, false)] 314[InlineData(ControlStyles.StandardClick, true)] 315[InlineData(ControlStyles.Selectable, false)] 316[InlineData(ControlStyles.UserMouse, false)] 317[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 318[InlineData(ControlStyles.StandardDoubleClick, true)] 319[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 320[InlineData(ControlStyles.CacheText, false)] 321[InlineData(ControlStyles.EnableNotifyMessage, false)] 322[InlineData(ControlStyles.DoubleBuffer, false)] 323[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 324[InlineData(ControlStyles.UseTextForAccessibility, true)] 325[InlineData((ControlStyles)0, true)] 326[InlineData((ControlStyles)int.MaxValue, false)] 327[InlineData((ControlStyles)(-1), false)] 328public void ToolStripPanel_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 427public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ToolStripTests.cs (37)
3722Assert.Equal(value, control.GetStyle(ControlStyles.Selectable)); 3728Assert.Equal(value, control.GetStyle(ControlStyles.Selectable)); 3734Assert.Equal(!value, control.GetStyle(ControlStyles.Selectable)); 3753Assert.Equal(value, control.GetStyle(ControlStyles.Selectable)); 3762Assert.Equal(value, control.GetStyle(ControlStyles.Selectable)); 3771Assert.Equal(!value, control.GetStyle(ControlStyles.Selectable)); 4135control.SetStyle(ControlStyles.UserPaint, userPaint); 4923[InlineData(ControlStyles.ContainerControl, true)] 4924[InlineData(ControlStyles.UserPaint, true)] 4925[InlineData(ControlStyles.Opaque, false)] 4926[InlineData(ControlStyles.ResizeRedraw, false)] 4927[InlineData(ControlStyles.FixedWidth, false)] 4928[InlineData(ControlStyles.FixedHeight, false)] 4929[InlineData(ControlStyles.StandardClick, true)] 4930[InlineData(ControlStyles.Selectable, false)] 4931[InlineData(ControlStyles.UserMouse, false)] 4932[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 4933[InlineData(ControlStyles.StandardDoubleClick, true)] 4934[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 4935[InlineData(ControlStyles.CacheText, false)] 4936[InlineData(ControlStyles.EnableNotifyMessage, false)] 4937[InlineData(ControlStyles.DoubleBuffer, false)] 4938[InlineData(ControlStyles.OptimizedDoubleBuffer, true)] 4939[InlineData(ControlStyles.UseTextForAccessibility, true)] 4940[InlineData((ControlStyles)0, true)] 4941[InlineData((ControlStyles)int.MaxValue, false)] 4942[InlineData((ControlStyles)(-1), false)] 4943public void ToolStrip_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 5882control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 6031control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 6080control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 6173control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 6792control.SetStyle(ControlStyles.Selectable, !tabStop); 6804Assert.Equal(tabStop, control.GetStyle(ControlStyles.Selectable)); 6810Assert.Equal(tabStop, control.GetStyle(ControlStyles.Selectable)); 7585public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 7661public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\TreeViewTests.cs (25)
5046[InlineData(ControlStyles.ContainerControl, false)] 5047[InlineData(ControlStyles.UserPaint, false)] 5048[InlineData(ControlStyles.Opaque, false)] 5049[InlineData(ControlStyles.ResizeRedraw, false)] 5050[InlineData(ControlStyles.FixedWidth, false)] 5051[InlineData(ControlStyles.FixedHeight, false)] 5052[InlineData(ControlStyles.StandardClick, false)] 5053[InlineData(ControlStyles.Selectable, true)] 5054[InlineData(ControlStyles.UserMouse, false)] 5055[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 5056[InlineData(ControlStyles.StandardDoubleClick, true)] 5057[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 5058[InlineData(ControlStyles.CacheText, false)] 5059[InlineData(ControlStyles.EnableNotifyMessage, false)] 5060[InlineData(ControlStyles.DoubleBuffer, false)] 5061[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 5062[InlineData(ControlStyles.UseTextForAccessibility, false)] 5063[InlineData((ControlStyles)0, true)] 5064[InlineData((ControlStyles)int.MaxValue, false)] 5065[InlineData((ControlStyles)(-1), false)] 5066public void TreeView_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 5978Assert.False(control.GetStyle(ControlStyles.UserPaint)); 6034Assert.False(control.GetStyle(ControlStyles.UserPaint)); 6115Assert.False(control.GetStyle(ControlStyles.UserPaint)); 7628public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\UpDownBaseTests.cs (22)
1683[InlineData(ControlStyles.ContainerControl, true)] 1684[InlineData(ControlStyles.UserPaint, true)] 1685[InlineData(ControlStyles.Opaque, true)] 1686[InlineData(ControlStyles.ResizeRedraw, true)] 1687[InlineData(ControlStyles.FixedWidth, false)] 1688[InlineData(ControlStyles.FixedHeight, true)] 1689[InlineData(ControlStyles.StandardClick, false)] 1690[InlineData(ControlStyles.Selectable, true)] 1691[InlineData(ControlStyles.UserMouse, false)] 1692[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1693[InlineData(ControlStyles.StandardDoubleClick, true)] 1694[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 1695[InlineData(ControlStyles.CacheText, false)] 1696[InlineData(ControlStyles.EnableNotifyMessage, false)] 1697[InlineData(ControlStyles.DoubleBuffer, false)] 1698[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 1699[InlineData(ControlStyles.UseTextForAccessibility, false)] 1700[InlineData((ControlStyles)0, true)] 1701[InlineData((ControlStyles)int.MaxValue, false)] 1702[InlineData((ControlStyles)(-1), false)] 1703public void UpDownBase_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 3186public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\UserControlTests.cs (28)
898[InlineData(ControlStyles.ContainerControl, true)] 899[InlineData(ControlStyles.UserPaint, true)] 900[InlineData(ControlStyles.Opaque, false)] 901[InlineData(ControlStyles.ResizeRedraw, false)] 902[InlineData(ControlStyles.FixedWidth, false)] 903[InlineData(ControlStyles.FixedHeight, false)] 904[InlineData(ControlStyles.StandardClick, true)] 905[InlineData(ControlStyles.Selectable, true)] 906[InlineData(ControlStyles.UserMouse, false)] 907[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 908[InlineData(ControlStyles.StandardDoubleClick, true)] 909[InlineData(ControlStyles.AllPaintingInWmPaint, false)] 910[InlineData(ControlStyles.CacheText, false)] 911[InlineData(ControlStyles.EnableNotifyMessage, false)] 912[InlineData(ControlStyles.DoubleBuffer, false)] 913[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 914[InlineData(ControlStyles.UseTextForAccessibility, true)] 915[InlineData((ControlStyles)0, true)] 916[InlineData((ControlStyles)int.MaxValue, false)] 917[InlineData((ControlStyles)(-1), false)] 918public void UserControl_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 1145control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 1199control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 1272child4.SetStyle(ControlStyles.Selectable, false); 1498child4.SetStyle(ControlStyles.Selectable, false); 1782public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value); 1867public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 1879public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
System\Windows\Forms\VScrollBarTests.cs (22)
200[InlineData(ControlStyles.ContainerControl, false)] 201[InlineData(ControlStyles.UserPaint, false)] 202[InlineData(ControlStyles.Opaque, false)] 203[InlineData(ControlStyles.ResizeRedraw, false)] 204[InlineData(ControlStyles.FixedWidth, false)] 205[InlineData(ControlStyles.FixedHeight, false)] 206[InlineData(ControlStyles.StandardClick, false)] 207[InlineData(ControlStyles.Selectable, true)] 208[InlineData(ControlStyles.UserMouse, false)] 209[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 210[InlineData(ControlStyles.StandardDoubleClick, true)] 211[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 212[InlineData(ControlStyles.CacheText, false)] 213[InlineData(ControlStyles.EnableNotifyMessage, false)] 214[InlineData(ControlStyles.DoubleBuffer, false)] 215[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 216[InlineData(ControlStyles.UseTextForAccessibility, false)] 217[InlineData((ControlStyles)0, true)] 218[InlineData((ControlStyles)int.MaxValue, false)] 219[InlineData((ControlStyles)(-1), false)] 220public void VScrollBar_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 292public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\WebBrowserTests.cs (22)
2817[InlineData(ControlStyles.ContainerControl, false)] 2818[InlineData(ControlStyles.UserPaint, false)] 2819[InlineData(ControlStyles.Opaque, false)] 2820[InlineData(ControlStyles.ResizeRedraw, false)] 2821[InlineData(ControlStyles.FixedWidth, false)] 2822[InlineData(ControlStyles.FixedHeight, false)] 2823[InlineData(ControlStyles.StandardClick, true)] 2824[InlineData(ControlStyles.Selectable, true)] 2825[InlineData(ControlStyles.UserMouse, false)] 2826[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 2827[InlineData(ControlStyles.StandardDoubleClick, true)] 2828[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 2829[InlineData(ControlStyles.CacheText, false)] 2830[InlineData(ControlStyles.EnableNotifyMessage, false)] 2831[InlineData(ControlStyles.DoubleBuffer, false)] 2832[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 2833[InlineData(ControlStyles.UseTextForAccessibility, true)] 2834[InlineData((ControlStyles)0, true)] 2835[InlineData((ControlStyles)int.MaxValue, false)] 2836[InlineData((ControlStyles)(-1), false)] 2837public void WebBrowser_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 4730public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
TextBoxBaseTests.cs (65)
218Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 227Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 236Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 256Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 266Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 276Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 303Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 313Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 323Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 800control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 813Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 819Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 825Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 844Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 853Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 862Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 967control.SetStyle(ControlStyles.UserPaint, userPaint); 969Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1004control.SetStyle(ControlStyles.UserPaint, userPaint); 1006Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1051control.SetStyle(ControlStyles.UserPaint, userPaint); 1053Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1090control.SetStyle(ControlStyles.UserPaint, userPaint); 1092Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1950Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 1958Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 1966Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 1982Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 1990Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 1998Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2030Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 2040Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 2050Assert.Equal(value, control.GetStyle(ControlStyles.FixedHeight)); 2082Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2092Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 2102Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 5143[InlineData(ControlStyles.ContainerControl, false)] 5144[InlineData(ControlStyles.UserPaint, false)] 5145[InlineData(ControlStyles.Opaque, false)] 5146[InlineData(ControlStyles.ResizeRedraw, false)] 5147[InlineData(ControlStyles.FixedWidth, false)] 5148[InlineData(ControlStyles.FixedHeight, true)] 5149[InlineData(ControlStyles.StandardClick, false)] 5150[InlineData(ControlStyles.Selectable, true)] 5151[InlineData(ControlStyles.UserMouse, false)] 5152[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 5153[InlineData(ControlStyles.StandardDoubleClick, false)] 5154[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 5155[InlineData(ControlStyles.CacheText, false)] 5156[InlineData(ControlStyles.EnableNotifyMessage, false)] 5157[InlineData(ControlStyles.DoubleBuffer, false)] 5158[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 5159[InlineData(ControlStyles.UseTextForAccessibility, false)] 5160[InlineData((ControlStyles)0, true)] 5161[InlineData((ControlStyles)int.MaxValue, false)] 5162[InlineData((ControlStyles)(-1), false)] 5163public void TextBoxBase_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 7261control.SetStyle(ControlStyles.UserMouse, userMouse); 7296control.SetStyle(ControlStyles.UserMouse, userMouse); 7297control.SetStyle(ControlStyles.Selectable, false); 7363control.SetStyle(ControlStyles.UserMouse, userMouse); 7406control.SetStyle(ControlStyles.UserMouse, userMouse); 7407control.SetStyle(ControlStyles.Selectable, false); 7741public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 7785public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
TextBoxTests.cs (24)
496[InlineData(ControlStyles.ContainerControl, false)] 497[InlineData(ControlStyles.UserPaint, false)] 498[InlineData(ControlStyles.Opaque, false)] 499[InlineData(ControlStyles.ResizeRedraw, false)] 500[InlineData(ControlStyles.FixedWidth, false)] 501[InlineData(ControlStyles.FixedHeight, true)] 502[InlineData(ControlStyles.StandardClick, false)] 503[InlineData(ControlStyles.Selectable, true)] 504[InlineData(ControlStyles.UserMouse, false)] 505[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 506[InlineData(ControlStyles.StandardDoubleClick, false)] 507[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 508[InlineData(ControlStyles.CacheText, false)] 509[InlineData(ControlStyles.EnableNotifyMessage, false)] 510[InlineData(ControlStyles.DoubleBuffer, false)] 511[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 512[InlineData(ControlStyles.UseTextForAccessibility, false)] 513[InlineData((ControlStyles)0, true)] 514[InlineData((ControlStyles)int.MaxValue, false)] 515[InlineData((ControlStyles)(-1), false)] 516public void TextBox_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 743public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 762get => GetStyle(ControlStyles.UserPaint); 763set => SetStyle(ControlStyles.UserPaint, value);
TrackBarTests.cs (70)
231Assert.False(control.GetStyle(ControlStyles.FixedWidth)); 232Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 240Assert.False(control.GetStyle(ControlStyles.FixedWidth)); 241Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 249Assert.False(control.GetStyle(ControlStyles.FixedWidth)); 250Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 269Assert.Equal(value, control.GetStyle(ControlStyles.FixedWidth)); 270Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 278Assert.Equal(value, control.GetStyle(ControlStyles.FixedWidth)); 279Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 287Assert.Equal(!value, control.GetStyle(ControlStyles.FixedWidth)); 288Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 311Assert.False(control.GetStyle(ControlStyles.FixedWidth)); 312Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 323Assert.False(control.GetStyle(ControlStyles.FixedWidth)); 324Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 335Assert.False(control.GetStyle(ControlStyles.FixedWidth)); 336Assert.Equal(!value, control.GetStyle(ControlStyles.FixedHeight)); 365Assert.Equal(value, control.GetStyle(ControlStyles.FixedWidth)); 366Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 377Assert.Equal(value, control.GetStyle(ControlStyles.FixedWidth)); 378Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 389Assert.Equal(!value, control.GetStyle(ControlStyles.FixedWidth)); 390Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 554control.SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 567Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 573Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 579Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 598Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 607Assert.Equal(value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 616Assert.Equal(!value, control.GetStyle(ControlStyles.OptimizedDoubleBuffer)); 1318Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1319Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 1326Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1327Assert.False(control.GetStyle(ControlStyles.FixedHeight)); 1352Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1353Assert.Equal(expectedFixedHeight, control.GetStyle(ControlStyles.FixedHeight)); 1360Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1361Assert.Equal(expectedFixedHeight, control.GetStyle(ControlStyles.FixedHeight)); 1392Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1393Assert.Equal(expectedFixedHeight, control.GetStyle(ControlStyles.FixedHeight)); 1403Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1404Assert.Equal(expectedFixedHeight, control.GetStyle(ControlStyles.FixedHeight)); 1439Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1440Assert.Equal(expectedFixedHeight, control.GetStyle(ControlStyles.FixedHeight)); 1450Assert.Equal(expectedFixedWidth, control.GetStyle(ControlStyles.FixedWidth)); 1451Assert.Equal(expectedFixedHeight, control.GetStyle(ControlStyles.FixedHeight)); 2274[InlineData(ControlStyles.ContainerControl, false)] 2275[InlineData(ControlStyles.UserPaint, false)] 2276[InlineData(ControlStyles.Opaque, false)] 2277[InlineData(ControlStyles.ResizeRedraw, false)] 2278[InlineData(ControlStyles.FixedWidth, false)] 2279[InlineData(ControlStyles.FixedHeight, false)] 2280[InlineData(ControlStyles.StandardClick, true)] 2281[InlineData(ControlStyles.Selectable, true)] 2282[InlineData(ControlStyles.UserMouse, false)] 2283[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 2284[InlineData(ControlStyles.StandardDoubleClick, true)] 2285[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 2286[InlineData(ControlStyles.CacheText, false)] 2287[InlineData(ControlStyles.EnableNotifyMessage, false)] 2288[InlineData(ControlStyles.DoubleBuffer, false)] 2289[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 2290[InlineData(ControlStyles.UseTextForAccessibility, false)] 2291[InlineData((ControlStyles)0, true)] 2292[InlineData((ControlStyles)int.MaxValue, false)] 2293[InlineData((ControlStyles)(-1), false)] 2294public void TrackBar_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 3336public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 3372public new void SetStyle(ControlStyles flag, bool value) => base.SetStyle(flag, value);
WebBrowserBaseTests.cs (24)
142control.SetStyle(ControlStyles.ResizeRedraw, resizeRedraw); 765[InlineData(ControlStyles.ContainerControl, false)] 766[InlineData(ControlStyles.UserPaint, false)] 767[InlineData(ControlStyles.Opaque, false)] 768[InlineData(ControlStyles.ResizeRedraw, false)] 769[InlineData(ControlStyles.FixedWidth, false)] 770[InlineData(ControlStyles.FixedHeight, false)] 771[InlineData(ControlStyles.StandardClick, true)] 772[InlineData(ControlStyles.Selectable, true)] 773[InlineData(ControlStyles.UserMouse, false)] 774[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 775[InlineData(ControlStyles.StandardDoubleClick, true)] 776[InlineData(ControlStyles.AllPaintingInWmPaint, true)] 777[InlineData(ControlStyles.CacheText, false)] 778[InlineData(ControlStyles.EnableNotifyMessage, false)] 779[InlineData(ControlStyles.DoubleBuffer, false)] 780[InlineData(ControlStyles.OptimizedDoubleBuffer, false)] 781[InlineData(ControlStyles.UseTextForAccessibility, true)] 782[InlineData((ControlStyles)0, true)] 783[InlineData((ControlStyles)int.MaxValue, false)] 784[InlineData((ControlStyles)(-1), false)] 785public void WebBrowserBase_GetStyle_Invoke_ReturnsExpected(ControlStyles flag, bool expected) 948public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 954public 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);