29 references to HasTransparency
System.Windows.Forms (29)
System\Windows\Forms\Control.cs (1)
8200
if (!color.
HasTransparency
())
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
338
if (color.
HasTransparency
())
434
if (color.
HasTransparency
())
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
75
if (color.
HasTransparency
())
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
687
if (paint && PaintBackground(paintParts) && !backBrushColor.
HasTransparency
())
766
if (!backBrushColor.
HasTransparency
())
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1122
if (paint && PaintBackground(paintParts) && !brushColor.
HasTransparency
())
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
870
if (!brushColor.
HasTransparency
())
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (5)
1927
using var brush = paint && !brushColor.
HasTransparency
() ? brushColor.GetCachedSolidBrushScope() : default;
1929
if (paint && PaintBackground(paintParts) && !brushColor.
HasTransparency
() && valBounds.Width > 0 && valBounds.Height > 0)
1953
if (paintPostXPThemes && PaintBackground(paintParts) && !brushColor.
HasTransparency
())
1971
PaintBackground(paintParts) && !brushColor.
HasTransparency
() && valBounds.Width > 2 && valBounds.Height > 2)
1976
else if (PaintBackground(paintParts) && !brushColor.
HasTransparency
())
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
547
if (!backColor.
HasTransparency
())
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (2)
787
if (paint && !brushColor.
HasTransparency
() && PaintBackground(paintParts))
856
if (PaintBackground(paintParts) && !brushColor.
HasTransparency
())
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
914
if (paint && PaintBackground(paintParts) && !brushColor.
HasTransparency
())
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
739
if (paint && PaintBackground(paintParts) && !brushColor.
HasTransparency
())
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
687
if (paint && PaintBackground(paintParts) && !brushColor.
HasTransparency
() && notCollapsed)
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (1)
268
if (!brushColor.
HasTransparency
())
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
558
if (boxColor.
HasTransparency
())
666
if (backColor.
HasTransparency
())
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
613
if (!backColor.
HasTransparency
())
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2362
if (color.
HasTransparency
())
System\Windows\Forms\Rendering\ControlPaint.cs (5)
713
if (!topColor.
HasTransparency
() && topStyle == ButtonBorderStyle.Solid)
772
if (!leftColor.
HasTransparency
() && leftStyle == ButtonBorderStyle.Solid)
831
if (!bottomColor.
HasTransparency
() && bottomStyle == ButtonBorderStyle.Solid)
905
if (!rightColor.
HasTransparency
() && rightStyle == ButtonBorderStyle.Solid)
1145
if (color.
HasTransparency
() || style != ButtonBorderStyle.Solid)