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)
809
if (!value.Equals(Color.Empty) && !
GetStyle
(ControlStyles.SupportsTransparentBackColor) && value.A < 255)
1113
return cacheTextCounter > 0 ||
GetStyle
(ControlStyles.CacheText);
1118
if (
GetStyle
(ControlStyles.CacheText) || !IsHandleCreated)
1320
if (
GetStyle
(ControlStyles.ContainerControl))
1723
get =>
GetStyle
(ControlStyles.OptimizedDoubleBuffer);
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);
5741
if (!
GetStyle
(ControlStyles.UserPaint))
5794
!
GetStyle
(ControlStyles.Opaque));
6730
if (
GetStyle
(ControlStyles.UserPaint))
7043
if (
GetStyle
(ControlStyles.UserPaint))
7226
if (!
GetStyle
(ControlStyles.UserPaint))
7265
if (Application.IsDarkModeEnabled &&
GetStyle
(ControlStyles.ApplyThemingImplicitly))
7846
if (
GetStyle
(ControlStyles.ResizeRedraw))
8242
if (!
GetStyle
(ControlStyles.Opaque))
8443
if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.
GetStyle
(ControlStyles.Selectable))
8737
if (
GetStyle
(ControlStyles.UserPaint))
9582
if (ScaleHelper.IsScalingRequirementMet && !
GetStyle
(ControlStyles.UserPaint) && !IsFontSet())
9801
if (!
GetStyle
(ControlStyles.FixedWidth))
9806
if (!
GetStyle
(ControlStyles.FixedHeight))
10424
return
GetStyle
(ControlStyles.ContainerControl);
11128
if (
GetStyle
(ControlStyles.UserPaint))
11132
if (!
GetStyle
(ControlStyles.AllPaintingInWmPaint))
11274
if (!
GetStyle
(ControlStyles.CacheText))
11355
if (!
GetStyle
(ControlStyles.UserMouse))
11369
if (button == MouseButtons.Left &&
GetStyle
(ControlStyles.Selectable))
11511
if (!
GetStyle
(ControlStyles.UserMouse))
11530
if (!
GetStyle
(ControlStyles.UserMouse))
11690
bool doubleBuffered = DoubleBuffered || (
GetStyle
(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled);
11727
bool paintBackground = (usingBeginPaint &&
GetStyle
(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered;
12199
if (
GetStyle
(ControlStyles.UserPaint))
12211
if (
GetStyle
(ControlStyles.UserPaint))
12331
if (
GetStyle
(ControlStyles.StandardDoubleClick))
12348
if (
GetStyle
(ControlStyles.StandardDoubleClick))
12373
if (
GetStyle
(ControlStyles.StandardDoubleClick))
12424
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)
1998
else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX &&
GetStyle
(ControlStyles.UserPaint))
3661
if (!Application.RenderWithVisualStyles && !
GetStyle
(ControlStyles.UserPaint)
3731
if (!
GetStyle
(ControlStyles.UserPaint)
3784
if (!
GetStyle
(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup))
3790
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)
3500
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);