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)
1092if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 1396return cacheTextCounter > 0 || GetStyle(ControlStyles.CacheText); 1401if (GetStyle(ControlStyles.CacheText) || !IsHandleCreated) 1596if (GetStyle(ControlStyles.ContainerControl)) 1999get => GetStyle(ControlStyles.OptimizedDoubleBuffer); 2016private bool DoubleBufferingEnabled => GetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint); 2106if (IsHandleCreated && !GetStyle(ControlStyles.UserPaint)) 2667private 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; 3104get => GetStyle(ControlStyles.ResizeRedraw); 6102if (!GetStyle(ControlStyles.UserPaint)) 6157!GetStyle(ControlStyles.Opaque)); 7243if (GetStyle(ControlStyles.UserPaint)) 7827if (GetStyle(ControlStyles.UserPaint)) 8012if (!GetStyle(ControlStyles.UserPaint)) 8639if (GetStyle(ControlStyles.ResizeRedraw)) 9147if (!GetStyle(ControlStyles.Opaque)) 9348if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.GetStyle(ControlStyles.Selectable)) 9642if (GetStyle(ControlStyles.UserPaint)) 10507if (ScaleHelper.IsScalingRequirementMet && !GetStyle(ControlStyles.UserPaint) && !IsFontSet()) 10718if (!GetStyle(ControlStyles.FixedWidth)) 10723if (!GetStyle(ControlStyles.FixedHeight)) 11352return GetStyle(ControlStyles.ContainerControl); 12056if (GetStyle(ControlStyles.UserPaint)) 12060if (!GetStyle(ControlStyles.AllPaintingInWmPaint)) 12202if (!GetStyle(ControlStyles.CacheText)) 12283if (!GetStyle(ControlStyles.UserMouse)) 12297if (button == MouseButtons.Left && GetStyle(ControlStyles.Selectable)) 12440if (!GetStyle(ControlStyles.UserMouse)) 12459if (!GetStyle(ControlStyles.UserMouse)) 12619bool doubleBuffered = DoubleBuffered || (GetStyle(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled); 12656bool paintBackground = (usingBeginPaint && GetStyle(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered; 13127if (GetStyle(ControlStyles.UserPaint)) 13139if (GetStyle(ControlStyles.UserPaint)) 13259if (GetStyle(ControlStyles.StandardDoubleClick)) 13276if (GetStyle(ControlStyles.StandardDoubleClick)) 13301if (GetStyle(ControlStyles.StandardDoubleClick)) 13352if (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)
627&& GetStyle(ControlStyles.UserPaint)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
2085else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX && GetStyle(ControlStyles.UserPaint)) 3821if (!Application.RenderWithVisualStyles && !GetStyle(ControlStyles.UserPaint) 3971if (!GetStyle(ControlStyles.UserPaint) 4120if (!GetStyle(ControlStyles.UserPaint) 4127if (!GetStyle(ControlStyles.UserPaint)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1019bool optimizeBackgroundRendering = !GetStyle(ControlStyles.OptimizedDoubleBuffer);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3637bool 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)