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)
1083if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 1387return cacheTextCounter > 0 || GetStyle(ControlStyles.CacheText); 1392if (GetStyle(ControlStyles.CacheText) || !IsHandleCreated) 1587if (GetStyle(ControlStyles.ContainerControl)) 1990get => GetStyle(ControlStyles.OptimizedDoubleBuffer); 2007private bool DoubleBufferingEnabled => GetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint); 2097if (IsHandleCreated && !GetStyle(ControlStyles.UserPaint)) 2658private 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; 3095get => GetStyle(ControlStyles.ResizeRedraw); 6093if (!GetStyle(ControlStyles.UserPaint)) 6148!GetStyle(ControlStyles.Opaque)); 7234if (GetStyle(ControlStyles.UserPaint)) 7769if (GetStyle(ControlStyles.UserPaint)) 7954if (!GetStyle(ControlStyles.UserPaint)) 8581if (GetStyle(ControlStyles.ResizeRedraw)) 9089if (!GetStyle(ControlStyles.Opaque)) 9290if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.GetStyle(ControlStyles.Selectable)) 9584if (GetStyle(ControlStyles.UserPaint)) 10449if (ScaleHelper.IsScalingRequirementMet && !GetStyle(ControlStyles.UserPaint) && !IsFontSet()) 10660if (!GetStyle(ControlStyles.FixedWidth)) 10665if (!GetStyle(ControlStyles.FixedHeight)) 11294return GetStyle(ControlStyles.ContainerControl); 11998if (GetStyle(ControlStyles.UserPaint)) 12002if (!GetStyle(ControlStyles.AllPaintingInWmPaint)) 12144if (!GetStyle(ControlStyles.CacheText)) 12225if (!GetStyle(ControlStyles.UserMouse)) 12239if (button == MouseButtons.Left && GetStyle(ControlStyles.Selectable)) 12382if (!GetStyle(ControlStyles.UserMouse)) 12401if (!GetStyle(ControlStyles.UserMouse)) 12561bool doubleBuffered = DoubleBuffered || (GetStyle(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled); 12598bool paintBackground = (usingBeginPaint && GetStyle(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered; 13069if (GetStyle(ControlStyles.UserPaint)) 13081if (GetStyle(ControlStyles.UserPaint)) 13201if (GetStyle(ControlStyles.StandardDoubleClick)) 13218if (GetStyle(ControlStyles.StandardDoubleClick)) 13243if (GetStyle(ControlStyles.StandardDoubleClick)) 13294if (GetStyle(ControlStyles.StandardDoubleClick))
System\Windows\Forms\Controls\Buttons\Button.cs (3)
117if (GetStyle(ControlStyles.UserPaint)) 232if (GetStyle(ControlStyles.UserPaint)) 242if (GetStyle(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (3)
952Debug.Assert(GetStyle(ControlStyles.UserPaint), "Shouldn't be in PaintControl when control is not UserPaint style"); 1233if (GetStyle(ControlStyles.UserPaint)) 1345if (OwnerDraw != GetStyle(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
606&& GetStyle(ControlStyles.UserPaint)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
2068else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX && GetStyle(ControlStyles.UserPaint)) 3798if (!Application.RenderWithVisualStyles && !GetStyle(ControlStyles.UserPaint) 3927if (!GetStyle(ControlStyles.UserPaint) 4076if (!GetStyle(ControlStyles.UserPaint) 4083if (!GetStyle(ControlStyles.UserPaint)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1019bool optimizeBackgroundRendering = !GetStyle(ControlStyles.OptimizedDoubleBuffer);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3631bool oldStyle = GetStyle(ControlStyles.UserMouse);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
1006!GetStyle(ControlStyles.UserPaint) &&
System\Windows\Forms\Form.cs (1)
3819if (!GetStyle(ControlStyles.Selectable) || !Enabled || !Visible)