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