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