371 references to Blue
DesignSurface (1)
CustomControls\CustomButtonDesignerActionList.cs (1)
76
_control.BackColor = backColor != Color.Yellow ? Color.Yellow : Color.
Blue
;
System.Drawing.Common.Tests (48)
mono\System.Drawing\BitmapTests.cs (4)
672
Color blue = Color.FromArgb(Color.
Blue
.A, Color.
Blue
.R, Color.
Blue
.G, Color.
Blue
.B);
mono\System.Drawing\GraphicsTests.cs (3)
1218
using Pen pen = new(Color.
Blue
, width);
1381
using Pen pen = new(Color.
Blue
, width);
1527
using Pen pen = new(Color.
Blue
, width);
System\Drawing\BitmapTests.cs (4)
831
bitmap.SetPixel(x, y, Color.
Blue
);
840
bitmap.MakeTransparent(Color.
Blue
);
865
bitmap.SetPixel(x, y, Color.
Blue
);
1466
Color blue = Color.FromArgb(Color.
Blue
.ToArgb());
System\Drawing\BrushesTests.cs (1)
19
yield return Brush(() => Brushes.Blue, Color.
Blue
);
System\Drawing\ColorTranslatorTests.cs (4)
137
yield return ("Blue", Color.
Blue
);
154
yield return new object[] { " Blue ", Color.
Blue
};
155
yield return new object[] { "'Blue'", Color.
Blue
};
156
yield return new object[] { "\"Blue\"", Color.
Blue
};
System\Drawing\Drawing2D\GraphicsPathTests.cs (4)
1661
using Pen pen = new(Color.
Blue
);
1674
using Pen pen = new(Color.
Blue
);
1693
using Pen pen = new(Color.
Blue
);
1704
using Pen pen = new(Color.
Blue
);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (1)
534
Color[] colors = [Color.Red, Color.
Blue
, Color.AntiqueWhite];
System\Drawing\Drawing2D\PathGradientBrushTests.cs (3)
142
brush.CenterColor = Color.
Blue
;
143
Assert.Equal(Color.
Blue
.ToArgb(), brush.CenterColor.ToArgb());
154
AssertExtensions.Throws<ArgumentException>(null, () => brush.CenterColor = Color.
Blue
);
System\Drawing\Imaging\MetafileTests.cs (1)
1026
using CreatePenScope pen = new(Color.
Blue
);
System\Drawing\PensTests.cs (1)
21
yield return Pen(() => Pens.Blue, Color.
Blue
);
System\Drawing\PenTests.cs (2)
69
brush.Color = Color.
Blue
;
253
using LinearGradientBrush brush = new(Point.Empty, new Point(1, 2), Color.
Blue
, Color.Red);
System\Drawing\SystemBrushesTests.cs (1)
61
AssertExtensions.Throws<ArgumentException>(null, () => SystemBrushes.FromSystemColor(Color.
Blue
));
System\Drawing\SystemPensTest.cs (1)
86
AssertExtensions.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
],
808
brushBitmap.SetPixel(0, 1, Color.
Blue
);
System.Private.Windows.Core.TestUtilities (1)
CommonTestHelper.cs (1)
63
Color.
Blue
,
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (1)
58
return Color.
Blue
;
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextScopeTests.cs (1)
64
using CreateBrushScope blueBrush = new(Color.
Blue
);
System.Windows.Forms.Tests (309)
CheckedListBoxTests.cs (4)
407
yield return new object[] { null, Rectangle.Empty, 0, DrawItemState.Default, Color.Red, Color.
Blue
};
408
yield return new object[] { null, new Rectangle(1, 2, 3, 4), 1, DrawItemState.None, Color.Red, Color.
Blue
};
409
yield return new object[] { null, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Checked, Color.Red, Color.
Blue
};
410
yield return new object[] { new Font("Arial", 8.25f), new Rectangle(10, 20, 30, 40), 1, DrawItemState.Default, Color.Red, Color.
Blue
};
LinkLabelTests.cs (2)
189
_linkLabel.VisitedLinkColor = Color.
Blue
;
190
_linkLabel.VisitedLinkColor.Should().Be(Color.
Blue
);
System\Windows\Forms\ColorDialogTests.cs (1)
134
Color = Color.
Blue
System\Windows\Forms\ControlPaintTests.cs (50)
588
yield 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 };
589
yield return new object[] { Rectangle.Empty, Color.Red, 1, style, Color.Green, 2, style, Color.
Blue
, 3, style, Color.Yellow, 4, style };
590
yield 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 };
592
yield 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 };
593
yield 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 };
594
yield 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 };
595
yield 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 };
596
yield 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 };
597
yield 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 };
598
yield 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 };
599
yield 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 };
601
yield 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 };
602
yield 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 };
603
yield 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 };
604
yield 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 };
606
yield 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 };
607
yield 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 };
609
yield 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 };
634
yield 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 };
635
yield 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 };
636
yield 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 };
637
yield 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 };
638
yield 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 };
639
yield 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 };
640
yield 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 };
641
yield 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 };
643
yield 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 };
644
yield 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 };
645
yield 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 };
646
yield 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 };
648
yield 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 };
649
yield 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 };
651
yield 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 };
1189
yield return new object[] { Rectangle.Empty, Color.Red, Color.
Blue
};
1190
yield return new object[] { new Rectangle(1, 2, -3, -4), Color.Red, Color.
Blue
};
1191
yield return new object[] { new Rectangle(0, 0, 3, 4), Color.Red, Color.
Blue
};
1192
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, Color.
Blue
};
1193
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Black, Color.
Blue
};
1194
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.White, Color.
Blue
};
1195
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Empty, Color.
Blue
};
1196
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Transparent, Color.
Blue
};
1202
yield return new object[] { new Rectangle(1, 2, 4, 3), Color.Red, Color.
Blue
};
1203
yield return new object[] { new Rectangle(1, 2, 3, 3), Color.Red, Color.
Blue
};
1222
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawFocusRectangle(null, new Rectangle(1, 2, 3, 4), Color.Red, Color.
Blue
));
1414
yield return new object[] { new Rectangle(0, 0, 3, 4), glyph, Color.Red, Color.
Blue
};
1415
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Red, Color.
Blue
};
1416
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Black, Color.
Blue
};
1417
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.White, Color.
Blue
};
1418
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Empty, Color.
Blue
};
1419
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Transparent, Color.
Blue
};
System\Windows\Forms\ControlPaintTests.Rendering.cs (2)
24
ControlPaint.DrawBorder(graphics, bounds, Color.
Blue
, ButtonBorderStyle.Solid);
31
State.Pen(1, Color.
Blue
, PEN_STYLE.PS_SOLID)));
System\Windows\Forms\ControlTests.ControlCollection.cs (16)
656
owner.BackColor = Color.
Blue
;
766
Assert.Equal(Color.
Blue
, control.BackColor);
806
owner.BackColor = Color.
Blue
;
925
Assert.Equal(Color.
Blue
, control.BackColor);
959
owner.BackColor = Color.
Blue
;
1002
Assert.Equal(Color.
Blue
, control.BackColor);
1032
owner.BackColor = Color.
Blue
;
1082
Assert.Equal(Color.
Blue
, control.BackColor);
2359
owner.BackColor = Color.
Blue
;
2360
Assert.Equal(Color.
Blue
, control.BackColor);
2503
owner.BackColor = Color.
Blue
;
2504
Assert.Equal(Color.
Blue
, control.BackColor);
2635
owner.BackColor = Color.
Blue
;
2636
Assert.Equal(Color.
Blue
, control.BackColor);
2699
owner.BackColor = Color.
Blue
;
2700
Assert.Equal(Color.
Blue
, control.BackColor);
System\Windows\Forms\ControlTests.Properties.cs (10)
10726
BackColor = Color.
Blue
,
10742
BackColor = Color.
Blue
,
10761
ForeColor = Color.
Blue
10813
Assert.Equal(Color.
Blue
, control.BackColor);
10829
Assert.Equal(Color.
Blue
, control.BackColor);
10845
Assert.Equal(Color.
Blue
, control.BackColor);
10863
Assert.Equal(Color.
Blue
, control.ForeColor);
10900
BackColor = Color.
Blue
,
10916
BackColor = Color.
Blue
,
10935
ForeColor = Color.
Blue
System\Windows\Forms\DataGridViewCellStyleTests.cs (15)
48
ForeColor = Color.
Blue
,
65
Assert.Equal(Color.
Blue
, style.ForeColor);
625
ForeColor = Color.
Blue
,
643
Assert.Equal(Color.
Blue
, style.ForeColor);
668
ForeColor = Color.
Blue
,
685
Assert.Equal(Color.
Blue
, style.ForeColor);
716
ForeColor = Color.
Blue
,
733
Assert.Equal(Color.
Blue
, style.ForeColor);
782
ForeColor = Color.
Blue
,
799
Assert.Equal(Color.
Blue
, style.ForeColor);
866
new DataGridViewCellStyle { BackColor = Color.
Blue
},
902
new DataGridViewCellStyle { ForeColor = Color.
Blue
},
986
new DataGridViewCellStyle { SelectionBackColor = Color.
Blue
},
998
new DataGridViewCellStyle { SelectionForeColor = Color.
Blue
},
1130
ForeColor = Color.
Blue
,
System\Windows\Forms\DataGridViewLinkColumnTests.cs (4)
135
var color = Color.
Blue
;
146
var color = Color.
Blue
;
312
_column.LinkColor = Color.
Blue
;
333
_column.LinkColor = Color.
Blue
;
System\Windows\Forms\DataGridViewRowTests.cs (6)
2069
ForeColor = Color.
Blue
,
2082
BackColor = Color.
Blue
,
4188
yield 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 };
4189
yield 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 };
4190
yield 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 };
4191
yield 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)
3273
_dataGridView.GridColor = Color.
Blue
;
3482
TestEvent(nameof(DataGridView.BackColorChanged), nameof(DataGridView.BackColor), Color.Red, Color.
Blue
);
3503
TestEvent(nameof(DataGridView.ForeColorChanged), nameof(DataGridView.ForeColor), Color.Red, Color.
Blue
);
System\Windows\Forms\DataGridViewTests.Rendering.cs (5)
23
GridColor = Color.
Blue
,
65
State.Pen(16, Color.
Blue
, penStyle),
71
State.Pen(16, Color.
Blue
, penStyle),
77
State.Pen(16, Color.
Blue
, penStyle),
83
State.Pen(16, Color.
Blue
, penStyle),
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
742
ForeColor = Color.
Blue
,
953
ForeColor = Color.
Blue
,
System\Windows\Forms\DateTimePickerTests.cs (1)
816
control.ForeColor = Color.
Blue
;
System\Windows\Forms\DrawItemEventArgsTests.cs (5)
41
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.None, Color.Red, Color.
Blue
};
42
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(-1, 2, -3, -4), 0, DrawItemState.Selected, Color.Red, Color.
Blue
};
43
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus, Color.Red, Color.
Blue
};
44
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.NoFocusRect, Color.Red, Color.
Blue
};
68
Assert.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)
16
yield return new object[] { new Rectangle(1, 2, 3, 4), -1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
17
yield return new object[] { new Rectangle(-1, 2, -3, -4), 0, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
18
yield return new object[] { new Rectangle(1, 2, 3, 4), 1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
42
Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewColumnHeaderEventArgs(null, new Rectangle(1, 2, 3, 4), 0, new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.
Blue
, SystemFonts.DefaultFont));
51
DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.
Blue
, SystemFonts.DefaultFont)
68
yield return new object[] { new Rectangle(1, 2, 3, 4), new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
69
yield return new object[] { new Rectangle(1, 2, 3, 4), new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
70
yield return new object[] { new Rectangle(1, 2, 3, 4), new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
92
DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, header, ListViewItemStates.Checked, Color.Red, Color.
Blue
, SystemFonts.DefaultFont);
101
DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.
Blue
, SystemFonts.DefaultFont);
108
yield return new object[] { new Rectangle(1, 2, 3, 4), -1, ListViewItemStates.Checked, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
System\Windows\Forms\DrawToolTipEventArgsTests.cs (5)
16
yield return new object[] { new Mock<IWin32Window>(MockBehavior.Strict).Object, new Button(), new Rectangle(1, 2, 3, 4), "", Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
17
yield return new object[] { new Mock<IWin32Window>(MockBehavior.Strict).Object, new Button(), new Rectangle(-1, -2, -3, -4), "toolTipText", Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
40
yield return new object[] { new SubWin32Window(), new Button(), new Rectangle(1, 2, 3, 4), null, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
41
yield return new object[] { new SubWin32Window(), new Button(), new Rectangle(1, 2, 3, 4), string.Empty, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
42
yield 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)
355
image2.SetPixel(0, 0, Color.
Blue
);
1160
image2.SetPixel(0, 0, Color.
Blue
);
1197
image2.SetPixel(0, 0, Color.
Blue
);
1309
image2.SetPixel(0, 0, Color.
Blue
);
1343
image2.SetPixel(0, 0, Color.
Blue
);
1407
image2.SetPixel(0, 0, Color.
Blue
);
1447
image2.SetPixel(0, 0, Color.
Blue
);
1499
image2.SetPixel(0, 0, Color.
Blue
);
System\Windows\Forms\ImageListTests.cs (4)
714
list.TransparentColor = Color.
Blue
;
715
Assert.Equal(Color.
Blue
, list.TransparentColor);
765
list.TransparentColor = Color.
Blue
;
766
Assert.Equal(Color.
Blue
, list.TransparentColor);
System\Windows\Forms\ListViewItemConverterTests.cs (14)
57
ForeColor = Color.
Blue
61
BackColor = Color.
Blue
195
new object[] { new string[] { "text3" }, 1, Color.
Blue
, Color.Empty, null }
201
new object[] { new string[] { "text4" }, 1, Color.Empty, Color.
Blue
, null }
213
new object[] { new string[] { "text3" }, "imageKey", Color.
Blue
, Color.Empty, null }
219
new object[] { new string[] { "text4" }, "imageKey", Color.Empty, Color.
Blue
, null }
231
new ListViewItem(["text"], "imageKey", Color.Red, Color.
Blue
, SystemFonts.MenuFont),
233
new object[] { new string[] { "text" }, "imageKey", Color.Red, Color.
Blue
, SystemFonts.MenuFont }
237
new ListViewItem(["text"], 1, Color.Red, Color.
Blue
, SystemFonts.MenuFont),
239
new object[] { new string[] { "text" }, 1, Color.Red, Color.
Blue
, SystemFonts.MenuFont }
243
new ListViewItem(["text"], "imageKey", Color.Red, Color.
Blue
, SystemFonts.MenuFont, group),
245
new object[] { new string[] { "text" }, "imageKey", Color.Red, Color.
Blue
, SystemFonts.MenuFont }
249
new ListViewItem(["text"], 1, Color.Red, Color.
Blue
, SystemFonts.MenuFont, group),
251
new object[] { new string[] { "text" }, 1, Color.Red, Color.
Blue
, SystemFonts.MenuFont }
System\Windows\Forms\ListViewItemTests.cs (8)
49
yield return new object[] { new string[] { "text" }, "imageKey", Color.
Blue
, Color.Red, SystemFonts.MenuFont, new ListViewGroup(), "imageKey", Color.
Blue
, Color.Red, "text" };
87
yield return new object[] { new string[] { "text" }, 2, Color.
Blue
, Color.Red, SystemFonts.MenuFont, new ListViewGroup(), Color.
Blue
, Color.Red, "text" };
125
yield return new object[] { new string[] { "text" }, "imageKey", Color.
Blue
, Color.Red, SystemFonts.MenuFont, "imageKey", Color.
Blue
, Color.Red, "text" };
163
yield return new object[] { new string[] { "text" }, 2, Color.
Blue
, Color.Red, SystemFonts.MenuFont, Color.
Blue
, Color.Red, "text" };
System\Windows\Forms\ListViewSubItemCollectionTests.cs (9)
260
yield return new object[] { string.Empty, Color.Red, Color.
Blue
, SystemFonts.MenuFont, Color.Red, Color.
Blue
, string.Empty };
261
yield return new object[] { "reasonable", Color.Red, Color.
Blue
, SystemFonts.MenuFont, Color.Red, Color.
Blue
, "reasonable" };
390
yield return new object[] { Color.Red, Color.
Blue
, SystemFonts.MenuFont, Color.Red, Color.
Blue
};
391
yield return new object[] { Color.Red, Color.
Blue
, SystemFonts.MenuFont, Color.Red, Color.
Blue
};
421
Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((string[])null, Color.Red, Color.
Blue
, SystemFonts.MenuFont));
System\Windows\Forms\ListViewSubItemConverterTests.cs (2)
62
new ListViewItem.ListViewSubItem(null, "text", Color.Red, Color.
Blue
, SystemFonts.MenuFont),
64
new object[] { null, "text", Color.Red, Color.
Blue
, SystemFonts.MenuFont }
System\Windows\Forms\ListViewSubItemTests.cs (16)
57
yield return new object[] { new ListViewItem(), string.Empty, Color.Red, Color.
Blue
, SystemFonts.MenuFont, Color.Red, Color.
Blue
, string.Empty };
58
yield return new object[] { new ListViewItem(), "reasonable", Color.Red, Color.
Blue
, SystemFonts.MenuFont, Color.Red, Color.
Blue
, "reasonable" };
59
yield 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 };
63
yield return new object[] { item, "reasonable", Color.Red, Color.
Blue
, SystemFonts.MenuFont, Color.Red, Color.
Blue
, "reasonable" };
122
BackColor = Color.
Blue
171
BackColor = Color.
Blue
191
BackColor = Color.
Blue
371
ForeColor = Color.
Blue
422
ForeColor = Color.
Blue
442
ForeColor = Color.
Blue
558
var subItem = new ListViewItem.ListViewSubItem(owner, "text", Color.Red, Color.
Blue
, SystemFonts.MenuFont);
574
yield return new object[] { new ListViewItem.ListViewSubItem(null, "header", Color.Red, Color.
Blue
, SystemFonts.MenuFont) { Name = "name", Tag = "tag" } };
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (4)
81
value.BackColor = Color.
Blue
;
87
Assert.Equal(Color.
Blue
, bag.BackColor);
112
original.BackColor = Color.
Blue
;
126
Assert.Equal(Color.
Blue
, bag.BackColor);
System\Windows\Forms\PropertyGridTests.cs (6)
865
yield return new object[] { Color.
Blue
, Color.
Blue
};
1113
yield return new object[] { Color.
Blue
, Color.
Blue
};
1276
yield return new object[] { Color.
Blue
, Color.
Blue
};
System\Windows\Forms\StatusStripTests.Rendering.cs (2)
19
BackColor = Color.
Blue
,
47
Validate.BitBltValidator(bitBltBounds, State.BrushColor(Color.
Blue
)),
System\Windows\Forms\TextRendererTests.cs (52)
52
yield return new object[] { hint, text, null, Point.Empty, Color.Red, Color.
Blue
};
53
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Red, Color.
Blue
};
54
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Black, Color.
Blue
};
55
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.White, Color.
Blue
};
56
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Transparent, Color.
Blue
};
57
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Empty, Color.
Blue
};
123
yield return new object[] { hint, text, null, Point.Empty, Color.Red, Color.
Blue
, TextFormatFlags.Default, };
124
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Red, Color.
Blue
, TextFormatFlags.Default, };
125
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Black, Color.
Blue
, TextFormatFlags.Default, };
126
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.White, Color.
Blue
, TextFormatFlags.Default, };
127
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Transparent, Color.
Blue
, TextFormatFlags.Default, };
128
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Empty, Color.
Blue
, TextFormatFlags.Default, };
135
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter };
136
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, TextFormatFlags.Bottom | TextFormatFlags.Right };
137
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, TextFormatFlags.SingleLine };
138
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, (TextFormatFlags)1024 };
139
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, TextFormatFlags.RightToLeft };
140
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, (TextFormatFlags)int.MaxValue };
196
yield return new object[] { hint, text, null, Rectangle.Empty, Color.Red, Color.
Blue
};
197
yield return new object[] { hint, text, null, new Rectangle(1, 2, -3, -4), Color.Red, Color.
Blue
};
198
yield return new object[] { hint, text, null, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.Red, Color.
Blue
};
199
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
};
200
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Black, Color.
Blue
};
201
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.White, Color.
Blue
};
202
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Transparent, Color.
Blue
};
203
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Empty, Color.
Blue
};
272
yield return new object[] { hint, text, null, Rectangle.Empty, Color.Red, Color.
Blue
, TextFormatFlags.Default, };
273
yield return new object[] { hint, text, null, new Rectangle(1, 2, -3, -4), Color.Red, Color.
Blue
, TextFormatFlags.Default, };
274
yield return new object[] { hint, text, null, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.
Blue
, Color.
Blue
, TextFormatFlags.Default, };
275
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, TextFormatFlags.Default, };
276
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Black, Color.
Blue
, TextFormatFlags.Default, };
277
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.White, Color.
Blue
, TextFormatFlags.Default, };
278
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Transparent, Color.
Blue
, TextFormatFlags.Default, };
279
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Empty, Color.
Blue
, TextFormatFlags.Default, };
286
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter };
287
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, TextFormatFlags.Bottom | TextFormatFlags.Right };
288
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, TextFormatFlags.SingleLine };
289
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.Red, Color.
Blue
, TextFormatFlags.SingleLine };
290
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, (TextFormatFlags)1024 };
291
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, TextFormatFlags.RightToLeft };
292
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, (TextFormatFlags)int.MaxValue };
329
TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
);
337
TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, TextFormatFlags.Default);
349
TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
);
353
TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, TextFormatFlags.Default);
361
TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
);
369
TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, TextFormatFlags.Default);
381
TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
);
385
TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, TextFormatFlags.Default);
585
State.TextColor(Color.
Blue
),
594
pt: default, Color.
Blue
),
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (5)
24
yield return new object[] { graphics, new ToolStripButton(), new Rectangle(1, 2, 3, 4), Color.
Blue
, ArrowDirection.Down };
25
yield return new object[] { graphics, new ToolStripButton(), new Rectangle(-1, -2, -3, -4), Color.
Blue
, ArrowDirection.Down };
54
ToolStripArrowRenderEventArgs e = new(graphics, button, new Rectangle(1, 2, 3, 4), Color.
Blue
, ArrowDirection.Down)
74
ToolStripArrowRenderEventArgs e = new(graphics, button, new Rectangle(1, 2, 3, 4), Color.
Blue
, ArrowDirection.Down)
89
ToolStripArrowRenderEventArgs e = new(graphics, button, new Rectangle(1, 2, 3, 4), Color.
Blue
, ArrowDirection.Down)
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (2)
46
BackColor = Color.
Blue
,
62
State.Brush(Color.
Blue
, BRUSH_STYLE.BS_SOLID)));
System\Windows\Forms\ToolStripContentPanelTests.cs (8)
627
yield return new object[] { Color.Empty, Color.
Blue
};
638
BackColor = Color.
Blue
646
Assert.Equal(Color.
Blue
, parent.BackColor);
652
Assert.Equal(Color.
Blue
, parent.BackColor);
659
yield return new object[] { Color.Empty, Color.
Blue
, Color.
Blue
};
660
yield return new object[] { Color.Red, Color.Red, Color.
Blue
};
670
BackColor = Color.
Blue
System\Windows\Forms\ToolStripControlHostTests.cs (1)
34
ForeColor = Color.
Blue
,
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (1)
84
ToolStripItemTextRenderEventArgs e = new(graphics, new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.
Blue
, SystemFonts.DefaultFont, TextFormatFlags.Top)
System\Windows\Forms\ToolStripLabelTests.cs (3)
160
Color expectedColor = Color.
Blue
;
208
_toolStripLabel.LinkColor = Color.
Blue
;
223
{ nameof(ToolStripLabel.LinkColor), Color.
Blue
, true },
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
285
ForeColor = Color.
Blue
,
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (2)
58
yield 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)
19
BackColor = Color.
Blue
,
51
State.BrushColor(Color.
Blue
)),
System\Windows\Forms\TreeNodeTests.cs (10)
336
yield return new object[] { Color.
Blue
};
346
BackColor = Color.
Blue
364
BackColor = Color.
Blue
382
yield return new object[] { Color.
Blue
, 0 };
392
BackColor = Color.
Blue
777
yield return new object[] { Color.
Blue
};
787
ForeColor = Color.
Blue
805
ForeColor = Color.
Blue
823
yield return new object[] { Color.
Blue
, 0 };
833
ForeColor = Color.
Blue
System\Windows\Forms\TreeViewTests.cs (6)
6023
ForeColor = Color.
Blue
,
6051
Assert.Equal(Color.
Blue
, control.ForeColor);
6069
Assert.Equal(Color.
Blue
, control.ForeColor);
6103
ForeColor = Color.
Blue
,
6132
Assert.Equal(Color.
Blue
, control.ForeColor);
6150
Assert.Equal(Color.
Blue
, control.ForeColor);
ToolStripContainerTests.cs (1)
67
_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
);