108 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) 1415if (GetStyle(ControlStyles.ContainerControl)) 1818get => GetStyle(ControlStyles.OptimizedDoubleBuffer); 1835private bool DoubleBufferingEnabled => GetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint); 1925if (IsHandleCreated && !GetStyle(ControlStyles.UserPaint)) 2486private bool IsValidBackColor(Color c) => c.IsEmpty || GetStyle(ControlStyles.SupportsTransparentBackColor) || c.A == 255; 2870=> GetStyle(ControlStyles.SupportsTransparentBackColor) && BackColor.A < 255; 2873=> GetStyle(ControlStyles.SupportsTransparentBackColor) && c.A < 255; 2923get => GetStyle(ControlStyles.ResizeRedraw); 5876if (!GetStyle(ControlStyles.UserPaint)) 5929!GetStyle(ControlStyles.Opaque)); 6865if (GetStyle(ControlStyles.UserPaint)) 7175if (GetStyle(ControlStyles.UserPaint)) 7358if (!GetStyle(ControlStyles.UserPaint)) 7978if (GetStyle(ControlStyles.ResizeRedraw)) 8365if (!GetStyle(ControlStyles.Opaque)) 8566if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.GetStyle(ControlStyles.Selectable)) 8860if (GetStyle(ControlStyles.UserPaint)) 9726if (ScaleHelper.IsScalingRequirementMet && !GetStyle(ControlStyles.UserPaint) && !IsFontSet()) 9937if (!GetStyle(ControlStyles.FixedWidth)) 9942if (!GetStyle(ControlStyles.FixedHeight)) 10573return GetStyle(ControlStyles.ContainerControl); 11277if (GetStyle(ControlStyles.UserPaint)) 11281if (!GetStyle(ControlStyles.AllPaintingInWmPaint)) 11423if (!GetStyle(ControlStyles.CacheText)) 11504if (!GetStyle(ControlStyles.UserMouse)) 11518if (button == MouseButtons.Left && GetStyle(ControlStyles.Selectable)) 11657if (!GetStyle(ControlStyles.UserMouse)) 11676if (!GetStyle(ControlStyles.UserMouse)) 11836bool doubleBuffered = DoubleBuffered || (GetStyle(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled); 11873bool paintBackground = (usingBeginPaint && GetStyle(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered; 12344if (GetStyle(ControlStyles.UserPaint)) 12356if (GetStyle(ControlStyles.UserPaint)) 12476if (GetStyle(ControlStyles.StandardDoubleClick)) 12493if (GetStyle(ControlStyles.StandardDoubleClick)) 12518if (GetStyle(ControlStyles.StandardDoubleClick)) 12569if (GetStyle(ControlStyles.StandardDoubleClick))
System\Windows\Forms\Controls\Buttons\Button.cs (3)
117if (GetStyle(ControlStyles.UserPaint)) 261if (GetStyle(ControlStyles.UserPaint)) 271if (GetStyle(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (3)
991Debug.Assert(GetStyle(ControlStyles.UserPaint), "Shouldn't be in PaintControl when control is not UserPaint style"); 1249if (GetStyle(ControlStyles.UserPaint)) 1303if (OwnerDraw != GetStyle(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
487&& GetStyle(ControlStyles.UserPaint)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (5)
2012else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX && GetStyle(ControlStyles.UserPaint)) 3666if (!Application.RenderWithVisualStyles && !GetStyle(ControlStyles.UserPaint) 3777if (!GetStyle(ControlStyles.UserPaint) 3846if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 3852if (!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)
3530bool oldStyle = GetStyle(ControlStyles.UserMouse);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
973!GetStyle(ControlStyles.UserPaint) &&
System\Windows\Forms\Form.cs (1)
3825if (!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 (49)
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)
3751public 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)
2804public 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\MdiControlStripTests.cs (1)
442public 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)
4318public 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)
7592public 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)
3188public 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);