370 references to Blue
DesignSurface (1)
CustomControls\CustomButtonDesignerActionList.cs (1)
80_control.BackColor = backColor != Color.Yellow ? Color.Yellow : Color.Blue;
System.Drawing.Common.Tests (47)
mono\System.Drawing\BitmapTests.cs (4)
672Color blue = Color.FromArgb(Color.Blue.A, Color.Blue.R, Color.Blue.G, Color.Blue.B);
mono\System.Drawing\GraphicsTests.cs (3)
1218using Pen pen = new(Color.Blue, width); 1381using Pen pen = new(Color.Blue, width); 1527using Pen pen = new(Color.Blue, width);
System\Drawing\BitmapTests.cs (4)
831bitmap.SetPixel(x, y, Color.Blue); 840bitmap.MakeTransparent(Color.Blue); 865bitmap.SetPixel(x, y, Color.Blue); 1466Color blue = Color.FromArgb(Color.Blue.ToArgb());
System\Drawing\BrushesTests.cs (1)
19yield return Brush(() => Brushes.Blue, Color.Blue);
System\Drawing\ColorTranslatorTests.cs (4)
137yield return ("Blue", Color.Blue); 154yield return new object[] { " Blue ", Color.Blue }; 155yield return new object[] { "'Blue'", Color.Blue }; 156yield return new object[] { "\"Blue\"", Color.Blue };
System\Drawing\Drawing2D\GraphicsPathTests.cs (4)
1661using Pen pen = new(Color.Blue); 1674using Pen pen = new(Color.Blue); 1693using Pen pen = new(Color.Blue); 1704using Pen pen = new(Color.Blue);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (1)
534Color[] colors = [Color.Red, Color.Blue, Color.AntiqueWhite];
System\Drawing\Drawing2D\PathGradientBrushTests.cs (3)
142brush.CenterColor = Color.Blue; 143Assert.Equal(Color.Blue.ToArgb(), brush.CenterColor.ToArgb()); 154AssertExtensions.Throws<ArgumentException>(null, () => brush.CenterColor = Color.Blue);
System\Drawing\PensTests.cs (1)
21yield return Pen(() => Pens.Blue, Color.Blue);
System\Drawing\PenTests.cs (2)
69brush.Color = Color.Blue; 253using LinearGradientBrush brush = new(Point.Empty, new Point(1, 2), Color.Blue, Color.Red);
System\Drawing\SystemBrushesTests.cs (1)
61AssertExtensions.Throws<ArgumentException>(null, () => SystemBrushes.FromSystemColor(Color.Blue));
System\Drawing\SystemPensTest.cs (1)
86AssertExtensions.Throws<ArgumentException>(null, () => SystemPens.FromSystemColor(Color.Blue));
System\Drawing\TextureBrushTests.cs (18)
733[Color.Blue, Color.Yellow, empty, empty], 749[Color.Blue, Color.Yellow, Color.Blue, Color.Yellow], 751[Color.Blue, Color.Yellow, Color.Blue, Color.Yellow] 765[Color.Blue, Color.Yellow, Color.Yellow, Color.Blue], 767[Color.Blue, Color.Yellow, Color.Yellow, Color.Blue] 781[Color.Blue, Color.Yellow, Color.Blue, Color.Yellow], 782[Color.Blue, Color.Yellow, Color.Blue, Color.Yellow], 797[Color.Blue, Color.Yellow, Color.Yellow, Color.Blue], 798[Color.Blue, Color.Yellow, Color.Yellow, Color.Blue], 808brushBitmap.SetPixel(0, 1, Color.Blue);
System.Private.Windows.Core.TestUtilities (1)
CommonTestHelper.cs (1)
63Color.Blue,
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (1)
58return Color.Blue;
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextScopeTests.cs (1)
64using CreateBrushScope blueBrush = new(Color.Blue);
System.Windows.Forms.Tests (309)
CheckedListBoxTests.cs (4)
405yield return new object[] { null, Rectangle.Empty, 0, DrawItemState.Default, Color.Red, Color.Blue }; 406yield return new object[] { null, new Rectangle(1, 2, 3, 4), 1, DrawItemState.None, Color.Red, Color.Blue }; 407yield return new object[] { null, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Checked, Color.Red, Color.Blue }; 408yield return new object[] { new Font("Arial", 8.25f), new Rectangle(10, 20, 30, 40), 1, DrawItemState.Default, Color.Red, Color.Blue };
LinkLabelTests.cs (2)
191_linkLabel.VisitedLinkColor = Color.Blue; 192_linkLabel.VisitedLinkColor.Should().Be(Color.Blue);
System\Windows\Forms\ColorDialogTests.cs (1)
132Color = Color.Blue
System\Windows\Forms\ControlPaintTests.cs (50)
586yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 587yield return new object[] { Rectangle.Empty, Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 588yield return new object[] { new Rectangle(1, 2, -3, -4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 590yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 591yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 0, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 592yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 0, style, Color.Blue, 0, style, Color.Yellow, 4, style }; 593yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 0, style, Color.Blue, 3, style, Color.Yellow, 0, style }; 594yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 0, style, Color.Blue, 0, style, Color.Yellow, 0, style }; 595yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 2, style, Color.Blue, 0, style, Color.Yellow, 4, style }; 596yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 2, style, Color.Blue, 0, style, Color.Yellow, 0, style }; 597yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 0, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 0, style }; 599yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 0, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 600yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 0, style, Color.Blue, 0, style, Color.Yellow, 4, style }; 601yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 0, style, Color.Blue, 3, style, Color.Yellow, 0, style }; 602yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 0, style, Color.Blue, 0, style, Color.Yellow, 0, style }; 604yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 0, style, Color.Yellow, 4, style }; 605yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 0, style, Color.Yellow, 0, style }; 607yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 0, style }; 632yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 633yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, -1, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 634yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, -1, style, Color.Blue, -1, style, Color.Yellow, 4, style }; 635yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, -1, style, Color.Blue, 3, style, Color.Yellow, -1, style }; 636yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, -1, style, Color.Blue, -1, style, Color.Yellow, -1, style }; 637yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, 2, style, Color.Blue, -1, style, Color.Yellow, 4, style }; 638yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, 2, style, Color.Blue, -1, style, Color.Yellow, -1, style }; 639yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, -1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, -1, style }; 641yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, -1, style, Color.Blue, 3, style, Color.Yellow, 4, style }; 642yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, -1, style, Color.Blue, -1, style, Color.Yellow, 4, style }; 643yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, -1, style, Color.Blue, 3, style, Color.Yellow, -1, style }; 644yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, -1, style, Color.Blue, -1, style, Color.Yellow, -1, style }; 646yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, -1, style, Color.Yellow, 4, style }; 647yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, -1, style, Color.Yellow, -1, style }; 649yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Green, 2, style, Color.Blue, 3, style, Color.Yellow, -1, style }; 1187yield return new object[] { Rectangle.Empty, Color.Red, Color.Blue }; 1188yield return new object[] { new Rectangle(1, 2, -3, -4), Color.Red, Color.Blue }; 1189yield return new object[] { new Rectangle(0, 0, 3, 4), Color.Red, Color.Blue }; 1190yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, Color.Blue }; 1191yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Black, Color.Blue }; 1192yield return new object[] { new Rectangle(1, 2, 3, 4), Color.White, Color.Blue }; 1193yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Empty, Color.Blue }; 1194yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Transparent, Color.Blue }; 1200yield return new object[] { new Rectangle(1, 2, 4, 3), Color.Red, Color.Blue }; 1201yield return new object[] { new Rectangle(1, 2, 3, 3), Color.Red, Color.Blue }; 1220Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawFocusRectangle(null, new Rectangle(1, 2, 3, 4), Color.Red, Color.Blue)); 1412yield return new object[] { new Rectangle(0, 0, 3, 4), glyph, Color.Red, Color.Blue }; 1413yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Red, Color.Blue }; 1414yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Black, Color.Blue }; 1415yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.White, Color.Blue }; 1416yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Empty, Color.Blue }; 1417yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Transparent, Color.Blue };
System\Windows\Forms\ControlPaintTests.Rendering.cs (2)
22ControlPaint.DrawBorder(graphics, bounds, Color.Blue, ButtonBorderStyle.Solid); 29State.Pen(1, Color.Blue, PEN_STYLE.PS_SOLID)));
System\Windows\Forms\ControlTests.ControlCollection.cs (16)
654owner.BackColor = Color.Blue; 764Assert.Equal(Color.Blue, control.BackColor); 804owner.BackColor = Color.Blue; 923Assert.Equal(Color.Blue, control.BackColor); 957owner.BackColor = Color.Blue; 1000Assert.Equal(Color.Blue, control.BackColor); 1030owner.BackColor = Color.Blue; 1080Assert.Equal(Color.Blue, control.BackColor); 2357owner.BackColor = Color.Blue; 2358Assert.Equal(Color.Blue, control.BackColor); 2501owner.BackColor = Color.Blue; 2502Assert.Equal(Color.Blue, control.BackColor); 2633owner.BackColor = Color.Blue; 2634Assert.Equal(Color.Blue, control.BackColor); 2697owner.BackColor = Color.Blue; 2698Assert.Equal(Color.Blue, control.BackColor);
System\Windows\Forms\ControlTests.Properties.cs (10)
10724BackColor = Color.Blue, 10740BackColor = Color.Blue, 10759ForeColor = Color.Blue 10811Assert.Equal(Color.Blue, control.BackColor); 10827Assert.Equal(Color.Blue, control.BackColor); 10843Assert.Equal(Color.Blue, control.BackColor); 10861Assert.Equal(Color.Blue, control.ForeColor); 10898BackColor = Color.Blue, 10914BackColor = Color.Blue, 10933ForeColor = Color.Blue
System\Windows\Forms\DataGridViewCellStyleTests.cs (15)
46ForeColor = Color.Blue, 63Assert.Equal(Color.Blue, style.ForeColor); 623ForeColor = Color.Blue, 641Assert.Equal(Color.Blue, style.ForeColor); 666ForeColor = Color.Blue, 683Assert.Equal(Color.Blue, style.ForeColor); 714ForeColor = Color.Blue, 731Assert.Equal(Color.Blue, style.ForeColor); 780ForeColor = Color.Blue, 797Assert.Equal(Color.Blue, style.ForeColor); 864new DataGridViewCellStyle { BackColor = Color.Blue }, 900new DataGridViewCellStyle { ForeColor = Color.Blue }, 984new DataGridViewCellStyle { SelectionBackColor = Color.Blue }, 996new DataGridViewCellStyle { SelectionForeColor = Color.Blue }, 1128ForeColor = Color.Blue,
System\Windows\Forms\DataGridViewLinkColumnTests.cs (4)
137var color = Color.Blue; 148var color = Color.Blue; 314_column.LinkColor = Color.Blue; 335_column.LinkColor = Color.Blue;
System\Windows\Forms\DataGridViewRowTests.cs (6)
2067ForeColor = Color.Blue, 2080BackColor = Color.Blue, 4186yield return new object[] { new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), 1, DataGridViewElementStates.Selected, new DataGridViewCellStyle { BackColor = Color.Blue, SelectionBackColor = Color.Red }, true }; 4187yield return new object[] { new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), 1, DataGridViewElementStates.Selected, new DataGridViewCellStyle { BackColor = Color.Blue, SelectionBackColor = Color.Red }, true }; 4188yield return new object[] { new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), 1, DataGridViewElementStates.None, new DataGridViewCellStyle { BackColor = Color.Blue, SelectionBackColor = Color.Red }, true }; 4189yield return new object[] { new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), 1, DataGridViewElementStates.None, new DataGridViewCellStyle { BackColor = Color.Blue, SelectionBackColor = Color.Red }, false };
System\Windows\Forms\DataGridViewTests.cs (3)
3271_dataGridView.GridColor = Color.Blue; 3480TestEvent(nameof(DataGridView.BackColorChanged), nameof(DataGridView.BackColor), Color.Red, Color.Blue); 3501TestEvent(nameof(DataGridView.ForeColorChanged), nameof(DataGridView.ForeColor), Color.Red, Color.Blue);
System\Windows\Forms\DataGridViewTests.Rendering.cs (5)
21GridColor = Color.Blue, 63State.Pen(16, Color.Blue, penStyle), 69State.Pen(16, Color.Blue, penStyle), 75State.Pen(16, Color.Blue, penStyle), 81State.Pen(16, Color.Blue, penStyle),
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
740ForeColor = Color.Blue, 951ForeColor = Color.Blue,
System\Windows\Forms\DateTimePickerTests.cs (1)
814control.ForeColor = Color.Blue;
System\Windows\Forms\DrawItemEventArgsTests.cs (5)
39yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.None, Color.Red, Color.Blue }; 40yield return new object[] { SystemFonts.DefaultFont, new Rectangle(-1, 2, -3, -4), 0, DrawItemState.Selected, Color.Red, Color.Blue }; 41yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus, Color.Red, Color.Blue }; 42yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.NoFocusRect, Color.Red, Color.Blue }; 66Assert.Throws<ArgumentNullException>("graphics", () => new DrawItemEventArgs(null, SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 0, DrawItemState.None, Color.Red, Color.Blue));
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (11)
14yield return new object[] { new Rectangle(1, 2, 3, 4), -1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 15yield return new object[] { new Rectangle(-1, 2, -3, -4), 0, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 16yield return new object[] { new Rectangle(1, 2, 3, 4), 1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 40Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewColumnHeaderEventArgs(null, new Rectangle(1, 2, 3, 4), 0, new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont)); 49DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont) 66yield return new object[] { new Rectangle(1, 2, 3, 4), new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 67yield return new object[] { new Rectangle(1, 2, 3, 4), new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 68yield return new object[] { new Rectangle(1, 2, 3, 4), new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 90DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, header, ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont); 99DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont); 106yield return new object[] { new Rectangle(1, 2, 3, 4), -1, ListViewItemStates.Checked, Color.Red, Color.Blue, SystemFonts.DefaultFont };
System\Windows\Forms\DrawToolTipEventArgsTests.cs (5)
14yield return new object[] { new Mock<IWin32Window>(MockBehavior.Strict).Object, new Button(), new Rectangle(1, 2, 3, 4), "", Color.Red, Color.Blue, SystemFonts.DefaultFont }; 15yield return new object[] { new Mock<IWin32Window>(MockBehavior.Strict).Object, new Button(), new Rectangle(-1, -2, -3, -4), "toolTipText", Color.Red, Color.Blue, SystemFonts.DefaultFont }; 38yield return new object[] { new SubWin32Window(), new Button(), new Rectangle(1, 2, 3, 4), null, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 39yield return new object[] { new SubWin32Window(), new Button(), new Rectangle(1, 2, 3, 4), string.Empty, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 40yield return new object[] { new SubWin32Window(), new Button(), new Rectangle(1, 2, 3, 4), "tooltipText", Color.Red, Color.Blue, SystemFonts.DefaultFont };
System\Windows\Forms\ImageList.ImageCollectionTests.cs (8)
353image2.SetPixel(0, 0, Color.Blue); 1158image2.SetPixel(0, 0, Color.Blue); 1195image2.SetPixel(0, 0, Color.Blue); 1307image2.SetPixel(0, 0, Color.Blue); 1341image2.SetPixel(0, 0, Color.Blue); 1405image2.SetPixel(0, 0, Color.Blue); 1445image2.SetPixel(0, 0, Color.Blue); 1497image2.SetPixel(0, 0, Color.Blue);
System\Windows\Forms\ImageListTests.cs (4)
712list.TransparentColor = Color.Blue; 713Assert.Equal(Color.Blue, list.TransparentColor); 763list.TransparentColor = Color.Blue; 764Assert.Equal(Color.Blue, list.TransparentColor);
System\Windows\Forms\ListViewItemConverterTests.cs (14)
55ForeColor = Color.Blue 59BackColor = Color.Blue 193new object[] { new string[] { "text3" }, 1, Color.Blue, Color.Empty, null } 199new object[] { new string[] { "text4" }, 1, Color.Empty, Color.Blue, null } 211new object[] { new string[] { "text3" }, "imageKey", Color.Blue, Color.Empty, null } 217new object[] { new string[] { "text4" }, "imageKey", Color.Empty, Color.Blue, null } 229new ListViewItem(["text"], "imageKey", Color.Red, Color.Blue, SystemFonts.MenuFont), 231new object[] { new string[] { "text" }, "imageKey", Color.Red, Color.Blue, SystemFonts.MenuFont } 235new ListViewItem(["text"], 1, Color.Red, Color.Blue, SystemFonts.MenuFont), 237new object[] { new string[] { "text" }, 1, Color.Red, Color.Blue, SystemFonts.MenuFont } 241new ListViewItem(["text"], "imageKey", Color.Red, Color.Blue, SystemFonts.MenuFont, group), 243new object[] { new string[] { "text" }, "imageKey", Color.Red, Color.Blue, SystemFonts.MenuFont } 247new ListViewItem(["text"], 1, Color.Red, Color.Blue, SystemFonts.MenuFont, group), 249new object[] { new string[] { "text" }, 1, Color.Red, Color.Blue, SystemFonts.MenuFont }
System\Windows\Forms\ListViewItemTests.cs (8)
47yield return new object[] { new string[] { "text" }, "imageKey", Color.Blue, Color.Red, SystemFonts.MenuFont, new ListViewGroup(), "imageKey", Color.Blue, Color.Red, "text" }; 85yield return new object[] { new string[] { "text" }, 2, Color.Blue, Color.Red, SystemFonts.MenuFont, new ListViewGroup(), Color.Blue, Color.Red, "text" }; 123yield return new object[] { new string[] { "text" }, "imageKey", Color.Blue, Color.Red, SystemFonts.MenuFont, "imageKey", Color.Blue, Color.Red, "text" }; 161yield return new object[] { new string[] { "text" }, 2, Color.Blue, Color.Red, SystemFonts.MenuFont, Color.Blue, Color.Red, "text" };
System\Windows\Forms\ListViewSubItemCollectionTests.cs (9)
258yield return new object[] { string.Empty, Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, string.Empty }; 259yield return new object[] { "reasonable", Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, "reasonable" }; 388yield return new object[] { Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue }; 389yield return new object[] { Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue }; 419Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((string[])null, Color.Red, Color.Blue, SystemFonts.MenuFont));
System\Windows\Forms\ListViewSubItemConverterTests.cs (2)
60new ListViewItem.ListViewSubItem(null, "text", Color.Red, Color.Blue, SystemFonts.MenuFont), 62new object[] { null, "text", Color.Red, Color.Blue, SystemFonts.MenuFont }
System\Windows\Forms\ListViewSubItemTests.cs (16)
55yield return new object[] { new ListViewItem(), string.Empty, Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, string.Empty }; 56yield return new object[] { new ListViewItem(), "reasonable", Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, "reasonable" }; 57yield return new object[] { new ListViewItem() { BackColor = Color.Yellow, ForeColor = Color.Yellow, Font = SystemFonts.StatusFont }, string.Empty, Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, string.Empty }; 61yield return new object[] { item, "reasonable", Color.Red, Color.Blue, SystemFonts.MenuFont, Color.Red, Color.Blue, "reasonable" }; 120BackColor = Color.Blue 169BackColor = Color.Blue 189BackColor = Color.Blue 369ForeColor = Color.Blue 420ForeColor = Color.Blue 440ForeColor = Color.Blue 556var subItem = new ListViewItem.ListViewSubItem(owner, "text", Color.Red, Color.Blue, SystemFonts.MenuFont); 572yield return new object[] { new ListViewItem.ListViewSubItem(null, "header", Color.Red, Color.Blue, SystemFonts.MenuFont) { Name = "name", Tag = "tag" } };
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (4)
79value.BackColor = Color.Blue; 85Assert.Equal(Color.Blue, bag.BackColor); 110original.BackColor = Color.Blue; 124Assert.Equal(Color.Blue, bag.BackColor);
System\Windows\Forms\PropertyGridTests.cs (6)
863yield return new object[] { Color.Blue, Color.Blue }; 1111yield return new object[] { Color.Blue, Color.Blue }; 1274yield return new object[] { Color.Blue, Color.Blue };
System\Windows\Forms\StatusStripTests.Rendering.cs (2)
17BackColor = Color.Blue, 45Validate.BitBltValidator(bitBltBounds, State.BrushColor(Color.Blue)),
System\Windows\Forms\TextRendererTests.cs (52)
50yield return new object[] { hint, text, null, Point.Empty, Color.Red, Color.Blue }; 51yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Red, Color.Blue }; 52yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Black, Color.Blue }; 53yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.White, Color.Blue }; 54yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Transparent, Color.Blue }; 55yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Empty, Color.Blue }; 121yield return new object[] { hint, text, null, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.Default, }; 122yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Red, Color.Blue, TextFormatFlags.Default, }; 123yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Black, Color.Blue, TextFormatFlags.Default, }; 124yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.White, Color.Blue, TextFormatFlags.Default, }; 125yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Transparent, Color.Blue, TextFormatFlags.Default, }; 126yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Empty, Color.Blue, TextFormatFlags.Default, }; 133yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter }; 134yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.Bottom | TextFormatFlags.Right }; 135yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.SingleLine }; 136yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, (TextFormatFlags)1024 }; 137yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.RightToLeft }; 138yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, (TextFormatFlags)int.MaxValue }; 194yield return new object[] { hint, text, null, Rectangle.Empty, Color.Red, Color.Blue }; 195yield return new object[] { hint, text, null, new Rectangle(1, 2, -3, -4), Color.Red, Color.Blue }; 196yield return new object[] { hint, text, null, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.Red, Color.Blue }; 197yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue }; 198yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Black, Color.Blue }; 199yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.White, Color.Blue }; 200yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Transparent, Color.Blue }; 201yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Empty, Color.Blue }; 270yield return new object[] { hint, text, null, Rectangle.Empty, Color.Red, Color.Blue, TextFormatFlags.Default, }; 271yield return new object[] { hint, text, null, new Rectangle(1, 2, -3, -4), Color.Red, Color.Blue, TextFormatFlags.Default, }; 272yield return new object[] { hint, text, null, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.Blue, Color.Blue, TextFormatFlags.Default, }; 273yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.Default, }; 274yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Black, Color.Blue, TextFormatFlags.Default, }; 275yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.White, Color.Blue, TextFormatFlags.Default, }; 276yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Transparent, Color.Blue, TextFormatFlags.Default, }; 277yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Empty, Color.Blue, TextFormatFlags.Default, }; 284yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter }; 285yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.Bottom | TextFormatFlags.Right }; 286yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.SingleLine }; 287yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.Red, Color.Blue, TextFormatFlags.SingleLine }; 288yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, (TextFormatFlags)1024 }; 289yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.RightToLeft }; 290yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, (TextFormatFlags)int.MaxValue }; 327TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue); 335TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.Default); 347TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue); 351TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.Default); 359TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue); 367TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.Default); 379TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue); 383TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.Default); 583State.TextColor(Color.Blue), 592pt: default, Color.Blue),
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (5)
22yield return new object[] { graphics, new ToolStripButton(), new Rectangle(1, 2, 3, 4), Color.Blue, ArrowDirection.Down }; 23yield return new object[] { graphics, new ToolStripButton(), new Rectangle(-1, -2, -3, -4), Color.Blue, ArrowDirection.Down }; 52ToolStripArrowRenderEventArgs e = new(graphics, button, new Rectangle(1, 2, 3, 4), Color.Blue, ArrowDirection.Down) 72ToolStripArrowRenderEventArgs e = new(graphics, button, new Rectangle(1, 2, 3, 4), Color.Blue, ArrowDirection.Down) 87ToolStripArrowRenderEventArgs e = new(graphics, button, new Rectangle(1, 2, 3, 4), Color.Blue, ArrowDirection.Down)
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (2)
44BackColor = Color.Blue, 60State.Brush(Color.Blue, BRUSH_STYLE.BS_SOLID)));
System\Windows\Forms\ToolStripContentPanelTests.cs (8)
625yield return new object[] { Color.Empty, Color.Blue }; 636BackColor = Color.Blue 644Assert.Equal(Color.Blue, parent.BackColor); 650Assert.Equal(Color.Blue, parent.BackColor); 657yield return new object[] { Color.Empty, Color.Blue, Color.Blue }; 658yield return new object[] { Color.Red, Color.Red, Color.Blue }; 668BackColor = Color.Blue
System\Windows\Forms\ToolStripControlHostTests.cs (1)
32ForeColor = Color.Blue,
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (1)
82ToolStripItemTextRenderEventArgs e = new(graphics, new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.Blue, SystemFonts.DefaultFont, TextFormatFlags.Top)
System\Windows\Forms\ToolStripLabelTests.cs (3)
162Color expectedColor = Color.Blue; 210_toolStripLabel.LinkColor = Color.Blue; 225{ nameof(ToolStripLabel.LinkColor), Color.Blue, true },
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
287ForeColor = Color.Blue,
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (2)
56yield return new object[] { new ToolStrip() { BackColor = Color.Red }, new Rectangle(1, 2, 3, 4), Color.Blue, Color.Blue };
System\Windows\Forms\ToolStripTests.Rendering.cs (2)
17BackColor = Color.Blue, 49State.BrushColor(Color.Blue)),
System\Windows\Forms\TreeNodeTests.cs (10)
334yield return new object[] { Color.Blue }; 344BackColor = Color.Blue 362BackColor = Color.Blue 380yield return new object[] { Color.Blue, 0 }; 390BackColor = Color.Blue 775yield return new object[] { Color.Blue }; 785ForeColor = Color.Blue 803ForeColor = Color.Blue 821yield return new object[] { Color.Blue, 0 }; 831ForeColor = Color.Blue
System\Windows\Forms\TreeViewTests.cs (6)
6021ForeColor = Color.Blue, 6049Assert.Equal(Color.Blue, control.ForeColor); 6067Assert.Equal(Color.Blue, control.ForeColor); 6101ForeColor = Color.Blue, 6130Assert.Equal(Color.Blue, control.ForeColor); 6148Assert.Equal(Color.Blue, control.ForeColor);
ToolStripContainerTests.cs (1)
65_toolStripContainer.BackColor = Color.Blue;
System.Windows.Forms.UI.IntegrationTests (10)
PropertyGridTests.cs (10)
118_propertyGrid.HelpBorderColor = Color.Blue; 119_propertyGrid.HelpBorderColor.Should().Be(Color.Blue); 145_propertyGrid.DisabledItemForeColor = Color.Blue; 146_propertyGrid.DisabledItemForeColor.Should().Be(Color.Blue); 191_propertyGrid.BackColor = Color.Blue; 192_propertyGrid.BackColor.Should().Be(Color.Blue); 251_propertyGrid.HelpBackColor = Color.Blue; 252_propertyGrid.HelpBackColor.Should().Be(Color.Blue); 349_propertyGrid.ViewBorderColor = Color.Blue; 350_propertyGrid.ViewBorderColor.Should().Be(Color.Blue);