733 references to Empty
BinaryFormatTests (1)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (1)
200Color.Empty,
System.ComponentModel.TypeConverter (2)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
20return Color.Empty;
System\Drawing\ColorConverter.cs (1)
56if (c == Color.Empty)
System.Drawing.Common.Tests (43)
mono\System.Drawing\GraphicsTests.cs (1)
63int empty = Color.Empty.ToArgb();
System\Drawing\ColorTranslatorTests.cs (4)
143yield return new object[] { null, Color.Empty }; 144yield return new object[] { "", Color.Empty }; 145yield return new object[] { " ", Color.Empty }; 237yield return new object[] { Color.Empty, "" };
System\Drawing\Drawing2D\HatchBrushTests.cs (3)
52AssertExtensions.Throws<ArgumentException>("hatchstyle", null, () => new HatchBrush(hatchStyle, Color.Empty)); 53AssertExtensions.Throws<ArgumentException>("hatchstyle", null, () => new HatchBrush(hatchStyle, Color.Empty, Color.Empty));
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (33)
10yield return new object[] { new Point(0, 0), new Point(2, 2), Color.Empty, Color.Empty, new RectangleF(0, 0, 2, 2) }; 11yield return new object[] { new Point(1, 0), new Point(0, 0), Color.Empty, Color.Red, new RectangleF(0, -0.5f, 1, 1) }; 75yield return new object[] { new Rectangle(0, 0, 1, 2), Color.Empty, Color.Red, LinearGradientMode.BackwardDiagonal }; 117yield return new object[] { new Rectangle(0, 0, 1, 2), Color.Empty, Color.Red, 90 }; 204AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new Rectangle(1, 2, 0, 4), Color.Empty, Color.Empty, 0f)); 205AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 0, 4), Color.Empty, Color.Empty, 0f)); 206AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new Rectangle(1, 2, 0, 4), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal)); 207AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 0, 4), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal)); 208AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new Rectangle(1, 2, 0, 4), Color.Empty, Color.Empty, 0, true)); 209AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 0, 4), Color.Empty, Color.Empty, 0, true)); 215AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new Rectangle(1, 2, 3, 0), Color.Empty, Color.Empty, 0f)); 216AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 3, 0), Color.Empty, Color.Empty, 0f)); 217AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new Rectangle(1, 2, 3, 0), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal)); 218AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 3, 0), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal)); 219AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new Rectangle(1, 2, 3, 0), Color.Empty, Color.Empty, 0, true)); 220AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 3, 0), Color.Empty, Color.Empty, 0, true)); 228Assert.ThrowsAny<ArgumentException>(() => new LinearGradientBrush(new Rectangle(1, 2, 3, 4), Color.Empty, Color.Empty, linearGradientMode)); 229Assert.ThrowsAny<ArgumentException>(() => new LinearGradientBrush(new RectangleF(1, 2, 3, 4), Color.Empty, Color.Empty, linearGradientMode));
System\Drawing\Drawing2D\PathGradientBrushTests.cs (2)
546Color[] defaultColors = [Color.Empty]; 946Assert.Equal(new Color[] { Color.Empty }, brush.InterpolationColors.Colors);
System.Drawing.Primitives (2)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
20return Color.Empty;
System\Drawing\ColorTranslator.cs (1)
224Color c = Color.Empty;
System.Private.Windows.Core (1)
System\Value.PackedColor.cs (1)
54: _state == 0 ? Color.Empty : Color.FromArgb(_argb);
System.Private.Windows.Core.TestUtilities (1)
CommonTestHelper.cs (1)
71Color.Empty
System.Windows.Forms (157)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
190return property.Value is null ? Color.Empty : (Color)property.Value; 251return property.Value is null ? Color.Empty : (Color)property.Value;
System\Windows\Forms\Control.cs (5)
809if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 2949Color oldBackColor = Color.Empty; 2950Color oldForeColor = Color.Empty; 9032BackColor = Color.Empty; 9061ForeColor = Color.Empty;
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
161if (value != Color.Empty)
System\Windows\Forms\Controls\Buttons\FlatButtonAppearance.cs (4)
16private Color _borderColor = Color.Empty; 17private Color _checkedBackColor = Color.Empty; 18private Color _mouseDownBackColor = Color.Empty; 19private Color _mouseOverBackColor = Color.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (8)
1971else if (_defaultCellStyle.BackColor == Color.Empty 1972|| _defaultCellStyle.ForeColor == Color.Empty 1973|| _defaultCellStyle.SelectionBackColor == Color.Empty 1974|| _defaultCellStyle.SelectionForeColor == Color.Empty 1983if (_defaultCellStyle.BackColor == Color.Empty) 1988if (_defaultCellStyle.ForeColor == Color.Empty) 1994if (_defaultCellStyle.SelectionBackColor == Color.Empty) 1999if (_defaultCellStyle.SelectionForeColor == Color.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
890ControlPaint.DrawFocusRectangle(g, Rectangle.Inflate(valBounds, -1, -1), Color.Empty, cellStyle.ForeColor); 953Color.Empty,
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (4)
1893inheritedCellStyleTmp.BackColor = Color.Empty; 1894inheritedCellStyleTmp.ForeColor = Color.Empty; 1895inheritedCellStyleTmp.SelectionBackColor = Color.Empty; 1896inheritedCellStyleTmp.SelectionForeColor = Color.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (5)
160get => Properties.TryGetValue(s_propForeColor, out Color color) ? color : Color.Empty; 538if (BackColor != Color.Empty) 544if (ForeColor != Color.Empty) 555if (SelectionBackColor != Color.Empty) 566if (SelectionForeColor != Color.Empty)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (3)
2270ControlPaint.DrawFocusRectangle(g, focusBounds, Color.Empty, cellStyle.ForeColor); 2281ControlPaint.DrawFocusRectangle(g, focusBounds, Color.Empty, cellStyle.ForeColor); 2286ControlPaint.DrawFocusRectangle(g, textBounds, Color.Empty, cellStyle.ForeColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
897ControlPaint.DrawFocusRectangle(g, valBounds, Color.Empty, brushColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (3)
1003ControlPaint.DrawFocusRectangle(g, focusBounds, Color.Empty, brushColor); 1044ControlPaint.DrawFocusRectangle(g, errorBounds, Color.Empty, brushColor); 1059ControlPaint.DrawFocusRectangle(g, valBounds, Color.Empty, brushColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
1197ControlPaint.DrawFocusRectangle(graphics, bounds, Color.Empty, backColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
711ControlPaint.DrawFocusRectangle(graphics, valBounds, Color.Empty, cellStyle.ForeColor);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (11)
23private static Color s_iedisabledLinkColor = Color.Empty; 29private Color _linkColor = Color.Empty; 30private Color _activeLinkColor = Color.Empty; 31private Color _visitedLinkColor = Color.Empty; 32private Color _disabledLinkColor = Color.Empty; 1256Color brushColor = Color.Empty; 1285if (brushColor == Color.Empty) 1528internal void ResetActiveLinkColor() => _activeLinkColor = Color.Empty; 1530internal void ResetDisabledLinkColor() => _disabledLinkColor = Color.Empty; 1534_linkColor = Color.Empty; 1538private void ResetVisitedLinkColor() => _visitedLinkColor = Color.Empty;
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (3)
13private static Color s_ielinkColor = Color.Empty; 14private static Color s_ieactiveLinkColor = Color.Empty; 15private static Color s_ievisitedLinkColor = Color.Empty;
System\Windows\Forms\Controls\ListView\ListView.cs (4)
2780Color subItemForeColor = Color.Empty; 2781Color subItemBackColor = Color.Empty; 2811Color riFore = Color.Empty; 2812Color riBack = Color.Empty;
System\Windows\Forms\Controls\ListView\ListViewInsertionMark.cs (1)
16private Color _color = Color.Empty;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.cs (2)
75if (style is not null && style.backColor != Color.Empty) 168if (style is not null && style.foreColor != Color.Empty)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.SubItemStyle.cs (2)
15public Color backColor = Color.Empty; // Do NOT rename (binary serialization). 17public Color foreColor = Color.Empty; // Do NOT rename (binary serialization).
System\Windows\Forms\Controls\ListView\ListViewItemConverter.cs (4)
97item.SubItems[0].CustomForeColor ? item.ForeColor : Color.Empty, 98item.SubItems[0].CustomBackColor ? item.BackColor : Color.Empty, 117item.SubItems[0].CustomForeColor ? item.ForeColor : Color.Empty, 118item.SubItems[0].CustomBackColor ? item.BackColor : Color.Empty,
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (4)
3700=> _commandsPane.SetColors(SystemColors.Control, SystemColors.ControlText, Color.Empty, Color.Empty, Color.Empty, Color.Empty);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (5)
836/// <returns>The color or <see cref="Color.Empty"/> if the selection has more than one color.</returns> 844Color selColor = Color.Empty; 880Color selColor = Color.Empty; 914if (value == Color.Empty) 2445if (_selectionBackColorToSetOnHandleCreated != Color.Empty)
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
123if (value != Color.Empty)
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (1)
375Color empty = Color.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripArrowRenderEventArgs.cs (1)
10private Color _arrowColor = Color.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (9)
43private Color _imageTransparentColor = Color.Empty; 526Properties.AddOrRemoveValue(s_backColorProperty, value, defaultValue: Color.Empty); 1052if (value is Bitmap bmp && ImageTransparentColor != Color.Empty) 1089if (Image is Bitmap currentImage && value != Color.Empty) 1617internal Color RawBackColor => Properties.GetValueOrDefault<Color>(s_backColorProperty, Color.Empty); 3286private bool ShouldSerializeImageTransparentColor() => ImageTransparentColor != Color.Empty; 3376public virtual void ResetBackColor() => BackColor = Color.Empty; 3385public virtual void ResetForeColor() => ForeColor = Color.Empty; 3400private void ResetImageTransparentColor() => ImageTransparentColor = Color.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (3)
20private Color _linkColor = Color.Empty; 21private Color _activeLinkColor = Color.Empty; 22private Color _visitedLinkColor = Color.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
1023return (control.RawBackColor == Color.Empty && control.BackgroundImage is null);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (3)
16: this(g, toolStrip, new Rectangle(Point.Empty, toolStrip.OrThrowIfNull().Size), Color.Empty) 57if (_backColor != Color.Empty) 70if (_backColor != Color.Empty)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (2)
430else if (item.RawBackColor != Color.Empty) 475else if (!ToolStripManager.VisualStylesEnabled && (item.RawBackColor != Color.Empty))
System\Windows\Forms\Controls\TreeView\TreeNode.cs (6)
183return Color.Empty; 198_propBag.BackColor = Color.Empty; 410return Color.Empty; 424_propBag.ForeColor = Color.Empty; 2040return BackColor != Color.Empty; 2045return ForeColor != Color.Empty;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
1899if (_lineColor != Color.Empty) 2841Color color = (((curState & TreeNodeStates.Selected) == TreeNodeStates.Selected) && node.TreeView.Focused) ? SystemColors.HighlightText : (node.ForeColor != Color.Empty) ? node.ForeColor : node.TreeView.ForeColor;
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (6)
183return Color.Empty; 208return Color.Empty; 233return Color.Empty; 258return Color.Empty; 283return Color.Empty; 675return Color.Empty;
System\Windows\Forms\Form.cs (16)
377Properties.AddValue(s_propTransparencyKey, Color.Empty); 1596_formState[s_formStateLayered] = (TransparencyKey != Color.Empty) ? 1 : 0; 2006get => Properties.GetValueOrDefault(s_propTransparencyKey, Color.Empty); 2009Properties.AddOrRemoveValue(s_propTransparencyKey, value, defaultValue: Color.Empty); 2013if (value != Color.Empty) 2257/// The <see cref="Color"/> which has be previously set using this property or <see cref="Color.Empty"/>. 2281get => Properties.GetValueOrDefault(s_propFormBorderColor, Color.Empty); 2289Properties.AddOrRemoveValue(s_propFormBorderColor, value, defaultValue: Color.Empty); 2319/// The <see cref="Color"/>, which has be previously set using this property or <see cref="Color.Empty"/>. 2343get => Properties.GetValueOrDefault(s_propFormCaptionBackColor, Color.Empty); 2351Properties.AddOrRemoveValue(s_propFormCaptionBackColor, value, defaultValue: Color.Empty); 2382/// The <see cref="Color"/>, which has be previously set using this property or <see cref="Color.Empty"/>. 2406get => Properties.GetValueOrDefault(s_propFormCaptionTextColor, Color.Empty); 2414Properties.AddOrRemoveValue(s_propFormCaptionTextColor, value, defaultValue: Color.Empty); 4956private void ResetTransparencyKey() => TransparencyKey = Color.Empty; 5894return !TransparencyKey.Equals(Color.Empty);
System\Windows\Forms\Rendering\ControlPaint.cs (18)
1192Color.Empty, 1193Color.Empty); 1221Color.Empty, 1222Color.Empty); 1247Color.Empty, 1248Color.Empty); 1267Color.Empty, 1268Color.Empty); 1451if (foreColor == Color.Empty || backColor == Color.Empty) 1724=> DrawFrameControl(graphics, x, y, width, height, DFC_TYPE.DFC_MENU, (DFCS_STATE)glyph, Color.Empty, Color.Empty); 1756Color.Empty, 1757Color.Empty); 1776Color.Empty, 1777Color.Empty); 1860Color.Empty, 1861Color.Empty);
System\Windows\Forms\Rendering\TextExtensions.cs (2)
47/// <param name="backColor">If <see cref="Color.Empty"/>, the hdc current background color is used.</param> 48/// <param name="foreColor">If <see cref="Color.Empty"/>, the hdc current foreground color is used.</param>
System\Windows\Forms\Rendering\TextRenderer.cs (10)
26=> DrawTextInternal(dc, text, font, pt, foreColor, Color.Empty); 38=> DrawTextInternal(dc, text, font, pt, foreColor, Color.Empty); 75=> DrawTextInternal(dc, text, font, pt, foreColor, Color.Empty, flags); 104Color.Empty, 150=> DrawTextInternal(dc, text, font, bounds, foreColor, Color.Empty); 167=> DrawTextInternal(dc, text, font, bounds, foreColor, Color.Empty); 205=> DrawTextInternal(dc, text, font, bounds, foreColor, Color.Empty, flags); 234Color.Empty, 319=> DrawTextInternal(e, text, font, bounds, foreColor, Color.Empty, flags); 353=> DrawTextInternal(hdc, text, font, bounds, foreColor, fontQuality, Color.Empty, flags);
System.Windows.Forms.Design (9)
System\Drawing\Design\ColorEditor.cs (1)
31if (_colorUI.Value is Color colorValue && colorValue != Color.Empty)
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (1)
114Color = Color.Empty;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
937Color backColor = primaryParent is not null ? primaryParent.BackColor : Color.Empty;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
632Color backColor = targetControl.Parent is not null ? targetControl.Parent.BackColor : Color.Empty;
System\Windows\Forms\Design\DesignerUtils.cs (3)
191if (backColor != Color.Empty && backColor.GetBrightness() < .5) 215if (backColor != Color.Empty && backColor.GetBrightness() < .5) 229if (backColor != Color.Empty && backColor.GetBrightness() < .5)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1326BackColor = Color.Empty;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
441if (backColor != Color.Empty && backColor.GetBrightness() < .5)
System.Windows.Forms.Design.Tests (1)
System\Drawing\Design\ColorEditorTests.cs (1)
24yield return new object[] { Color.Empty };
System.Windows.Forms.Tests (511)
System\Windows\Forms\AmbientPropertiesTests.cs (2)
16Assert.Equal(Color.Empty, property.BackColor); 19Assert.Equal(Color.Empty, property.ForeColor);
System\Windows\Forms\ButtonBaseTests.cs (6)
695yield return new object[] { Color.Empty, Control.DefaultBackColor, 1 }; 751control.BackColor = Color.Empty; 1032Assert.Equal(Color.Empty, appearance.BorderColor); 1034Assert.Equal(Color.Empty, appearance.CheckedBackColor); 1035Assert.Equal(Color.Empty, appearance.MouseDownBackColor); 1036Assert.Equal(Color.Empty, appearance.MouseOverBackColor);
System\Windows\Forms\ColorDialogTests.cs (2)
42Assert.Equal(Color.Empty, dialog.Color); 107yield return new object[] { Color.Empty, Color.Black };
System\Windows\Forms\ComboBoxTests.cs (6)
165yield return new object[] { Color.Empty, SystemColors.Window }; 188yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 265control.BackColor = Color.Empty; 1047yield return new object[] { Color.Empty, SystemColors.WindowText }; 1073yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1133control.ForeColor = Color.Empty;
System\Windows\Forms\ControlPaintTests.cs (23)
13yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), Color.Empty }; 14yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), Color.Empty }; 15yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), Color.Empty }; 542yield return new object[] { Rectangle.Empty, Color.Empty, style }; 543yield return new object[] { new Rectangle(1, 2, -3, -4), Color.Empty, style }; 551yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Empty, style }; 1193yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Empty, Color.Blue }; 1197yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, Color.Empty }; 1269yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), Color.Empty }; 1314yield return new object[] { new Bitmap(10, 10), 0, 0, Color.Empty }; 1322yield return new object[] { new Metafile("bitmaps/telescope_01.wmf"), 0, 0, Color.Empty }; 1416yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Empty, Color.Blue }; 1420yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Red, Color.Empty }; 1680yield return new object[] { Rectangle.Empty, Color.Empty, style }; 1681yield return new object[] { new Rectangle(1, 2, -3, -4), Color.Empty, style }; 1689yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Empty, style }; 1710yield return new object[] { new Point(1, 2), new Point(2, 3), Color.Empty }; 1718yield return new object[] { new Point(1, 2), new Point(2, 3), Color.Empty }; 1826yield return new object[] { active, new Rectangle(0, 1, 4, 5), new Rectangle(1, 2, 3, 4), Color.Empty }; 1858yield return new object[] { Color.Empty, new Rectangle(1, 2, 3, 4) }; 1907yield return new object[] { s, SystemFonts.MenuFont, Color.Empty, new RectangleF(1, 2, 3, 4), new StringFormat() }; 1955yield return new object[] { s, SystemFonts.MenuFont, Color.Empty, new Rectangle(1, 2, 3, 4), TextFormatFlags.VerticalCenter }; 2016yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Empty };
System\Windows\Forms\ControlTests.Handlers.cs (34)
2768yield return new object[] { true, Color.Empty, null }; 2769yield return new object[] { true, Color.Empty, new InvalidateEventArgs(Rectangle.Empty) }; 2770yield return new object[] { true, Color.Empty, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)) }; 2771yield return new object[] { true, Color.Empty, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)) }; 2781yield return new object[] { false, Color.Empty, null }; 2782yield return new object[] { false, Color.Empty, new InvalidateEventArgs(Rectangle.Empty) }; 2783yield return new object[] { false, Color.Empty, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)) }; 2784yield return new object[] { false, Color.Empty, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)) }; 2873yield return new object[] { true, Color.Empty, new InvalidateEventArgs(Rectangle.Empty), 0 }; 2874yield return new object[] { true, Color.Empty, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)), 0 }; 2875yield return new object[] { true, Color.Empty, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)), 0 }; 2883yield return new object[] { false, Color.Empty, new InvalidateEventArgs(Rectangle.Empty), 0 }; 2884yield return new object[] { false, Color.Empty, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)), 0 }; 2885yield return new object[] { false, Color.Empty, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)), 0 }; 3840yield return new object[] { true, Color.Empty, backgroundImage, backgroundImageLayout }; 3844yield return new object[] { false, Color.Empty, backgroundImage, backgroundImageLayout }; 3903yield return new object[] { parent, true, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 3907yield return new object[] { parent, false, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 3912yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3916yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3919yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3923yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 3947yield return new object[] { parent, true, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 3949yield return new object[] { parent, false, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 3956yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3958yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 3963yield return new object[] { parent, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 3965yield return new object[] { parent, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 4075yield return new object[] { true, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 4079yield return new object[] { false, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 4084yield return new object[] { true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4088yield return new object[] { false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4091yield return new object[] { true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4095yield return new object[] { false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\ControlTests.Methods.cs (14)
4559yield return new object[] { true, Color.Empty, null }; 4560yield return new object[] { true, Color.Empty, Rectangle.Empty }; 4561yield return new object[] { true, Color.Empty, new Rectangle(100, 200, 300, 400) }; 4562yield return new object[] { true, Color.Empty, new Rectangle(1, 2, 300, 400) }; 4572yield return new object[] { false, Color.Empty, null }; 4573yield return new object[] { false, Color.Empty, Rectangle.Empty }; 4574yield return new object[] { false, Color.Empty, new Rectangle(100, 200, 300, 400) }; 4575yield return new object[] { false, Color.Empty, new Rectangle(1, 2, 300, 400) }; 4664yield return new object[] { true, Color.Empty, Rectangle.Empty, 0 }; 4665yield return new object[] { true, Color.Empty, new Rectangle(100, 200, 300, 400), 0 }; 4666yield return new object[] { true, Color.Empty, new Rectangle(1, 2, 300, 400), 0 }; 4674yield return new object[] { false, Color.Empty, Rectangle.Empty, 0 }; 4675yield return new object[] { false, Color.Empty, new Rectangle(100, 200, 300, 400), 0 }; 4676yield return new object[] { false, Color.Empty, new Rectangle(1, 2, 300, 400), 0 };
System\Windows\Forms\ControlTests.Properties.cs (9)
1265yield return new object[] { Color.Empty, Control.DefaultBackColor }; 1342yield return new object[] { Color.Empty, Control.DefaultBackColor, 0 }; 1398control.BackColor = Color.Empty; 1493control.BackColor = Color.Empty; 1573control.BackColor = Color.Empty; 5383yield return new object[] { Color.Empty, Control.DefaultForeColor, 0 }; 5439control.ForeColor = Color.Empty; 5534control.ForeColor = Color.Empty; 5614control.ForeColor = Color.Empty;
System\Windows\Forms\DataGridViewCellStyleTests.cs (24)
19Assert.Equal(Color.Empty, style.BackColor); 22Assert.Equal(Color.Empty, style.ForeColor); 30Assert.Equal(Color.Empty, style.SelectionBackColor); 31Assert.Equal(Color.Empty, style.SelectionForeColor); 86Assert.Equal(Color.Empty, style.BackColor); 89Assert.Equal(Color.Empty, style.ForeColor); 97Assert.Equal(Color.Empty, style.SelectionBackColor); 98Assert.Equal(Color.Empty, style.SelectionForeColor); 154style.BackColor = Color.Empty; 155Assert.Equal(Color.Empty, style.BackColor); 312style.ForeColor = Color.Empty; 313Assert.Equal(Color.Empty, style.ForeColor); 530style.SelectionBackColor = Color.Empty; 531Assert.Equal(Color.Empty, style.SelectionBackColor); 556style.SelectionForeColor = Color.Empty; 557Assert.Equal(Color.Empty, style.SelectionForeColor); 755Assert.Equal(Color.Empty, style.BackColor); 758Assert.Equal(Color.Empty, style.ForeColor); 766Assert.Equal(Color.Empty, style.SelectionBackColor); 767Assert.Equal(Color.Empty, style.SelectionForeColor); 822Assert.Equal(Color.Empty, style.BackColor); 825Assert.Equal(Color.Empty, style.ForeColor); 833Assert.Equal(Color.Empty, style.SelectionBackColor); 834Assert.Equal(Color.Empty, style.SelectionForeColor);
System\Windows\Forms\DataGridViewTests.cs (4)
793yield return new object[] { new DataGridViewCellStyle { BackColor = Color.Empty } }; 794yield return new object[] { new DataGridViewCellStyle { ForeColor = Color.Empty } }; 795yield return new object[] { new DataGridViewCellStyle { SelectionBackColor = Color.Empty } }; 796yield return new object[] { new DataGridViewCellStyle { SelectionForeColor = Color.Empty } };
System\Windows\Forms\DataGridViewTests.Rendering.cs (3)
56State.Pen(1, Color.Empty, PEN_STYLE.PS_NULL), 87State.Pen(1, Color.Empty, PEN_STYLE.PS_NULL), 95State.Brush(Color.Empty, BRUSH_STYLE.BS_NULL),
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
156Assert.Equal(Color.Empty, control.TransparencyKey);
System\Windows\Forms\DrawItemEventArgsTests.cs (2)
38yield return new object[] { null, Rectangle.Empty, -2, DrawItemState.None - 1, Color.Empty, Color.Empty };
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (4)
13yield return new object[] { Rectangle.Empty, -2, null, (DrawItemState)(ListViewItemStates.Checked - 1), Color.Empty, Color.Empty, null }; 105yield return new object[] { new Rectangle(-1, -2, -3, -4), 0, ListViewItemStates.Default, Color.Empty, Color.Empty, null };
System\Windows\Forms\DrawToolTipEventArgsTests.cs (8)
13yield return new object[] { null, null, Rectangle.Empty, null, Color.Empty, Color.Empty, null }; 35yield return new object[] { null, null, new Rectangle(-1, -2, -3, -4), null, Color.Empty, Color.Empty, null }; 36yield return new object[] { null, null, new Rectangle(-1, -2, -3, -4), string.Empty, Color.Empty, Color.Empty, null }; 37yield return new object[] { null, null, new Rectangle(-1, -2, -3, -4), "tooltipText", Color.Empty, Color.Empty, null };
System\Windows\Forms\FontDialogTests.cs (2)
50Assert.Equal(Color.Empty, dialog.Color); 164yield return new object[] { Color.Empty, Color.Black };
System\Windows\Forms\FormTests.cs (55)
158Assert.Equal(Color.Empty, control.TransparencyKey); 315Assert.Equal(Color.Empty, control.TransparencyKey); 322Assert.Equal(Color.Empty, control.TransparencyKey); 329Assert.Equal(Color.Empty, control.TransparencyKey); 337yield return new object[] { false, Color.Empty, 1 }; 365Assert.Equal(Color.Empty, control.TransparencyKey); 380Assert.Equal(Color.Empty, control.TransparencyKey); 387Assert.Equal(Color.Empty, control.TransparencyKey); 394Assert.Equal(Color.Empty, control.TransparencyKey); 415Assert.Equal(Color.Empty, control.TransparencyKey); 425Assert.Equal(Color.Empty, control.TransparencyKey); 435Assert.Equal(Color.Empty, control.TransparencyKey); 446yield return new object[] { false, Color.Empty, 1, 1 }; 488Assert.Equal(Color.Empty, control.TransparencyKey); 515Assert.Equal(Color.Empty, control.TransparencyKey); 525Assert.Equal(Color.Empty, control.TransparencyKey); 535Assert.Equal(Color.Empty, control.TransparencyKey); 630Assert.Equal(Color.Empty, control.TransparencyKey); 637Assert.Equal(Color.Empty, control.TransparencyKey); 688Assert.Equal(Color.Empty, control.TransparencyKey); 695Assert.Equal(Color.Empty, control.TransparencyKey); 725Assert.Equal(Color.Empty, control.TransparencyKey); 735Assert.Equal(Color.Empty, control.TransparencyKey); 763Assert.Equal(Color.Empty, control.TransparencyKey); 772Assert.Equal(Color.Empty, control.TransparencyKey); 807Assert.Equal(Color.Empty, control.TransparencyKey); 816Assert.Equal(Color.Empty, control.TransparencyKey); 905Assert.Equal(Color.Empty, control.TransparencyKey); 915Assert.Equal(Color.Empty, control.TransparencyKey); 1268yield return new object[] { allowTransparency, Color.Empty, allowTransparency }; 1300yield return new object[] { allowTransparency, Color.Empty }; 1334yield return new object[] { allowTransparency, Color.Empty }; 1367yield return new object[] { allowTransparency, Color.Empty }; 1430control.TransparencyKey = Color.Empty; 1433Assert.Equal(Color.Empty, control.TransparencyKey); 1440control.TransparencyKey = Color.Empty; 1443Assert.Equal(Color.Empty, control.TransparencyKey); 1504control.TransparencyKey = Color.Empty; 1507Assert.Equal(Color.Empty, control.TransparencyKey); 1514control.TransparencyKey = Color.Empty; 1517Assert.Equal(Color.Empty, control.TransparencyKey); 1579control.TransparencyKey = Color.Empty; 1582Assert.Equal(Color.Empty, control.TransparencyKey); 1589control.TransparencyKey = Color.Empty; 1592Assert.Equal(Color.Empty, control.TransparencyKey); 1648control.TransparencyKey = Color.Empty; 1651Assert.Equal(Color.Empty, control.TransparencyKey); 1658control.TransparencyKey = Color.Empty; 1661Assert.Equal(Color.Empty, control.TransparencyKey); 1717control.TransparencyKey = Color.Empty; 1720Assert.Equal(Color.Empty, control.TransparencyKey); 1727control.TransparencyKey = Color.Empty; 1730Assert.Equal(Color.Empty, control.TransparencyKey); 1773yield return new object[] { true, Color.Empty, true, 1 }; 1777yield return new object[] { false, Color.Empty, false, 0 };
System\Windows\Forms\GroupBoxTests.cs (1)
1829foreach (Color foreColor in new Color[] { Color.Red, Color.Empty })
System\Windows\Forms\HtmlDocumentTests.cs (1)
319yield return new object[] { Color.Empty, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), "#000000" };
System\Windows\Forms\ImageList.ImageCollectionTests.cs (12)
153yield return new object[] { pixelFormat, Color.Empty, Color.Empty }; 161yield return new object[] { PixelFormat.Format1bppIndexed, Color.Empty, Color.Empty, Color.FromArgb(255, 0, 0, 0) }; 190if (pixel00Color != Color.Empty) 192if (givenPixel10Color != Color.Empty) 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 }) 889foreach (Color transparentColor in new Color[] { Color.Transparent, Color.FromArgb(0x12, 0x34, 0x56, 0x78), Color.Empty, Color.Black })
System\Windows\Forms\ListBoxTests.cs (6)
349yield return new object[] { Color.Empty, SystemColors.Window }; 372yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 429control.BackColor = Color.Empty; 1240yield return new object[] { Color.Empty, SystemColors.WindowText }; 1266yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1326control.ForeColor = Color.Empty;
System\Windows\Forms\ListViewInsertionMarkTests.cs (3)
284Assert.NotEqual(Color.Empty, insertionMark.Color); 302Assert.NotEqual(Color.Empty, insertionMark.Color); 370control.InsertionMark.Color = Color.Empty;
System\Windows\Forms\ListViewItemConverterTests.cs (8)
193new object[] { new string[] { "text3" }, 1, Color.Blue, Color.Empty, null } 199new object[] { new string[] { "text4" }, 1, Color.Empty, Color.Blue, null } 205new object[] { new string[] { "text5" }, 1, Color.Empty, Color.Empty, SystemFonts.MenuFont } 211new object[] { new string[] { "text3" }, "imageKey", Color.Blue, Color.Empty, null } 217new object[] { new string[] { "text4" }, "imageKey", Color.Empty, Color.Blue, null } 223new object[] { new string[] { "text5" }, "imageKey", Color.Empty, Color.Empty, SystemFonts.MenuFont }
System\Windows\Forms\ListViewItemTests.cs (26)
44yield return new object[] { null, null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 45yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 46yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, new ListViewGroup(), string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 82yield return new object[] { null, -1, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 83yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 84yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, new ListViewGroup(), SystemColors.WindowText, SystemColors.Window, string.Empty }; 120yield return new object[] { null, null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 121yield return new object[] { Array.Empty<string>(), null, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 122yield return new object[] { new string[] { null }, string.Empty, Color.Empty, Color.Empty, null, string.Empty, SystemColors.WindowText, SystemColors.Window, string.Empty }; 158yield return new object[] { null, -1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 159yield return new object[] { Array.Empty<string>(), 0, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 160yield return new object[] { new string[] { null }, 1, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 849yield return new object[] { Color.Empty, SystemColors.Window }; 904yield return new object[] { Color.Empty, SystemColors.WindowText };
System\Windows\Forms\ListViewSubItemCollectionTests.cs (4)
258yield return new object[] { null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 388yield return new object[] { Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window };
System\Windows\Forms\ListViewSubItemTests.cs (6)
55yield return new object[] { null, null, Color.Empty, Color.Empty, null, SystemColors.WindowText, SystemColors.Window, string.Empty }; 136yield return new object[] { Color.Empty, SystemColors.Window }; 157yield return new object[] { Color.Empty, Color.Red }; 384yield return new object[] { Color.Empty, SystemColors.WindowText }; 408yield return new object[] { Color.Empty, Color.Red };
System\Windows\Forms\ListViewTests.cs (6)
452yield return new object[] { Color.Empty, SystemColors.Window }; 475yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 542control.BackColor = Color.Empty; 1308yield return new object[] { Color.Empty, SystemColors.WindowText }; 1334yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1404control.ForeColor = Color.Empty;
System\Windows\Forms\MdiClientTests.cs (1)
131control.BackColor = Color.Empty;
System\Windows\Forms\MonthCalendarTests.cs (9)
281yield return new object[] { Color.Empty, SystemColors.Window }; 304yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 361control.BackColor = Color.Empty; 921yield return new object[] { Color.Empty, SystemColors.WindowText }; 947yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1007control.ForeColor = Color.Empty; 2768Assert.Throws<ArgumentException>("value", () => calendar.TitleBackColor = Color.Empty); 2827Assert.Throws<ArgumentException>("value", () => calendar.TitleForeColor = Color.Empty); 2981Assert.Throws<ArgumentException>("value", () => calendar.TrailingForeColor = Color.Empty);
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (4)
17Assert.Equal(Color.Empty, bag.BackColor); 19Assert.Equal(Color.Empty, bag.ForeColor); 98Assert.Equal(Color.Empty, bag.BackColor); 100Assert.Equal(Color.Empty, bag.ForeColor);
System\Windows\Forms\PictureBoxTests.cs (1)
456control.ForeColor = Color.Empty;
System\Windows\Forms\ProgressBarTests.cs (2)
554yield return new object[] { Color.Empty, ProgressBar.DefaultForeColor, 1 }; 610control.ForeColor = Color.Empty;
System\Windows\Forms\PropertyGridTests.cs (9)
304yield return new object[] { Color.Empty, Control.DefaultBackColor, 0 }; 364control.BackColor = Color.Empty; 698yield return new object[] { Color.Empty }; 861yield return new object[] { Color.Empty, Color.Red }; 1109yield return new object[] { Color.Empty, Color.FromArgb(255, 133, 133, 133) }; 1272yield return new object[] { Color.Empty, Color.FromArgb(255, 0, 0, 255) }; 1632yield return new object[] { Color.Empty, Control.DefaultForeColor, 0 }; 1689control.ForeColor = Color.Empty; 3367yield return new object[] { Color.Empty, SystemColors.ControlText };
System\Windows\Forms\RichTextBoxTests.cs (22)
119Assert.Equal(Color.Empty, control.SelectionBackColor); 646yield return new object[] { Color.Empty, SystemColors.Window }; 669yield return new object[] { Color.Empty, Control.DefaultBackColor, 0 }; 726control.BackColor = Color.Empty; 1677yield return new object[] { Color.Empty, SystemColors.WindowText }; 1703yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1802control.ForeColor = Color.Empty; 3838yield return new object[] { 0, 0, 0x78563412, Color.Empty }; 3845yield return new object[] { CFM_MASK.CFM_ALLCAPS, 0, 0x78563412, Color.Empty }; 3893Assert.Equal(Color.Empty, control.SelectionBackColor); 3902Assert.Equal(Color.Empty, control.SelectionBackColor); 3907yield return new object[] { Color.Empty }; 3931yield return new object[] { Color.Empty, SystemColors.Window }; 3982yield return new object[] { Color.Empty }; 4517yield return new object[] { 0, 0x785634, Color.Empty }; 4518yield return new object[] { 0, 0x78563412, Color.Empty }; 4519yield return new object[] { 0, 0, Color.Empty }; 4545Assert.Equal(Color.Empty, control.SelectionColor); 4559yield return new object[] { Color.Empty, Color.Black }; 4627yield return new object[] { Color.Empty }; 4638Assert.Equal(Color.Empty, control.SelectionColor); 4643Assert.Equal(Color.Empty, control.SelectionColor);
System\Windows\Forms\ScrollableControlTests.cs (20)
1514yield return new object[] { hScroll, vScroll, true, Color.Empty, backgroundImage, backgroundImageLayout }; 1518yield return new object[] { hScroll, vScroll, false, Color.Empty, backgroundImage, backgroundImageLayout }; 1587yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 1591yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 1596yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1600yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1603yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1607yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1630yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 1632yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 1646yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1650yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1653yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1657yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 }; 1787yield return new object[] { hScroll, vScroll, true, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 1791yield return new object[] { hScroll, vScroll, false, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 1796yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1800yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 1803yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 1807yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\ScrollBarTests.cs (2)
233control.BackColor = Color.Empty; 582control.ForeColor = Color.Empty;
System\Windows\Forms\SplitterTests.cs (2)
814yield return new object[] { Color.Empty, Control.DefaultForeColor, 0 }; 870control.ForeColor = Color.Empty;
System\Windows\Forms\TabControlTests.cs (4)
530yield return new object[] { Color.Empty }; 604control.BackColor = Color.Empty; 941yield return new object[] { Color.Empty, Control.DefaultForeColor, 0 }; 998control.ForeColor = Color.Empty;
System\Windows\Forms\TabPageTests.cs (16)
827yield return new object[] { Color.Empty, Control.DefaultBackColor, 0 }; 883control.BackColor = Color.Empty; 3962yield return new object[] { true, Color.Empty, backgroundImage, backgroundImageLayout }; 3966yield return new object[] { false, Color.Empty, backgroundImage, backgroundImageLayout }; 4016yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 4020yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 4025yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4029yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4032yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4036yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4155yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 4159yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 4164yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4168yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 4171yield return new object[] { appearance, useVisualStyleBackColor, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 4175yield return new object[] { appearance, useVisualStyleBackColor, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\TextRendererTests.cs (18)
26yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Empty }; 55yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Empty, Color.Blue }; 60yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Empty }; 89yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Empty, TextFormatFlags.Default, }; 126yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Empty, Color.Blue, TextFormatFlags.Default, }; 131yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Empty, TextFormatFlags.Default, }; 170yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Empty }; 201yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Empty, Color.Blue }; 206yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Empty }; 237yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Empty, TextFormatFlags.Default, }; 277yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Empty, Color.Blue, TextFormatFlags.Default, }; 282yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Empty, TextFormatFlags.Default, }; 620Color.Empty, 627Color.Empty, 628Color.Empty, 635Color.Empty, 642Color.Empty, 643Color.Empty,
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (3)
14Assert.Throws<ArgumentNullException>(() => new ToolStripArrowRenderEventArgs(null, toolStripButton, Rectangle.Empty, Color.Empty, ArrowDirection.Up)); 21yield return new object[] { graphics, null, Rectangle.Empty, Color.Empty, ArrowDirection.Down + 1 }; 61yield return new object[] { Color.Empty };
System\Windows\Forms\ToolStripButtonTests.cs (6)
64Assert.Equal(Color.Empty, item.ImageTransparentColor); 145Assert.Equal(Color.Empty, item.ImageTransparentColor); 232Assert.Equal(Color.Empty, item.ImageTransparentColor); 322Assert.Equal(Color.Empty, item.ImageTransparentColor); 410Assert.Equal(Color.Empty, item.ImageTransparentColor); 508Assert.Equal(Color.Empty, item.ImageTransparentColor);
System\Windows\Forms\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapterTests.cs (1)
83bitmap.GetPixel(50, 50).Should().NotBe(Color.Empty);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
625yield return new object[] { Color.Empty, Color.Blue }; 657yield return new object[] { Color.Empty, Color.Blue, Color.Blue }; 709control.BackColor = Color.Empty;
System\Windows\Forms\ToolStripControlHostTests.cs (5)
93Assert.Equal(Color.Empty, item.ImageTransparentColor); 307item.BackColor = Color.Empty; 1126item.ForeColor = Color.Empty; 1207foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.Red }) 1333foreach (Color color in new Color[] { Color.Empty, Color.Red })
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
64Assert.Equal(Color.Empty, item.ImageTransparentColor); 153Assert.Equal(Color.Empty, item.ImageTransparentColor); 252Assert.Equal(Color.Empty, item.ImageTransparentColor); 360Assert.Equal(Color.Empty, item.ImageTransparentColor);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
1746control.ForeColor = Color.Empty;
System\Windows\Forms\ToolStripItemTests.cs (21)
63Assert.Equal(Color.Empty, item.ImageTransparentColor); 148Assert.Equal(Color.Empty, item.ImageTransparentColor); 243Assert.Equal(Color.Empty, item.ImageTransparentColor); 1661yield return new object[] { Color.Empty, Control.DefaultBackColor, 0 }; 1722item.BackColor = Color.Empty; 3351yield return new object[] { Color.Empty, Control.DefaultForeColor, 0 }; 3415item.ForeColor = Color.Empty; 3781foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.Red }) 3811foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.Red }) 3885foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.Red }) 5599foreach (Color color in new Color[] { Color.Empty, Color.Red }) 5666yield return new object[] { null, Color.Empty, 0 }; 5668yield return new object[] { new Bitmap(10, 10), Color.Empty, 0 }; 5670yield return new object[] { Image.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), Color.Empty, 0 }; 5672yield return new object[] { Image.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), Color.Empty, 0 }; 5733yield return new object[] { null, Color.Empty, 0 }; 5735yield return new object[] { new Bitmap(10, 10), Color.Empty, 0 }; 5737yield return new object[] { Image.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), Color.Empty, 0 }; 5739yield return new object[] { Image.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), Color.Empty, 0 }; 5789Assert.Equal(Color.Empty, item.ImageTransparentColor); 5805Assert.Equal(Color.Empty, item.ImageTransparentColor);
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (3)
12yield return new object[] { new ToolStripButton(), null, Rectangle.Empty, Color.Empty, null, TextFormatFlags.Top - 1 }; 37yield return new object[] { new ToolStripButton(), null, Rectangle.Empty, Color.Empty, null, ContentAlignment.TopLeft - 1, TextFormatFlags.Default | TextFormatFlags.Top | TextFormatFlags.HidePrefix }; 72yield return new object[] { Color.Empty };
System\Windows\Forms\ToolStripLabelTests.cs (3)
224{ nameof(ToolStripLabel.ActiveLinkColor), Color.Empty, false }, 226{ nameof(ToolStripLabel.LinkColor), Color.Empty, false }, 228{ nameof(ToolStripLabel.VisitedLinkColor), Color.Empty, false }
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
68Assert.Equal(Color.Empty, item.ImageTransparentColor);
System\Windows\Forms\ToolStripRendererTests.cs (7)
30yield return new object[] { null, Rectangle.Empty, Color.Empty, arrowDirection }; 34yield return new object[] { null, Rectangle.Empty, Color.Empty, ArrowDirection.Left - 1 }; 35yield return new object[] { null, Rectangle.Empty, Color.Empty, ArrowDirection.Up + 1 }; 294yield return new object[] { new SubToolStripItem(), null, Rectangle.Empty, Color.Empty, null, TextFormatFlags.Left }; 295yield return new object[] { new SubToolStripItem(), null, new Rectangle(1, 2, 0, 4), Color.Empty, null, TextFormatFlags.Left }; 296yield return new object[] { new SubToolStripItem(), null, new Rectangle(1, 2, 3, 0), Color.Empty, null, TextFormatFlags.Left }; 297yield return new object[] { new SubToolStripItem(), null, new Rectangle(1, 2, 3, 4), Color.Empty, null, TextFormatFlags.Left };
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (5)
52yield return new object[] { new ToolStrip(), new Rectangle(1, 2, 3, 4), Color.Empty, SystemColors.Control }; 53yield return new object[] { new ToolStrip() { BackColor = Color.Red }, new Rectangle(1, 2, 3, 4), Color.Empty, Color.Red }; 54yield return new object[] { new ToolStripDropDown(), new Rectangle(1, 2, 3, 4), Color.Empty, SystemColors.Menu }; 55yield return new object[] { new MenuStrip(), new Rectangle(1, 2, 3, 4), Color.Empty, SystemColors.MenuBar }; 94ToolStripRenderEventArgs e = new(graphics, toolStrip, new Rectangle(1, 2, 3, 4), Color.Empty);
System\Windows\Forms\ToolStripSeparatorTests.cs (4)
61Assert.Equal(Color.Empty, item.ImageTransparentColor); 372item.ForeColor = Color.Empty; 417foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.Red }) 527foreach (Color color in new Color[] { Color.Empty, Color.Red })
System\Windows\Forms\ToolStripTests.cs (22)
1059yield return new object[] { Color.Empty, Control.DefaultBackColor }; 2711control.ForeColor = Color.Empty; 5855yield return new object[] { hScroll, vScroll, true, Color.Empty, backgroundImage, backgroundImageLayout }; 5859yield return new object[] { hScroll, vScroll, false, Color.Empty, backgroundImage, backgroundImageLayout }; 5929yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 5933yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 5938yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5942yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 5945yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5949yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 5980yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, backgroundImage, backgroundImageLayout, expected1 }; 5982yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, backgroundImage, backgroundImageLayout, expected1 }; 5996yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 5998yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 }; 6003yield return new object[] { parent, hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6005yield return new object[] { parent, hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 }; 6126yield return new object[] { hScroll, vScroll, true, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 6130yield return new object[] { hScroll, vScroll, false, Color.Empty, backgroundImage, backgroundImageLayout, 0 }; 6135yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6139yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 }; 6142yield return new object[] { hScroll, vScroll, true, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 }; 6146yield return new object[] { hScroll, vScroll, false, Color.Empty, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\ToolTipTests.cs (1)
353Assert.Throws<ArgumentException>("value", () => toolTip.ForeColor = Color.Empty);
System\Windows\Forms\TreeNodeCollectionTests.cs (2)
19Assert.Equal(Color.Empty, treeNode.BackColor); 27Assert.Equal(Color.Empty, treeNode.ForeColor);
System\Windows\Forms\TreeNodeTests.cs (16)
17Assert.Equal(Color.Empty, node.BackColor); 22Assert.Equal(Color.Empty, node.ForeColor); 57Assert.Equal(Color.Empty, node.BackColor); 62Assert.Equal(Color.Empty, node.ForeColor); 105Assert.Equal(Color.Empty, node.BackColor); 110Assert.Equal(Color.Empty, node.ForeColor); 148Assert.Equal(Color.Empty, node.BackColor); 153Assert.Equal(Color.Empty, node.ForeColor); 196Assert.Equal(Color.Empty, node.BackColor); 201Assert.Equal(Color.Empty, node.ForeColor); 296yield return new object[] { Color.Empty, 0 }; 333yield return new object[] { Color.Empty }; 378yield return new object[] { Color.Empty, 1 }; 737yield return new object[] { Color.Empty, 0 }; 774yield return new object[] { Color.Empty }; 819yield return new object[] { Color.Empty, 1 };
System\Windows\Forms\TreeViewTests.cs (6)
86Assert.Equal(Color.Empty, control.LineColor); 698yield return new object[] { Color.Empty, SystemColors.Window }; 721yield return new object[] { Color.Empty, SystemColors.Window, 0 }; 778control.BackColor = Color.Empty; 1459yield return new object[] { Color.Empty, SystemColors.WindowText }; 1520control.ForeColor = Color.Empty;
System\Windows\Forms\UpDownBaseTests.cs (6)
510yield return new object[] { Color.Empty, SystemColors.Window }; 533yield return new object[] { Color.Empty, SystemColors.Window, 1 }; 589control.BackColor = Color.Empty; 935yield return new object[] { Color.Empty, SystemColors.WindowText }; 1012control.ForeColor = Color.Empty; 2229foreach (Color backColor in new Color[] { Color.Red, Color.Empty })
System\Windows\Forms\VisualStyles\VisualStyleInformationTests.cs (2)
55Assert.NotEqual(Color.Empty, color); 142Assert.NotEqual(Color.Empty, color);
TextBoxBaseTests.cs (5)
383yield return new object[] { Color.Empty, SystemColors.Window }; 428control.BackColor = Color.Empty; 1161yield return new object[] { Color.Empty, SystemColors.WindowText }; 1187yield return new object[] { Color.Empty, SystemColors.WindowText, 0 }; 1247control.ForeColor = Color.Empty;
TrackBarTests.cs (2)
688yield return new object[] { Color.Empty }; 761control.ForeColor = Color.Empty;
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
18{ Color.Empty, Control.DefaultBackColor } 30{ Color.Empty, Control.DefaultForeColor }
WindowsFormsIntegration (3)
System\Windows\Integration\ElementHost.cs (2)
1551if (control.BackColor != SD.Color.Empty && control.BackColor.A == 255) 1556return SD.Color.Empty;
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
378SD.Color wfColor = SD.Color.Empty;