119 references to SupportsTransparentBackColor
System.Windows.Forms (19)
System\Windows\Forms\Control.cs (4)
809if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 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;
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)
112SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
614SetStyle(ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
131ControlStyles.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)
200[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System.Windows.Forms.Tests (98)
System\Windows\Forms\ButtonBaseTests.cs (1)
5070[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\ButtonTests.cs (1)
1776[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\CheckBoxTests.cs (1)
504[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\ComboBoxTests.cs (1)
1463[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\ContainerControlTests.cs (1)
520[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\ControlTests.Handlers.cs (13)
2806child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2808child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2906child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2908child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 2983child1.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 3275control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 3277control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 3706control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 3708control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 3859control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 3985control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4031control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4116control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor);
System\Windows\Forms\ControlTests.Methods.cs (6)
2864[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 4313otherControl.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 4597child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 4599child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 4697child1.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 4699child2.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
System\Windows\Forms\ControlTests.Properties.cs (7)
1273control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 7060control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 7062control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 7545control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 7547control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 12492control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 12494control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
1107[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\DateTimePickerTests.cs (1)
870[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
223[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
685[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\DomainUpDownTests.cs (1)
1073[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
287[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\FormTests.cs (1)
2438[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\GroupBoxTests.cs (13)
630Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 640Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 675Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 684Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 717Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 730Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 771Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 784Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 834Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 847Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 898Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 911Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.SupportsTransparentBackColor)); 1422[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\HScrollBarTests.cs (1)
217[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\LabelTests.cs (1)
154[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\ListBoxTests.cs (1)
4906[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\ListControlTests.cs (1)
2571[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\ListViewTests.cs (1)
4263[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\MenuStripTests.cs (1)
520[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\MonthCalendarTests.cs (1)
3332[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\PanelTests.cs (1)
861[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\PictureBoxTests.cs (1)
1877[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\ProgressBarTests.cs (1)
1806[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\PropertyGridTests.cs (1)
3482[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\RadioButtonTests.cs (1)
631[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\RichTextBoxTests.cs (1)
8979[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\ScrollableControlTests.cs (5)
1358[InlineData(ControlStyles.SupportsTransparentBackColor, false)] 1539control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 1688control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 1738control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 1832control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor);
System\Windows\Forms\ScrollBarTests.cs (1)
1870[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\SplitterTests.cs (1)
1649[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\StatusStripTests.cs (1)
1105[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\TabControlTests.cs (1)
3938[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\TableLayoutPanelTests.cs (1)
1177[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\TabPageTests.cs (7)
2283control.SetStyle(ControlStyles.SupportsTransparentBackColor, true); 2285control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackgroundColor); 3783[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 3981control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4061control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4107control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 4200control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1681[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\ToolStripDropDownTests.cs (1)
3652[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\ToolStripPanelTests.cs (1)
315[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\ToolStripTests.cs (5)
4930[InlineData(ControlStyles.SupportsTransparentBackColor, true)] 5880control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 6029control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 6078control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor); 6171control.SetStyle(ControlStyles.SupportsTransparentBackColor, supportsTransparentBackColor);
System\Windows\Forms\TreeViewTests.cs (1)
5053[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\UpDownBaseTests.cs (1)
1690[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\UserControlTests.cs (1)
905[InlineData(ControlStyles.SupportsTransparentBackColor, true)]
System\Windows\Forms\VScrollBarTests.cs (1)
207[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
System\Windows\Forms\WebBrowserTests.cs (1)
2824[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
TextBoxBaseTests.cs (1)
5150[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
TextBoxTests.cs (1)
503[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
TrackBarTests.cs (1)
2281[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
WebBrowserBaseTests.cs (1)
772[InlineData(ControlStyles.SupportsTransparentBackColor, false)]
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
74SetStyle(SWF.ControlStyles.SupportsTransparentBackColor, true);