119 references to SupportsTransparentBackColor
System.Windows.Forms (19)
System\Windows\Forms\Control.cs (4)
809
if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.
SupportsTransparentBackColor
) && value.A < 255)
2391
private 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)
67
ControlStyles.
SupportsTransparentBackColor
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
388
SetStyle(ControlStyles.
SupportsTransparentBackColor
, false);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
34
SetStyle(ControlStyles.
SupportsTransparentBackColor
| ControlStyles.UserPaint |
199
SetStyle(ControlStyles.
SupportsTransparentBackColor
|
System\Windows\Forms\Controls\Labels\Label.cs (2)
69
ControlStyles.
SupportsTransparentBackColor
|
341
| ControlStyles.
SupportsTransparentBackColor
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
112
SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.
SupportsTransparentBackColor
, true);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
614
SetStyle(ControlStyles.
SupportsTransparentBackColor
, true);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
131
ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.
SupportsTransparentBackColor
,
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
21
SetStyle(ControlStyles.ResizeRedraw | ControlStyles.
SupportsTransparentBackColor
, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
27
SetStyle(ControlStyles.ResizeRedraw | ControlStyles.
SupportsTransparentBackColor
, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
51
SetStyle(ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer | /*ControlStyles.AllPaintingInWmPaint |*/ControlStyles.
SupportsTransparentBackColor
, true);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
102
SetStyle(ControlStyles.
SupportsTransparentBackColor
, true);
System\Windows\Forms\Panels\Panel.cs (1)
32
SetStyle(ControlStyles.
SupportsTransparentBackColor
, true);
System\Windows\Forms\UserControl.cs (1)
34
SetStyle(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)
1462
[InlineData(ControlStyles.
SupportsTransparentBackColor
, false)]
System\Windows\Forms\ContainerControlTests.cs (1)
520
[InlineData(ControlStyles.
SupportsTransparentBackColor
, false)]
System\Windows\Forms\ControlTests.Handlers.cs (13)
2806
child1.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackgroundColor);
2808
child2.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackgroundColor);
2906
child1.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackgroundColor);
2908
child2.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackgroundColor);
2983
child1.SetStyle(ControlStyles.
SupportsTransparentBackColor
, true);
3275
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, true);
3277
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackgroundColor);
3706
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, true);
3708
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackgroundColor);
3859
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackColor);
3985
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackColor);
4031
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackColor);
4116
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackColor);
System\Windows\Forms\ControlTests.Methods.cs (6)
2864
[InlineData(ControlStyles.
SupportsTransparentBackColor
, false)]
4313
otherControl.SetStyle(ControlStyles.
SupportsTransparentBackColor
, true);
4597
child1.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackgroundColor);
4599
child2.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackgroundColor);
4697
child1.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackgroundColor);
4699
child2.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackgroundColor);
System\Windows\Forms\ControlTests.Properties.cs (7)
1273
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, true);
7060
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, true);
7062
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackgroundColor);
7545
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, true);
7547
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackgroundColor);
12492
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, true);
12494
control.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)
630
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
SupportsTransparentBackColor
));
640
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
SupportsTransparentBackColor
));
675
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
SupportsTransparentBackColor
));
684
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
SupportsTransparentBackColor
));
717
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
SupportsTransparentBackColor
));
730
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
SupportsTransparentBackColor
));
771
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
SupportsTransparentBackColor
));
784
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
SupportsTransparentBackColor
));
834
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
SupportsTransparentBackColor
));
847
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
SupportsTransparentBackColor
));
898
Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.
SupportsTransparentBackColor
));
911
Assert.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)]
1539
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackColor);
1688
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackColor);
1738
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackColor);
1832
control.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)
2283
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, true);
2285
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackgroundColor);
3783
[InlineData(ControlStyles.
SupportsTransparentBackColor
, true)]
3981
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackColor);
4061
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackColor);
4107
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackColor);
4200
control.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)]
5880
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackColor);
6029
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackColor);
6078
control.SetStyle(ControlStyles.
SupportsTransparentBackColor
, supportsTransparentBackColor);
6171
control.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)
74
SetStyle(SWF.ControlStyles.
SupportsTransparentBackColor
, true);