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)
904
if (!value.Equals(Color.Empty) && !
GetStyle
(ControlStyles.SupportsTransparentBackColor) && value.A < 255)
1208
return cacheTextCounter > 0 ||
GetStyle
(ControlStyles.CacheText);
1213
if (
GetStyle
(ControlStyles.CacheText) || !IsHandleCreated)
1408
if (
GetStyle
(ControlStyles.ContainerControl))
1811
get =>
GetStyle
(ControlStyles.OptimizedDoubleBuffer);
1828
private bool DoubleBufferingEnabled =>
GetStyle
(ControlStyles.DoubleBuffer | ControlStyles.UserPaint);
1918
if (IsHandleCreated && !
GetStyle
(ControlStyles.UserPaint))
2479
private bool IsValidBackColor(Color c) => c.IsEmpty ||
GetStyle
(ControlStyles.SupportsTransparentBackColor) || c.A == 255;
2863
=>
GetStyle
(ControlStyles.SupportsTransparentBackColor) && BackColor.A < 255;
2866
=>
GetStyle
(ControlStyles.SupportsTransparentBackColor) && c.A < 255;
2916
get =>
GetStyle
(ControlStyles.ResizeRedraw);
5869
if (!
GetStyle
(ControlStyles.UserPaint))
5924
!
GetStyle
(ControlStyles.Opaque));
6860
if (
GetStyle
(ControlStyles.UserPaint))
7170
if (
GetStyle
(ControlStyles.UserPaint))
7353
if (!
GetStyle
(ControlStyles.UserPaint))
7973
if (
GetStyle
(ControlStyles.ResizeRedraw))
8360
if (!
GetStyle
(ControlStyles.Opaque))
8561
if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.
GetStyle
(ControlStyles.Selectable))
8855
if (
GetStyle
(ControlStyles.UserPaint))
9720
if (ScaleHelper.IsScalingRequirementMet && !
GetStyle
(ControlStyles.UserPaint) && !IsFontSet())
9931
if (!
GetStyle
(ControlStyles.FixedWidth))
9936
if (!
GetStyle
(ControlStyles.FixedHeight))
10565
return
GetStyle
(ControlStyles.ContainerControl);
11269
if (
GetStyle
(ControlStyles.UserPaint))
11273
if (!
GetStyle
(ControlStyles.AllPaintingInWmPaint))
11415
if (!
GetStyle
(ControlStyles.CacheText))
11496
if (!
GetStyle
(ControlStyles.UserMouse))
11510
if (button == MouseButtons.Left &&
GetStyle
(ControlStyles.Selectable))
11653
if (!
GetStyle
(ControlStyles.UserMouse))
11672
if (!
GetStyle
(ControlStyles.UserMouse))
11832
bool doubleBuffered = DoubleBuffered || (
GetStyle
(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled);
11869
bool paintBackground = (usingBeginPaint &&
GetStyle
(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered;
12340
if (
GetStyle
(ControlStyles.UserPaint))
12352
if (
GetStyle
(ControlStyles.UserPaint))
12472
if (
GetStyle
(ControlStyles.StandardDoubleClick))
12489
if (
GetStyle
(ControlStyles.StandardDoubleClick))
12514
if (
GetStyle
(ControlStyles.StandardDoubleClick))
12565
if (
GetStyle
(ControlStyles.StandardDoubleClick))
System\Windows\Forms\Controls\Buttons\Button.cs (3)
117
if (
GetStyle
(ControlStyles.UserPaint))
260
if (
GetStyle
(ControlStyles.UserPaint))
270
if (
GetStyle
(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (3)
990
Debug.Assert(
GetStyle
(ControlStyles.UserPaint), "Shouldn't be in PaintControl when control is not UserPaint style");
1248
if (
GetStyle
(ControlStyles.UserPaint))
1302
if (OwnerDraw !=
GetStyle
(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
487
&&
GetStyle
(ControlStyles.UserPaint)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
1997
else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX &&
GetStyle
(ControlStyles.UserPaint))
3649
if (!Application.RenderWithVisualStyles && !
GetStyle
(ControlStyles.UserPaint)
3758
if (!
GetStyle
(ControlStyles.UserPaint)
3825
if (!
GetStyle
(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup))
3831
if (!
GetStyle
(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup))
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1007
bool optimizeBackgroundRendering = !
GetStyle
(ControlStyles.OptimizedDoubleBuffer);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3528
bool oldStyle =
GetStyle
(ControlStyles.UserMouse);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
960
!
GetStyle
(ControlStyles.UserPaint) &&
System\Windows\Forms\Form.cs (1)
3810
if (!
GetStyle
(ControlStyles.Selectable) || !Enabled || !Visible)