108 references to GetStyle
System.Windows.Forms (59)
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 (40)
808if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 1112return cacheTextCounter > 0 || GetStyle(ControlStyles.CacheText); 1117if (GetStyle(ControlStyles.CacheText) || !IsHandleCreated) 1319if (GetStyle(ControlStyles.ContainerControl)) 1722get => GetStyle(ControlStyles.OptimizedDoubleBuffer); 1739private bool DoubleBufferingEnabled => GetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint); 1829if (IsHandleCreated && !GetStyle(ControlStyles.UserPaint)) 2390private bool IsValidBackColor(Color c) => c.IsEmpty || GetStyle(ControlStyles.SupportsTransparentBackColor) || c.A == 255; 2774=> GetStyle(ControlStyles.SupportsTransparentBackColor) && BackColor.A < 255; 2777=> GetStyle(ControlStyles.SupportsTransparentBackColor) && c.A < 255; 2827get => GetStyle(ControlStyles.ResizeRedraw); 5780if (!GetStyle(ControlStyles.UserPaint)) 5833!GetStyle(ControlStyles.Opaque)); 6769if (GetStyle(ControlStyles.UserPaint)) 7082if (GetStyle(ControlStyles.UserPaint)) 7265if (!GetStyle(ControlStyles.UserPaint)) 7304if (Application.IsDarkModeEnabled && GetStyle(ControlStyles.ApplyThemingImplicitly)) 7885if (GetStyle(ControlStyles.ResizeRedraw)) 8281if (!GetStyle(ControlStyles.Opaque)) 8482if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.GetStyle(ControlStyles.Selectable)) 8776if (GetStyle(ControlStyles.UserPaint)) 9621if (ScaleHelper.IsScalingRequirementMet && !GetStyle(ControlStyles.UserPaint) && !IsFontSet()) 9832if (!GetStyle(ControlStyles.FixedWidth)) 9837if (!GetStyle(ControlStyles.FixedHeight)) 10455return GetStyle(ControlStyles.ContainerControl); 11159if (GetStyle(ControlStyles.UserPaint)) 11163if (!GetStyle(ControlStyles.AllPaintingInWmPaint)) 11305if (!GetStyle(ControlStyles.CacheText)) 11386if (!GetStyle(ControlStyles.UserMouse)) 11400if (button == MouseButtons.Left && GetStyle(ControlStyles.Selectable)) 11542if (!GetStyle(ControlStyles.UserMouse)) 11561if (!GetStyle(ControlStyles.UserMouse)) 11721bool doubleBuffered = DoubleBuffered || (GetStyle(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled); 11758bool paintBackground = (usingBeginPaint && GetStyle(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered; 12229if (GetStyle(ControlStyles.UserPaint)) 12241if (GetStyle(ControlStyles.UserPaint)) 12361if (GetStyle(ControlStyles.StandardDoubleClick)) 12378if (GetStyle(ControlStyles.StandardDoubleClick)) 12403if (GetStyle(ControlStyles.StandardDoubleClick)) 12454if (GetStyle(ControlStyles.StandardDoubleClick))
System\Windows\Forms\Controls\Buttons\Button.cs (3)
116if (GetStyle(ControlStyles.UserPaint)) 224if (GetStyle(ControlStyles.UserPaint)) 234if (GetStyle(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (3)
936Debug.Assert(GetStyle(ControlStyles.UserPaint), "Shouldn't be in PaintControl when control is not UserPaint style"); 1190if (GetStyle(ControlStyles.UserPaint)) 1240if (OwnerDraw != GetStyle(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
470&& GetStyle(ControlStyles.UserPaint)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
1999else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX && GetStyle(ControlStyles.UserPaint)) 3662if (!Application.RenderWithVisualStyles && !GetStyle(ControlStyles.UserPaint) 3732if (!GetStyle(ControlStyles.UserPaint) 3778if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 3784if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup))
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1009bool optimizeBackgroundRendering = !GetStyle(ControlStyles.OptimizedDoubleBuffer);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3511bool oldStyle = GetStyle(ControlStyles.UserMouse);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
979!GetStyle(ControlStyles.UserPaint) &&
System\Windows\Forms\Form.cs (1)
3759if (!GetStyle(ControlStyles.Selectable) || !Enabled || !Visible)
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
1080public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System.Windows.Forms.Tests (48)
System\Windows\Forms\ButtonBaseTests.cs (2)
9251public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 9337public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ButtonTests.cs (1)
3743public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\CheckBoxTests.cs (1)
696public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ComboBoxTests.cs (1)
2896public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ContainerControlTests.cs (1)
1487public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ControlTests.cs (1)
1218public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
2168public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\DateTimePickerTests.cs (1)
1064public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
456public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
987public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\DomainUpDownTests.cs (1)
1550public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
502public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\FormTests.cs (1)
2766public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\GroupBoxTests.cs (1)
2355public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\HScrollBarTests.cs (1)
302public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\LabelTests.cs (1)
945public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ListBoxTests.cs (1)
6468public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ListControlTests.cs (1)
2968public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ListViewTests.cs (1)
6155public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\MenuStripTests.cs (1)
938public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\MonthCalendarTests.cs (1)
4788public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\PanelTests.cs (1)
1224public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\PictureBoxTests.cs (1)
2896public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ProgressBarTests.cs (1)
2646public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\PropertyGridTests.cs (1)
4227public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\RadioButtonTests.cs (1)
1595public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\RichTextBoxTests.cs (1)
10980public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ScrollableControlTests.cs (1)
2644public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ScrollBarTests.cs (1)
3218public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\SplitterTests.cs (1)
2361public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\StatusStripTests.cs (1)
1358public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\TabControlTests.cs (1)
5814public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
2243public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\TabPageTests.cs (1)
5307public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
2086public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5184public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ToolStripPanelTests.cs (1)
427public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ToolStripTests.cs (1)
7585public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\TreeViewTests.cs (1)
7628public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\UpDownBaseTests.cs (1)
3186public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\UserControlTests.cs (1)
1867public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\VScrollBarTests.cs (1)
292public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\WebBrowserTests.cs (1)
4730public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
TextBoxBaseTests.cs (1)
7741public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
TextBoxTests.cs (1)
743public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
TrackBarTests.cs (1)
3336public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
WebBrowserBaseTests.cs (1)
948public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);