119 references to SupportsTransparentBackColor
System.Windows.Forms (19)
System\Windows\Forms\Control.cs (4)
808if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 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;
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
67ControlStyles.SupportsTransparentBackColor
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
388SetStyle(ControlStyles.SupportsTransparentBackColor, false);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
34SetStyle(ControlStyles.SupportsTransparentBackColor | ControlStyles.UserPaint | 199SetStyle(ControlStyles.SupportsTransparentBackColor |
System\Windows\Forms\Controls\Labels\Label.cs (2)
69ControlStyles.SupportsTransparentBackColor | 341| ControlStyles.SupportsTransparentBackColor
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
111SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
622SetStyle(ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
130ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.SupportsTransparentBackColor,
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
21SetStyle(ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
27SetStyle(ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
51SetStyle(ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer | /*ControlStyles.AllPaintingInWmPaint |*/ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
102SetStyle(ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Panels\Panel.cs (1)
32SetStyle(ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\UserControl.cs (1)
34SetStyle(ControlStyles.SupportsTransparentBackColor, true);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
202[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System.Windows.Forms.Tests (98)
System\Windows\Forms\ButtonBaseTests.cs (1)
5072[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\ButtonTests.cs (1)
1778[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\CheckBoxTests.cs (1)
506[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\ComboBoxTests.cs (1)
1464[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\ContainerControlTests.cs (1)
522[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\ControlTests.Handlers.cs (13)
2808child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2810child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2908child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2910child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2985child1.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 3277control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 3279control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 3708control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 3710control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 3861control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 3987control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4033control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4118control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor);
System\Windows\Forms\ControlTests.Methods.cs (6)
2833[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 4282otherControl.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 4566child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 4568child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 4666child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 4668child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
System\Windows\Forms\ControlTests.Properties.cs (7)
1275control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 7062control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 7064control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 7547control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 7549control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 12494control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 12496control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
1109[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\DateTimePickerTests.cs (1)
872[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
225[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
687[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\DomainUpDownTests.cs (1)
1075[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
289[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\FormTests.cs (1)
2440[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\GroupBoxTests.cs (13)
632Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 642Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 677Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 686Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 719Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 732Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 773Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 786Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 836Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 849Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 900Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 913Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 1424[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\HScrollBarTests.cs (1)
219[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\LabelTests.cs (1)
156[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\ListBoxTests.cs (1)
4908[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\ListControlTests.cs (1)
2573[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\ListViewTests.cs (1)
4265[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\MenuStripTests.cs (1)
522[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\MonthCalendarTests.cs (1)
3334[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\PanelTests.cs (1)
863[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\PictureBoxTests.cs (1)
1879[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\ProgressBarTests.cs (1)
1808[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\PropertyGridTests.cs (1)
3484[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\RadioButtonTests.cs (1)
633[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\RichTextBoxTests.cs (1)
8981[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\ScrollableControlTests.cs (5)
1360[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1541control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 1690control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 1740control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 1834control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor);
System\Windows\Forms\ScrollBarTests.cs (1)
1872[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\SplitterTests.cs (1)
1651[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\StatusStripTests.cs (1)
1107[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\TabControlTests.cs (1)
3940[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\TableLayoutPanelTests.cs (1)
1179[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\TabPageTests.cs (7)
2285control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 2287control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 3785[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 3983control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4063control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4109control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4202control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1683[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\ToolStripDropDownTests.cs (1)
3654[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\ToolStripPanelTests.cs (1)
317[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\ToolStripTests.cs (5)
4932[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 5882control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 6031control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 6080control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 6173control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor);
System\Windows\Forms\TreeViewTests.cs (1)
5055[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\UpDownBaseTests.cs (1)
1692[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\UserControlTests.cs (1)
907[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\VScrollBarTests.cs (1)
209[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\WebBrowserTests.cs (1)
2826[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
TextBoxBaseTests.cs (1)
5152[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
TextBoxTests.cs (1)
505[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
TrackBarTests.cs (1)
2283[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
WebBrowserBaseTests.cs (1)
774[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
70SetStyle(SWF.ControlStyles.SupportsTransparentBackColor, true);