58 references to GetStyle
System.Windows.Forms (58)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (2)
84
=> this.TryGetOwnerAs(out Control? owner) && owner.
GetStyle
(ControlStyles.ContainerControl)
348
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 (39)
1092
if (!value.Equals(Color.Empty) && !
GetStyle
(ControlStyles.SupportsTransparentBackColor) && value.A < 255)
1396
return cacheTextCounter > 0 ||
GetStyle
(ControlStyles.CacheText);
1401
if (
GetStyle
(ControlStyles.CacheText) || !IsHandleCreated)
1596
if (
GetStyle
(ControlStyles.ContainerControl))
1999
get =>
GetStyle
(ControlStyles.OptimizedDoubleBuffer);
2016
private bool DoubleBufferingEnabled =>
GetStyle
(ControlStyles.DoubleBuffer | ControlStyles.UserPaint);
2106
if (IsHandleCreated && !
GetStyle
(ControlStyles.UserPaint))
2667
private bool IsValidBackColor(Color c) => c.IsEmpty ||
GetStyle
(ControlStyles.SupportsTransparentBackColor) || c.A == 255;
3051
=>
GetStyle
(ControlStyles.SupportsTransparentBackColor) && BackColor.A < 255;
3054
=>
GetStyle
(ControlStyles.SupportsTransparentBackColor) && c.A < 255;
3104
get =>
GetStyle
(ControlStyles.ResizeRedraw);
6102
if (!
GetStyle
(ControlStyles.UserPaint))
6157
!
GetStyle
(ControlStyles.Opaque));
7243
if (
GetStyle
(ControlStyles.UserPaint))
7827
if (
GetStyle
(ControlStyles.UserPaint))
8012
if (!
GetStyle
(ControlStyles.UserPaint))
8639
if (
GetStyle
(ControlStyles.ResizeRedraw))
9147
if (!
GetStyle
(ControlStyles.Opaque))
9348
if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.
GetStyle
(ControlStyles.Selectable))
9642
if (
GetStyle
(ControlStyles.UserPaint))
10507
if (ScaleHelper.IsScalingRequirementMet && !
GetStyle
(ControlStyles.UserPaint) && !IsFontSet())
10718
if (!
GetStyle
(ControlStyles.FixedWidth))
10723
if (!
GetStyle
(ControlStyles.FixedHeight))
11352
return
GetStyle
(ControlStyles.ContainerControl);
12056
if (
GetStyle
(ControlStyles.UserPaint))
12060
if (!
GetStyle
(ControlStyles.AllPaintingInWmPaint))
12202
if (!
GetStyle
(ControlStyles.CacheText))
12283
if (!
GetStyle
(ControlStyles.UserMouse))
12297
if (button == MouseButtons.Left &&
GetStyle
(ControlStyles.Selectable))
12440
if (!
GetStyle
(ControlStyles.UserMouse))
12459
if (!
GetStyle
(ControlStyles.UserMouse))
12619
bool doubleBuffered = DoubleBuffered || (
GetStyle
(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled);
12656
bool paintBackground = (usingBeginPaint &&
GetStyle
(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered;
13127
if (
GetStyle
(ControlStyles.UserPaint))
13139
if (
GetStyle
(ControlStyles.UserPaint))
13259
if (
GetStyle
(ControlStyles.StandardDoubleClick))
13276
if (
GetStyle
(ControlStyles.StandardDoubleClick))
13301
if (
GetStyle
(ControlStyles.StandardDoubleClick))
13352
if (
GetStyle
(ControlStyles.StandardDoubleClick))
System\Windows\Forms\Controls\Buttons\Button.cs (3)
117
if (
GetStyle
(ControlStyles.UserPaint))
232
if (
GetStyle
(ControlStyles.UserPaint))
242
if (
GetStyle
(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (3)
952
Debug.Assert(
GetStyle
(ControlStyles.UserPaint), "Shouldn't be in PaintControl when control is not UserPaint style");
1233
if (
GetStyle
(ControlStyles.UserPaint))
1345
if (OwnerDraw !=
GetStyle
(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
627
&&
GetStyle
(ControlStyles.UserPaint)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
2085
else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX &&
GetStyle
(ControlStyles.UserPaint))
3821
if (!Application.RenderWithVisualStyles && !
GetStyle
(ControlStyles.UserPaint)
3971
if (!
GetStyle
(ControlStyles.UserPaint)
4120
if (!
GetStyle
(ControlStyles.UserPaint)
4127
if (!
GetStyle
(ControlStyles.UserPaint)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1019
bool optimizeBackgroundRendering = !
GetStyle
(ControlStyles.OptimizedDoubleBuffer);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3637
bool oldStyle =
GetStyle
(ControlStyles.UserMouse);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
1006
!
GetStyle
(ControlStyles.UserPaint) &&
System\Windows\Forms\Form.cs (1)
3819
if (!
GetStyle
(ControlStyles.Selectable) || !Enabled || !Visible)