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