48 references to A
System.ComponentModel.TypeConverter (4)
System\Drawing\ColorConverter.cs (4)
79if (c.A < 255) 82args[nArg++] = intConverter.ConvertToString(context, culture, (object)c.A); 109else if (c.A != 255) 112args = new object[] { c.A, c.R, c.G, c.B };
System.Drawing.Common (1)
System\Drawing\Bitmap.cs (1)
219if (transparent.A < 255)
System.Drawing.Primitives (2)
System\Drawing\Color.cs (2)
388private 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)
1083if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 1882if (color.A != 0) 1888while (color.A == 0) 2658private 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)
29buttonBorderShadowColor.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)
80LerpChannel(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)
1013if (value.A < 255) 2649if (value.A < 255)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
74if (dataGridViewCellStyle.BackColor.A < 255)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
99if (dataGridViewCellStyle.BackColor.A < 255)
System\Windows\Forms\Controls\GroupBox\GroupBox.Modern.cs (1)
332Color bodyColor = BackColor.A == 0
System\Windows\Forms\Controls\ImageList\ImageList.cs (2)
262private bool UseTransparentColor => TransparentColor.A > 0; 304if (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)
292int newAlpha = (src.A * alpha + (255 - alpha) * dest.A) / 255;
System\Windows\Forms\Rendering\Button\PopupButtonColorMath.cs (5)
76float foregroundAlpha = foreground.A / 255f; 77float backgroundAlpha = background.A / 255f; 112return Color.FromArgb(baseColor.A, r, g, b); 148Color desaturated = Blend(color, Color.FromArgb(color.A, gray, gray, gray), amount); 150return Blend(desaturated, Color.FromArgb(color.A, 128, 128, 128), amount * 0.35f);
System\Windows\Forms\Rendering\CheckBox\AnimatedCheckGlyphRenderer.cs (2)
232LerpChannel(from.A, to.A, progress),
System\Windows\Forms\Rendering\ControlPaint.cs (2)
2505Debug.Assert(replaceBlack.A == 255); 2506Debug.Assert(replaceWhite.A == 255);
System\Windows\Forms\Rendering\ModernControlColorMath.cs (1)
145=> color.A == byte.MaxValue
System\Windows\Forms\Rendering\RadioButton\AnimatedRadioGlyphRenderer.cs (2)
232LerpChannel(from.A, to.A, progress),
System.Windows.Forms.Design (4)
System\Drawing\Design\ColorEditor.StandardColorComparer.cs (4)
18if (left.A < right.A) 23if (left.A > right.A)
System.Windows.Forms.Primitives (2)
System\Windows\Forms\SystemDrawingExtensions.cs (2)
41internal static bool HasTransparency(this Color color) => color.A != byte.MaxValue; 46internal static bool IsFullyTransparent(this Color color) => color.A == 0;
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
1536if (control.BackColor != SD.Color.Empty && control.BackColor.A == 255)