48 references to A
System.ComponentModel.TypeConverter (4)
System\Drawing\ColorConverter.cs (4)
79
if (c.
A
< 255)
82
args[nArg++] = intConverter.ConvertToString(context, culture, (object)c.
A
);
109
else if (c.
A
!= 255)
112
args = new object[] { c.
A
, c.R, c.G, c.B };
System.Drawing.Common (1)
System\Drawing\Bitmap.cs (1)
219
if (transparent.
A
< 255)
System.Drawing.Primitives (2)
System\Drawing\Color.cs (2)
388
private string NameAndARGBValue => $"{{Name = {Name}, ARGB = ({
A
}, {R}, {G}, {B})}}";
579
(state & StateValueMask) != 0 ? $"{nameof(Color)} [A={
A
}, R={R}, G={G}, B={B}]" :
System.Windows.Forms (34)
System\Windows\Forms\Control.cs (6)
1083
if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.
A
< 255)
1882
if (color.
A
!= 0)
1888
while (color.
A
== 0)
2658
private bool IsValidBackColor(Color c) => c.IsEmpty || GetStyle(ControlStyles.SupportsTransparentBackColor) || c.
A
== 255;
3042
=> GetStyle(ControlStyles.SupportsTransparentBackColor) && BackColor.
A
< 255;
3045
=> GetStyle(ControlStyles.SupportsTransparentBackColor) && c.
A
< 255;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
29
buttonBorderShadowColor.
A
,
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxModernAdapter.cs (1)
94
&& Control.BackColor.
A
== byte.MaxValue
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonBackColorAnimator.cs (2)
80
LerpChannel(from.
A
, to.
A
, progress),
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonModernAdapter.cs (1)
93
&& Control.BackColor.
A
== byte.MaxValue
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (1)
467
=> comboBox.BackColor.
A
== byte.MaxValue
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
1013
if (value.
A
< 255)
2649
if (value.
A
< 255)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
74
if (dataGridViewCellStyle.BackColor.
A
< 255)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
99
if (dataGridViewCellStyle.BackColor.
A
< 255)
System\Windows\Forms\Controls\GroupBox\GroupBox.Modern.cs (1)
332
Color bodyColor = BackColor.
A
== 0
System\Windows\Forms\Controls\ImageList\ImageList.cs (2)
262
private bool UseTransparentColor => TransparentColor.
A
> 0;
304
if (transparent.
A
> 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
69
=> Color.FromArgb(color.
A
, (byte)~color.R, (byte)~color.G, (byte)~color.B);
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (2)
292
int newAlpha = (src.
A
* alpha + (255 - alpha) * dest.
A
) / 255;
System\Windows\Forms\Rendering\Button\PopupButtonColorMath.cs (5)
76
float foregroundAlpha = foreground.
A
/ 255f;
77
float backgroundAlpha = background.
A
/ 255f;
112
return Color.FromArgb(baseColor.
A
, r, g, b);
148
Color desaturated = Blend(color, Color.FromArgb(color.
A
, gray, gray, gray), amount);
150
return Blend(desaturated, Color.FromArgb(color.
A
, 128, 128, 128), amount * 0.35f);
System\Windows\Forms\Rendering\CheckBox\AnimatedCheckGlyphRenderer.cs (2)
232
LerpChannel(from.
A
, to.
A
, progress),
System\Windows\Forms\Rendering\ControlPaint.cs (2)
2505
Debug.Assert(replaceBlack.
A
== 255);
2506
Debug.Assert(replaceWhite.
A
== 255);
System\Windows\Forms\Rendering\ModernControlColorMath.cs (1)
145
=> color.
A
== byte.MaxValue
System\Windows\Forms\Rendering\RadioButton\AnimatedRadioGlyphRenderer.cs (2)
232
LerpChannel(from.
A
, to.
A
, progress),
System.Windows.Forms.Design (4)
System\Drawing\Design\ColorEditor.StandardColorComparer.cs (4)
18
if (left.
A
< right.
A
)
23
if (left.
A
> right.
A
)
System.Windows.Forms.Primitives (2)
System\Windows\Forms\SystemDrawingExtensions.cs (2)
41
internal static bool HasTransparency(this Color color) => color.
A
!= byte.MaxValue;
46
internal static bool IsFullyTransparent(this Color color) => color.
A
== 0;
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
1536
if (control.BackColor != SD.Color.Empty && control.BackColor.
A
== 255)