32 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 (18)
System\Windows\Forms\Control.cs (6)
904if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 1703if (color.A != 0) 1709while (color.A == 0) 2479private 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\ButtonInternal\ButtonBaseAdapter.cs (1)
28buttonBorderShadowColor.A,
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\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\ControlPaint.cs (2)
2505Debug.Assert(replaceBlack.A == 255); 2506Debug.Assert(replaceWhite.A == 255);
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)