120 references to Transparent
PresentationUI (4)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (3)
482
this._iconPictureBox.BackColor = System.Drawing.Color.
Transparent
;
522
this._documentDetailBox.BackColor = System.Drawing.Color.
Transparent
;
646
this._fileSystemBox.BackColor = System.Drawing.Color.
Transparent
;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
118
this.groupBoxMainContent.BackColor = System.Drawing.Color.
Transparent
;
System.Drawing.Common.Tests (4)
System\Drawing\BrushesTests.cs (1)
143
yield return Brush(() => Brushes.Transparent, Color.
Transparent
);
System\Drawing\Drawing2D\PathGradientBrushTests.cs (2)
144
brush.CenterColor = Color.
Transparent
;
145
Assert.Equal(Color.
Transparent
.ToArgb(), brush.CenterColor.ToArgb());
System\Drawing\PensTests.cs (1)
145
yield return Pen(() => Pens.Transparent, Color.
Transparent
);
System.Windows.Forms (24)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
97
Color.
Transparent
,
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
312
offscreen.Clear(Color.
Transparent
);
System\Windows\Forms\Controls\Buttons\FlatButtonAppearance.cs (1)
72
if (value.Equals(Color.
Transparent
))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1353
offscreen.Clear(Color.
Transparent
);
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
260
public Color TransparentColor { get; set; } = Color.
Transparent
;
System\Windows\Forms\Controls\ImageList\ImageList.Original.cs (4)
17
internal Color _customTransparentColor = Color.
Transparent
;
21
internal Original(object image, OriginalOptions options) : this(image, options, Color.
Transparent
)
25
internal Original(object image, OriginalOptions options, int nImages) : this(image, options, Color.
Transparent
)
42
Debug.Assert(customTransparentColor.Equals(Color.
Transparent
), "Specified a custom transparent color then told us to ignore it");
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
113
return Color.
Transparent
;
607
? Color.
Transparent
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
615
BackColor = Color.
Transparent
;
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (2)
101
if (ParentInternal is ToolStripContainer && value == Color.
Transparent
)
103
ParentInternal.BackColor = Color.
Transparent
;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1346
if (BackColor == Color.
Transparent
)
System\Windows\Forms\Rendering\ControlPaint.cs (6)
1373
g2.Clear(Color.
Transparent
);
1443
g2.Clear(Color.
Transparent
);
2104
bitmap.SetPixel(x, y, Color.
Transparent
);
2148
Color color1 = Color.
Transparent
;
2172
else if (baseColor == Color.
Transparent
)
2234
bitmap.SetPixel(x, y, Color.
Transparent
);
System\Windows\Forms\Rendering\TextExtensions.cs (2)
58
if (text.IsEmpty || foreColor == Color.
Transparent
)
72
BACKGROUND_MODE newBackGroundMode = (backColor.IsEmpty || backColor == Color.
Transparent
)
System\Windows\Forms\Rendering\TextRenderer.cs (1)
301
if (text.IsEmpty || foreColor == Color.
Transparent
)
System.Windows.Forms.Design (13)
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
20
BackColor = Color.
Transparent
,
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
23
BackColor = Color.
Transparent
,
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
25
BackColor = Color.
Transparent
,
33
BackColor = Color.
Transparent
,
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
26
BackColor = Color.
Transparent
,
34
BackColor = Color.
Transparent
,
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
22
BackColor = Color.
Transparent
,
System\Windows\Forms\Design\ComponentTray.cs (2)
1443
selectionBorderBrush = new HatchBrush(HatchStyle.Percent50, SystemColors.HighlightText, Color.
Transparent
);
1447
selectionBorderBrush = new HatchBrush(HatchStyle.Percent50, SystemColors.ControlDarkDark, Color.
Transparent
);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
2261
images.Add(value, Color.
Transparent
);
System\Windows\Forms\Design\DesignerUtils.cs (3)
236
FrameStyle.Dashed => new HatchBrush(HatchStyle.Percent50, color, Color.
Transparent
),
396
if (control.BackColor == Color.
Transparent
)
428
if (control.BackColor == Color.
Transparent
)
System.Windows.Forms.Primitives.Tests (1)
Interop\GdiPlus\ARGBTests.cs (1)
42
Color.
Transparent
,
System.Windows.Forms.Tests (60)
System\Windows\Forms\AbstractButtonBaseTests.cs (1)
17
control.Invoking(y => y.FlatAppearance.BorderColor = Color.
Transparent
)
System\Windows\Forms\ControlPaintTests.cs (18)
19
yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), Color.
Transparent
};
20
yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), Color.
Transparent
};
21
yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), Color.
Transparent
};
550
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.
Transparent
, style };
1194
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.
Transparent
, Color.Blue };
1198
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, Color.
Transparent
};
1270
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), Color.
Transparent
};
1313
yield return new object[] { new Bitmap(10, 10), 0, 0, Color.
Transparent
};
1321
yield return new object[] { new Metafile("bitmaps/telescope_01.wmf"), 0, 0, Color.
Transparent
};
1417
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.
Transparent
, Color.Blue };
1421
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Red, Color.
Transparent
};
1688
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.
Transparent
, style };
1717
yield return new object[] { new Point(1, 2), new Point(2, 3), Color.
Transparent
};
1825
yield return new object[] { active, new Rectangle(0, 1, 4, 5), new Rectangle(1, 2, 3, 4), Color.
Transparent
};
1859
yield return new object[] { Color.
Transparent
, new Rectangle(1, 2, 3, 4) };
1906
yield return new object[] { s, SystemFonts.MenuFont, Color.
Transparent
, new RectangleF(1, 2, 3, 4), new StringFormat() };
1954
yield return new object[] { s, SystemFonts.MenuFont, Color.
Transparent
, new Rectangle(1, 2, 3, 4), TextFormatFlags.VerticalCenter };
2017
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.
Transparent
};
System\Windows\Forms\FormTests.cs (8)
1270
yield return new object[] { allowTransparency, Color.
Transparent
, true };
1302
yield return new object[] { allowTransparency, Color.
Transparent
};
1336
yield return new object[] { allowTransparency, Color.
Transparent
};
1369
yield return new object[] { allowTransparency, Color.
Transparent
};
1453
yield return new object[] { Color.
Transparent
, true, 2 };
1527
yield return new object[] { Color.
Transparent
};
1775
yield return new object[] { true, Color.
Transparent
, true, 0 };
1779
yield return new object[] { false, Color.
Transparent
, true, 2 };
System\Windows\Forms\ImageList.ImageCollectionTests.cs (8)
240
foreach (Color transparentColor in new Color[] { Color.
Transparent
, Color.FromArgb(0x12, 0x34, 0x56, 0x78), Color.Empty, Color.Black })
420
foreach (Color transparentColor in new Color[] { Color.
Transparent
, Color.FromArgb(0x12, 0x34, 0x56, 0x78), Color.Empty, Color.Black })
575
foreach (Color listTransparentColor in new Color[] { Color.
Transparent
, Color.FromArgb(0x12, 0x34, 0x56, 0x78), Color.Empty, Color.Black })
577
foreach (Color transparentColor in new Color[] { Color.
Transparent
, Color.FromArgb(0x12, 0x34, 0x56, 0x78), Color.Empty, Color.Black })
644
foreach (Color transparentColor in new Color[] { Color.
Transparent
, Color.FromArgb(0x12, 0x34, 0x56, 0x78), Color.Empty, Color.Black })
794
Assert.Throws<ArgumentNullException>("value", () => collection.Add(null, Color.
Transparent
));
808
Assert.Throws<ArgumentException>(() => collection.Add(value, Color.
Transparent
));
889
foreach (Color transparentColor in new Color[] { Color.
Transparent
, Color.FromArgb(0x12, 0x34, 0x56, 0x78), Color.Empty, Color.Black })
System\Windows\Forms\ImageListTests.cs (4)
25
Assert.Equal(Color.
Transparent
, list.TransparentColor);
43
Assert.Equal(Color.
Transparent
, list.TransparentColor);
781
Assert.Equal(Color.
Transparent
, list.TransparentColor);
798
Assert.Equal(Color.
Transparent
, list.TransparentColor);
System\Windows\Forms\ListViewTests.cs (1)
5053
imagecollection.TransparentColor = Color.
Transparent
;
System\Windows\Forms\StatusStripTests.cs (1)
1187
Assert.Equal(Color.
Transparent
, grip.BackColor);
System\Windows\Forms\TabPageTests.cs (2)
599
Assert.Equal(Color.
Transparent
, control.BackColor);
611
yield return new object[] { true, TabAppearance.Normal, Color.
Transparent
};
System\Windows\Forms\TextRendererTests.cs (12)
25
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.
Transparent
};
54
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.
Transparent
, Color.Blue };
59
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Transparent
};
88
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.
Transparent
, TextFormatFlags.Default, };
125
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.
Transparent
, Color.Blue, TextFormatFlags.Default, };
130
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Transparent
, TextFormatFlags.Default, };
169
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Transparent
};
200
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Transparent
, Color.Blue };
205
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Transparent
};
236
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Transparent
, TextFormatFlags.Default, };
276
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Transparent
, Color.Blue, TextFormatFlags.Default, };
281
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Transparent
, TextFormatFlags.Default, };
System\Windows\Forms\ToolStripContentPanelTests.cs (5)
627
yield return new object[] { Color.
Transparent
, Color.
Transparent
};
659
yield return new object[] { Color.
Transparent
, Color.
Transparent
, Color.
Transparent
};
TrimTestBinaryDeserialization (1)
Form1.Designer.cs (1)
42
imageList1.TransparentColor = Color.
Transparent
;
WinFormsControlsTest (13)
ChartControl.Designer.cs (9)
128
chartArea1.ShadowColor = System.Drawing.Color.
Transparent
;
131
legend1.BackColor = System.Drawing.Color.
Transparent
;
210
chartArea2.ShadowColor = System.Drawing.Color.
Transparent
;
280
chartArea3.ShadowColor = System.Drawing.Color.
Transparent
;
282
legend3.BackColor = System.Drawing.Color.
Transparent
;
343
chartArea4.BackColor = System.Drawing.Color.
Transparent
;
345
chartArea4.BackSecondaryColor = System.Drawing.Color.
Transparent
;
348
chartArea4.ShadowColor = System.Drawing.Color.
Transparent
;
351
legend4.BackColor = System.Drawing.Color.
Transparent
;
ListViewTest.Designer.cs (3)
52
this.imageList1.TransparentColor = System.Drawing.Color.
Transparent
;
103
this.imageList2.TransparentColor = System.Drawing.Color.
Transparent
;
131
this.LargeImageList.TransparentColor = System.Drawing.Color.
Transparent
;
TreeViewTest.Designer.cs (1)
56
this.imageList1.TransparentColor = System.Drawing.Color.
Transparent
;