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)
1083
if (!value.Equals(Color.Empty) && !
GetStyle
(ControlStyles.SupportsTransparentBackColor) && value.A < 255)
1387
return cacheTextCounter > 0 ||
GetStyle
(ControlStyles.CacheText);
1392
if (
GetStyle
(ControlStyles.CacheText) || !IsHandleCreated)
1587
if (
GetStyle
(ControlStyles.ContainerControl))
1990
get =>
GetStyle
(ControlStyles.OptimizedDoubleBuffer);
2007
private bool DoubleBufferingEnabled =>
GetStyle
(ControlStyles.DoubleBuffer | ControlStyles.UserPaint);
2097
if (IsHandleCreated && !
GetStyle
(ControlStyles.UserPaint))
2658
private bool IsValidBackColor(Color c) => c.IsEmpty ||
GetStyle
(ControlStyles.SupportsTransparentBackColor) || c.A == 255;
3042
=>
GetStyle
(ControlStyles.SupportsTransparentBackColor) && BackColor.A < 255;
3045
=>
GetStyle
(ControlStyles.SupportsTransparentBackColor) && c.A < 255;
3095
get =>
GetStyle
(ControlStyles.ResizeRedraw);
6093
if (!
GetStyle
(ControlStyles.UserPaint))
6148
!
GetStyle
(ControlStyles.Opaque));
7234
if (
GetStyle
(ControlStyles.UserPaint))
7769
if (
GetStyle
(ControlStyles.UserPaint))
7954
if (!
GetStyle
(ControlStyles.UserPaint))
8581
if (
GetStyle
(ControlStyles.ResizeRedraw))
9089
if (!
GetStyle
(ControlStyles.Opaque))
9290
if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.
GetStyle
(ControlStyles.Selectable))
9584
if (
GetStyle
(ControlStyles.UserPaint))
10449
if (ScaleHelper.IsScalingRequirementMet && !
GetStyle
(ControlStyles.UserPaint) && !IsFontSet())
10660
if (!
GetStyle
(ControlStyles.FixedWidth))
10665
if (!
GetStyle
(ControlStyles.FixedHeight))
11294
return
GetStyle
(ControlStyles.ContainerControl);
11998
if (
GetStyle
(ControlStyles.UserPaint))
12002
if (!
GetStyle
(ControlStyles.AllPaintingInWmPaint))
12144
if (!
GetStyle
(ControlStyles.CacheText))
12225
if (!
GetStyle
(ControlStyles.UserMouse))
12239
if (button == MouseButtons.Left &&
GetStyle
(ControlStyles.Selectable))
12382
if (!
GetStyle
(ControlStyles.UserMouse))
12401
if (!
GetStyle
(ControlStyles.UserMouse))
12561
bool doubleBuffered = DoubleBuffered || (
GetStyle
(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled);
12598
bool paintBackground = (usingBeginPaint &&
GetStyle
(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered;
13069
if (
GetStyle
(ControlStyles.UserPaint))
13081
if (
GetStyle
(ControlStyles.UserPaint))
13201
if (
GetStyle
(ControlStyles.StandardDoubleClick))
13218
if (
GetStyle
(ControlStyles.StandardDoubleClick))
13243
if (
GetStyle
(ControlStyles.StandardDoubleClick))
13294
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)
606
&&
GetStyle
(ControlStyles.UserPaint)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
2068
else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX &&
GetStyle
(ControlStyles.UserPaint))
3798
if (!Application.RenderWithVisualStyles && !
GetStyle
(ControlStyles.UserPaint)
3927
if (!
GetStyle
(ControlStyles.UserPaint)
4076
if (!
GetStyle
(ControlStyles.UserPaint)
4083
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)
3631
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)