108 references to GetStyle
System.Windows.Forms (59)
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\Control_ActiveXControlInterfaces.cs (1)
330
if (
GetStyle
(ControlStyles.ResizeRedraw))
System\Windows\Forms\Control.cs (40)
810
if (!value.Equals(Color.Empty) && !
GetStyle
(ControlStyles.SupportsTransparentBackColor) && value.A < 255)
1114
return cacheTextCounter > 0 ||
GetStyle
(ControlStyles.CacheText);
1119
if (
GetStyle
(ControlStyles.CacheText) || !IsHandleCreated)
1321
if (
GetStyle
(ControlStyles.ContainerControl))
1724
get =>
GetStyle
(ControlStyles.OptimizedDoubleBuffer);
1741
private bool DoubleBufferingEnabled =>
GetStyle
(ControlStyles.DoubleBuffer | ControlStyles.UserPaint);
1831
if (IsHandleCreated && !
GetStyle
(ControlStyles.UserPaint))
2392
private bool IsValidBackColor(Color c) => c.IsEmpty ||
GetStyle
(ControlStyles.SupportsTransparentBackColor) || c.A == 255;
2776
=>
GetStyle
(ControlStyles.SupportsTransparentBackColor) && BackColor.A < 255;
2779
=>
GetStyle
(ControlStyles.SupportsTransparentBackColor) && c.A < 255;
2829
get =>
GetStyle
(ControlStyles.ResizeRedraw);
5782
if (!
GetStyle
(ControlStyles.UserPaint))
5835
!
GetStyle
(ControlStyles.Opaque));
6771
if (
GetStyle
(ControlStyles.UserPaint))
7084
if (
GetStyle
(ControlStyles.UserPaint))
7267
if (!
GetStyle
(ControlStyles.UserPaint))
7306
if (Application.IsDarkModeEnabled &&
GetStyle
(ControlStyles.ApplyThemingImplicitly))
7887
if (
GetStyle
(ControlStyles.ResizeRedraw))
8283
if (!
GetStyle
(ControlStyles.Opaque))
8484
if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.
GetStyle
(ControlStyles.Selectable))
8778
if (
GetStyle
(ControlStyles.UserPaint))
9623
if (ScaleHelper.IsScalingRequirementMet && !
GetStyle
(ControlStyles.UserPaint) && !IsFontSet())
9834
if (!
GetStyle
(ControlStyles.FixedWidth))
9839
if (!
GetStyle
(ControlStyles.FixedHeight))
10457
return
GetStyle
(ControlStyles.ContainerControl);
11161
if (
GetStyle
(ControlStyles.UserPaint))
11165
if (!
GetStyle
(ControlStyles.AllPaintingInWmPaint))
11307
if (!
GetStyle
(ControlStyles.CacheText))
11388
if (!
GetStyle
(ControlStyles.UserMouse))
11402
if (button == MouseButtons.Left &&
GetStyle
(ControlStyles.Selectable))
11544
if (!
GetStyle
(ControlStyles.UserMouse))
11563
if (!
GetStyle
(ControlStyles.UserMouse))
11723
bool doubleBuffered = DoubleBuffered || (
GetStyle
(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled);
11760
bool paintBackground = (usingBeginPaint &&
GetStyle
(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered;
12231
if (
GetStyle
(ControlStyles.UserPaint))
12243
if (
GetStyle
(ControlStyles.UserPaint))
12363
if (
GetStyle
(ControlStyles.StandardDoubleClick))
12380
if (
GetStyle
(ControlStyles.StandardDoubleClick))
12405
if (
GetStyle
(ControlStyles.StandardDoubleClick))
12456
if (
GetStyle
(ControlStyles.StandardDoubleClick))
System\Windows\Forms\Controls\Buttons\Button.cs (3)
116
if (
GetStyle
(ControlStyles.UserPaint))
224
if (
GetStyle
(ControlStyles.UserPaint))
234
if (
GetStyle
(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (3)
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))
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
470
&&
GetStyle
(ControlStyles.UserPaint)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
1999
else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX &&
GetStyle
(ControlStyles.UserPaint))
3662
if (!Application.RenderWithVisualStyles && !
GetStyle
(ControlStyles.UserPaint)
3732
if (!
GetStyle
(ControlStyles.UserPaint)
3785
if (!
GetStyle
(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup))
3791
if (!
GetStyle
(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup))
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1009
bool optimizeBackgroundRendering = !
GetStyle
(ControlStyles.OptimizedDoubleBuffer);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3511
bool oldStyle =
GetStyle
(ControlStyles.UserMouse);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
979
!
GetStyle
(ControlStyles.UserPaint) &&
System\Windows\Forms\Form.cs (1)
3759
if (!
GetStyle
(ControlStyles.Selectable) || !Enabled || !Visible)
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
1078
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System.Windows.Forms.Tests (48)
System\Windows\Forms\ButtonBaseTests.cs (2)
9249
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
9335
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\ButtonTests.cs (1)
3741
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\CheckBoxTests.cs (1)
694
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\ComboBoxTests.cs (1)
2894
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\ContainerControlTests.cs (1)
1485
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\ControlTests.cs (1)
1216
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
2166
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\DateTimePickerTests.cs (1)
1062
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
454
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
985
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\DomainUpDownTests.cs (1)
1548
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
500
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\FormTests.cs (1)
2764
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\GroupBoxTests.cs (1)
2353
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\HScrollBarTests.cs (1)
300
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\LabelTests.cs (1)
943
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\ListBoxTests.cs (1)
6466
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\ListControlTests.cs (1)
2966
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\ListViewTests.cs (1)
6153
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\MenuStripTests.cs (1)
936
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\MonthCalendarTests.cs (1)
4786
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\PanelTests.cs (1)
1222
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\PictureBoxTests.cs (1)
2894
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\ProgressBarTests.cs (1)
2644
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\PropertyGridTests.cs (1)
4225
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\RadioButtonTests.cs (1)
1593
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\RichTextBoxTests.cs (1)
10978
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\ScrollableControlTests.cs (1)
2642
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\ScrollBarTests.cs (1)
3216
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\SplitterTests.cs (1)
2359
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\StatusStripTests.cs (1)
1356
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\TabControlTests.cs (1)
5785
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
2241
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\TabPageTests.cs (1)
5305
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
2084
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5182
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\ToolStripPanelTests.cs (1)
425
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\ToolStripTests.cs (1)
7614
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\TreeViewTests.cs (1)
7626
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\UpDownBaseTests.cs (1)
3184
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\UserControlTests.cs (1)
1865
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\VScrollBarTests.cs (1)
290
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
System\Windows\Forms\WebBrowserTests.cs (1)
4728
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
TextBoxBaseTests.cs (1)
7739
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
TextBoxTests.cs (1)
741
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
TrackBarTests.cs (1)
3334
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);
WebBrowserBaseTests.cs (1)
946
public new bool GetStyle(ControlStyles flag) => base.
GetStyle
(flag);