20 references to SupportsTransparentBackColor
System.Windows.Forms (19)
System\Windows\Forms\Control.cs (4)
904
if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.
SupportsTransparentBackColor
) && value.A < 255)
2479
private bool IsValidBackColor(Color c) => c.IsEmpty || GetStyle(ControlStyles.
SupportsTransparentBackColor
) || c.A == 255;
2863
=> GetStyle(ControlStyles.
SupportsTransparentBackColor
) && BackColor.A < 255;
2866
=> 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
|
339
| ControlStyles.
SupportsTransparentBackColor
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
111
SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.
SupportsTransparentBackColor
, true);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
617
SetStyle(ControlStyles.
SupportsTransparentBackColor
, true);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
130
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);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
70
SetStyle(SWF.ControlStyles.
SupportsTransparentBackColor
, true);