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)
809if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 1113return cacheTextCounter > 0 || GetStyle(ControlStyles.CacheText); 1118if (GetStyle(ControlStyles.CacheText) || !IsHandleCreated) 1320if (GetStyle(ControlStyles.ContainerControl)) 1723get => GetStyle(ControlStyles.OptimizedDoubleBuffer); 1740private bool DoubleBufferingEnabled => GetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint); 1830if (IsHandleCreated && !GetStyle(ControlStyles.UserPaint)) 2391private bool IsValidBackColor(Color c) => c.IsEmpty || GetStyle(ControlStyles.SupportsTransparentBackColor) || c.A == 255; 2775=> GetStyle(ControlStyles.SupportsTransparentBackColor) && BackColor.A < 255; 2778=> GetStyle(ControlStyles.SupportsTransparentBackColor) && c.A < 255; 2828get => GetStyle(ControlStyles.ResizeRedraw); 5741if (!GetStyle(ControlStyles.UserPaint)) 5794!GetStyle(ControlStyles.Opaque)); 6730if (GetStyle(ControlStyles.UserPaint)) 7043if (GetStyle(ControlStyles.UserPaint)) 7226if (!GetStyle(ControlStyles.UserPaint)) 7265if (Application.IsDarkModeEnabled && GetStyle(ControlStyles.ApplyThemingImplicitly)) 7846if (GetStyle(ControlStyles.ResizeRedraw)) 8242if (!GetStyle(ControlStyles.Opaque)) 8443if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.GetStyle(ControlStyles.Selectable)) 8737if (GetStyle(ControlStyles.UserPaint)) 9582if (ScaleHelper.IsScalingRequirementMet && !GetStyle(ControlStyles.UserPaint) && !IsFontSet()) 9801if (!GetStyle(ControlStyles.FixedWidth)) 9806if (!GetStyle(ControlStyles.FixedHeight)) 10424return GetStyle(ControlStyles.ContainerControl); 11128if (GetStyle(ControlStyles.UserPaint)) 11132if (!GetStyle(ControlStyles.AllPaintingInWmPaint)) 11274if (!GetStyle(ControlStyles.CacheText)) 11355if (!GetStyle(ControlStyles.UserMouse)) 11369if (button == MouseButtons.Left && GetStyle(ControlStyles.Selectable)) 11511if (!GetStyle(ControlStyles.UserMouse)) 11530if (!GetStyle(ControlStyles.UserMouse)) 11690bool doubleBuffered = DoubleBuffered || (GetStyle(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled); 11727bool paintBackground = (usingBeginPaint && GetStyle(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered; 12199if (GetStyle(ControlStyles.UserPaint)) 12211if (GetStyle(ControlStyles.UserPaint)) 12331if (GetStyle(ControlStyles.StandardDoubleClick)) 12348if (GetStyle(ControlStyles.StandardDoubleClick)) 12373if (GetStyle(ControlStyles.StandardDoubleClick)) 12424if (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)
1998else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX && GetStyle(ControlStyles.UserPaint)) 3661if (!Application.RenderWithVisualStyles && !GetStyle(ControlStyles.UserPaint) 3731if (!GetStyle(ControlStyles.UserPaint) 3784if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 3790if (!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)
3500bool 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);