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