108 references to GetStyle
System.Windows.Forms (59)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (2)
85=> this.TryGetOwnerAs(out Control? owner) && owner.GetStyle(ControlStyles.ContainerControl) 349if (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)
810if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 1114return cacheTextCounter > 0 || GetStyle(ControlStyles.CacheText); 1119if (GetStyle(ControlStyles.CacheText) || !IsHandleCreated) 1321if (GetStyle(ControlStyles.ContainerControl)) 1724get => GetStyle(ControlStyles.OptimizedDoubleBuffer); 1741private bool DoubleBufferingEnabled => GetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint); 1831if (IsHandleCreated && !GetStyle(ControlStyles.UserPaint)) 2392private bool IsValidBackColor(Color c) => c.IsEmpty || GetStyle(ControlStyles.SupportsTransparentBackColor) || c.A == 255; 2776=> GetStyle(ControlStyles.SupportsTransparentBackColor) && BackColor.A < 255; 2779=> GetStyle(ControlStyles.SupportsTransparentBackColor) && c.A < 255; 2829get => GetStyle(ControlStyles.ResizeRedraw); 5782if (!GetStyle(ControlStyles.UserPaint)) 5835!GetStyle(ControlStyles.Opaque)); 6771if (GetStyle(ControlStyles.UserPaint)) 7084if (GetStyle(ControlStyles.UserPaint)) 7267if (!GetStyle(ControlStyles.UserPaint)) 7306if (Application.IsDarkModeEnabled && GetStyle(ControlStyles.ApplyThemingImplicitly)) 7887if (GetStyle(ControlStyles.ResizeRedraw)) 8283if (!GetStyle(ControlStyles.Opaque)) 8484if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.GetStyle(ControlStyles.Selectable)) 8778if (GetStyle(ControlStyles.UserPaint)) 9623if (ScaleHelper.IsScalingRequirementMet && !GetStyle(ControlStyles.UserPaint) && !IsFontSet()) 9834if (!GetStyle(ControlStyles.FixedWidth)) 9839if (!GetStyle(ControlStyles.FixedHeight)) 10457return GetStyle(ControlStyles.ContainerControl); 11161if (GetStyle(ControlStyles.UserPaint)) 11165if (!GetStyle(ControlStyles.AllPaintingInWmPaint)) 11307if (!GetStyle(ControlStyles.CacheText)) 11388if (!GetStyle(ControlStyles.UserMouse)) 11402if (button == MouseButtons.Left && GetStyle(ControlStyles.Selectable)) 11544if (!GetStyle(ControlStyles.UserMouse)) 11563if (!GetStyle(ControlStyles.UserMouse)) 11723bool doubleBuffered = DoubleBuffered || (GetStyle(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled); 11760bool paintBackground = (usingBeginPaint && GetStyle(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered; 12231if (GetStyle(ControlStyles.UserPaint)) 12243if (GetStyle(ControlStyles.UserPaint)) 12363if (GetStyle(ControlStyles.StandardDoubleClick)) 12380if (GetStyle(ControlStyles.StandardDoubleClick)) 12405if (GetStyle(ControlStyles.StandardDoubleClick)) 12456if (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) 3785if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 3791if (!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)
1078public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System.Windows.Forms.Tests (48)
System\Windows\Forms\ButtonBaseTests.cs (2)
9249public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag); 9335public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ButtonTests.cs (1)
3741public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\CheckBoxTests.cs (1)
694public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ComboBoxTests.cs (1)
2894public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ContainerControlTests.cs (1)
1485public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ControlTests.cs (1)
1216public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
2166public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\DateTimePickerTests.cs (1)
1062public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
454public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
985public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\DomainUpDownTests.cs (1)
1548public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
500public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\FormTests.cs (1)
2764public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\GroupBoxTests.cs (1)
2353public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\HScrollBarTests.cs (1)
300public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\LabelTests.cs (1)
943public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ListBoxTests.cs (1)
6466public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ListControlTests.cs (1)
2966public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ListViewTests.cs (1)
6153public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\MenuStripTests.cs (1)
936public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\MonthCalendarTests.cs (1)
4786public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\PanelTests.cs (1)
1222public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\PictureBoxTests.cs (1)
2894public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ProgressBarTests.cs (1)
2644public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\PropertyGridTests.cs (1)
4225public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\RadioButtonTests.cs (1)
1593public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\RichTextBoxTests.cs (1)
10978public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ScrollableControlTests.cs (1)
2642public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ScrollBarTests.cs (1)
3216public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\SplitterTests.cs (1)
2359public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\StatusStripTests.cs (1)
1356public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\TabControlTests.cs (1)
5785public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
2241public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\TabPageTests.cs (1)
5305public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
2084public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5182public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ToolStripPanelTests.cs (1)
425public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\ToolStripTests.cs (1)
7614public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\TreeViewTests.cs (1)
7626public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\UpDownBaseTests.cs (1)
3184public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\UserControlTests.cs (1)
1865public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\VScrollBarTests.cs (1)
290public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
System\Windows\Forms\WebBrowserTests.cs (1)
4728public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
TextBoxBaseTests.cs (1)
7739public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
TextBoxTests.cs (1)
741public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
TrackBarTests.cs (1)
3334public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);
WebBrowserBaseTests.cs (1)
946public new bool GetStyle(ControlStyles flag) => base.GetStyle(flag);