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