364 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)
675
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\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 (303)
CheckedListBoxTests.cs (4)
405
yield return new object[] { null, Rectangle.Empty, 0, DrawItemState.Default, Color.Red, Color.
Blue
};
406
yield return new object[] { null, new Rectangle(1, 2, 3, 4), 1, DrawItemState.None, Color.Red, Color.
Blue
};
407
yield return new object[] { null, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Checked, Color.Red, Color.
Blue
};
408
yield return new object[] { new Font("Arial", 8.25f), new Rectangle(10, 20, 30, 40), 1, DrawItemState.Default, Color.Red, Color.
Blue
};
System\Windows\Forms\ColorDialogTests.cs (1)
132
Color = Color.
Blue
System\Windows\Forms\ControlPaintTests.cs (50)
586
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 };
587
yield return new object[] { Rectangle.Empty, Color.Red, 1, style, Color.Green, 2, style, Color.
Blue
, 3, style, Color.Yellow, 4, style };
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 };
590
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 };
591
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 };
592
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 };
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, 0, 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, 0, style };
595
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 };
596
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 };
597
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 };
599
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 };
600
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 };
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, 0, 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, 0, style };
604
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 };
605
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 };
607
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 };
632
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 };
633
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 };
634
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 };
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, -1, 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, -1, style };
637
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 };
638
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 };
639
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 };
641
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 };
642
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 };
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, -1, 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, -1, style };
646
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 };
647
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 };
649
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 };
1187
yield return new object[] { Rectangle.Empty, Color.Red, Color.
Blue
};
1188
yield return new object[] { new Rectangle(1, 2, -3, -4), Color.Red, Color.
Blue
};
1189
yield return new object[] { new Rectangle(0, 0, 3, 4), 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(1, 2, 3, 4), Color.Black, Color.
Blue
};
1192
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.White, Color.
Blue
};
1193
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Empty, Color.
Blue
};
1194
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Transparent, Color.
Blue
};
1200
yield return new object[] { new Rectangle(1, 2, 4, 3), Color.Red, Color.
Blue
};
1201
yield return new object[] { new Rectangle(1, 2, 3, 3), Color.Red, Color.
Blue
};
1220
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawFocusRectangle(null, new Rectangle(1, 2, 3, 4), Color.Red, Color.
Blue
));
1412
yield return new object[] { new Rectangle(0, 0, 3, 4), glyph, Color.Red, Color.
Blue
};
1413
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Red, Color.
Blue
};
1414
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Black, Color.
Blue
};
1415
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.White, Color.
Blue
};
1416
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Empty, Color.
Blue
};
1417
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Transparent, Color.
Blue
};
System\Windows\Forms\ControlPaintTests.Rendering.cs (2)
22
ControlPaint.DrawBorder(graphics, bounds, Color.
Blue
, ButtonBorderStyle.Solid);
29
State.Pen(1, Color.
Blue
, PEN_STYLE.PS_SOLID)));
System\Windows\Forms\ControlTests.ControlCollection.cs (16)
654
owner.BackColor = Color.
Blue
;
764
Assert.Equal(Color.
Blue
, control.BackColor);
804
owner.BackColor = Color.
Blue
;
923
Assert.Equal(Color.
Blue
, control.BackColor);
957
owner.BackColor = Color.
Blue
;
1000
Assert.Equal(Color.
Blue
, control.BackColor);
1030
owner.BackColor = Color.
Blue
;
1080
Assert.Equal(Color.
Blue
, control.BackColor);
2357
owner.BackColor = Color.
Blue
;
2358
Assert.Equal(Color.
Blue
, control.BackColor);
2501
owner.BackColor = Color.
Blue
;
2502
Assert.Equal(Color.
Blue
, control.BackColor);
2633
owner.BackColor = Color.
Blue
;
2634
Assert.Equal(Color.
Blue
, control.BackColor);
2697
owner.BackColor = Color.
Blue
;
2698
Assert.Equal(Color.
Blue
, control.BackColor);
System\Windows\Forms\ControlTests.Properties.cs (10)
10724
BackColor = Color.
Blue
,
10740
BackColor = Color.
Blue
,
10759
ForeColor = Color.
Blue
10811
Assert.Equal(Color.
Blue
, control.BackColor);
10827
Assert.Equal(Color.
Blue
, control.BackColor);
10843
Assert.Equal(Color.
Blue
, control.BackColor);
10861
Assert.Equal(Color.
Blue
, control.ForeColor);
10898
BackColor = Color.
Blue
,
10914
BackColor = Color.
Blue
,
10933
ForeColor = Color.
Blue
System\Windows\Forms\DataGridViewCellStyleTests.cs (15)
46
ForeColor = Color.
Blue
,
63
Assert.Equal(Color.
Blue
, style.ForeColor);
624
ForeColor = Color.
Blue
,
642
Assert.Equal(Color.
Blue
, style.ForeColor);
667
ForeColor = Color.
Blue
,
684
Assert.Equal(Color.
Blue
, style.ForeColor);
715
ForeColor = Color.
Blue
,
732
Assert.Equal(Color.
Blue
, style.ForeColor);
782
ForeColor = Color.
Blue
,
799
Assert.Equal(Color.
Blue
, style.ForeColor);
867
new DataGridViewCellStyle { BackColor = Color.
Blue
},
903
new DataGridViewCellStyle { ForeColor = Color.
Blue
},
987
new DataGridViewCellStyle { SelectionBackColor = Color.
Blue
},
999
new DataGridViewCellStyle { SelectionForeColor = Color.
Blue
},
1131
ForeColor = Color.
Blue
,
System\Windows\Forms\DataGridViewRowTests.cs (6)
2067
ForeColor = Color.
Blue
,
2080
BackColor = Color.
Blue
,
4186
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 };
4187
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 };
4188
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 };
4189
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)
3271
_dataGridView.GridColor = Color.
Blue
;
3480
TestEvent(nameof(DataGridView.BackColorChanged), nameof(DataGridView.BackColor), Color.Red, Color.
Blue
);
3501
TestEvent(nameof(DataGridView.ForeColorChanged), nameof(DataGridView.ForeColor), Color.Red, Color.
Blue
);
System\Windows\Forms\DataGridViewTests.Rendering.cs (5)
21
GridColor = Color.
Blue
,
63
State.Pen(16, Color.
Blue
, penStyle),
69
State.Pen(16, Color.
Blue
, penStyle),
75
State.Pen(16, Color.
Blue
, penStyle),
81
State.Pen(16, Color.
Blue
, penStyle),
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
740
ForeColor = Color.
Blue
,
951
ForeColor = Color.
Blue
,
System\Windows\Forms\DateTimePickerTests.cs (1)
814
control.ForeColor = Color.
Blue
;
System\Windows\Forms\DrawItemEventArgsTests.cs (5)
39
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.None, Color.Red, Color.
Blue
};
40
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(-1, 2, -3, -4), 0, DrawItemState.Selected, Color.Red, Color.
Blue
};
41
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus, Color.Red, Color.
Blue
};
42
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Focus | DrawItemState.NoFocusRect, Color.Red, Color.
Blue
};
66
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)
14
yield return new object[] { new Rectangle(1, 2, 3, 4), -1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
15
yield return new object[] { new Rectangle(-1, 2, -3, -4), 0, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
16
yield return new object[] { new Rectangle(1, 2, 3, 4), 1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
40
Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewColumnHeaderEventArgs(null, new Rectangle(1, 2, 3, 4), 0, new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.
Blue
, SystemFonts.DefaultFont));
49
DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.
Blue
, SystemFonts.DefaultFont)
66
yield return new object[] { new Rectangle(1, 2, 3, 4), new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
67
yield return new object[] { new Rectangle(1, 2, 3, 4), new ColumnHeader(), ListViewItemStates.Default, 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 };
90
DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, header, ListViewItemStates.Checked, Color.Red, Color.
Blue
, SystemFonts.DefaultFont);
99
DrawListViewColumnHeaderEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4), -1, new ColumnHeader(), ListViewItemStates.Checked, Color.Red, Color.
Blue
, SystemFonts.DefaultFont);
106
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)
14
yield return new object[] { new Mock<IWin32Window>(MockBehavior.Strict).Object, new Button(), new Rectangle(1, 2, 3, 4), "", Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
15
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 };
38
yield return new object[] { new SubWin32Window(), new Button(), new Rectangle(1, 2, 3, 4), null, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
39
yield return new object[] { new SubWin32Window(), new Button(), new Rectangle(1, 2, 3, 4), string.Empty, Color.Red, Color.
Blue
, SystemFonts.DefaultFont };
40
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)
353
image2.SetPixel(0, 0, Color.
Blue
);
1158
image2.SetPixel(0, 0, Color.
Blue
);
1195
image2.SetPixel(0, 0, Color.
Blue
);
1307
image2.SetPixel(0, 0, Color.
Blue
);
1341
image2.SetPixel(0, 0, Color.
Blue
);
1405
image2.SetPixel(0, 0, Color.
Blue
);
1445
image2.SetPixel(0, 0, Color.
Blue
);
1497
image2.SetPixel(0, 0, Color.
Blue
);
System\Windows\Forms\ImageListTests.cs (4)
712
list.TransparentColor = Color.
Blue
;
713
Assert.Equal(Color.
Blue
, list.TransparentColor);
763
list.TransparentColor = Color.
Blue
;
764
Assert.Equal(Color.
Blue
, list.TransparentColor);
System\Windows\Forms\ListViewItemConverterTests.cs (14)
55
ForeColor = Color.
Blue
59
BackColor = Color.
Blue
193
new object[] { new string[] { "text3" }, 1, Color.
Blue
, Color.Empty, null }
199
new object[] { new string[] { "text4" }, 1, Color.Empty, Color.
Blue
, null }
211
new object[] { new string[] { "text3" }, "imageKey", Color.
Blue
, Color.Empty, null }
217
new object[] { new string[] { "text4" }, "imageKey", Color.Empty, Color.
Blue
, null }
229
new ListViewItem(["text"], "imageKey", Color.Red, Color.
Blue
, SystemFonts.MenuFont),
231
new object[] { new string[] { "text" }, "imageKey", Color.Red, Color.
Blue
, SystemFonts.MenuFont }
235
new ListViewItem(["text"], 1, Color.Red, Color.
Blue
, SystemFonts.MenuFont),
237
new object[] { new string[] { "text" }, 1, Color.Red, Color.
Blue
, SystemFonts.MenuFont }
241
new ListViewItem(["text"], "imageKey", Color.Red, Color.
Blue
, SystemFonts.MenuFont, group),
243
new object[] { new string[] { "text" }, "imageKey", Color.Red, Color.
Blue
, SystemFonts.MenuFont }
247
new ListViewItem(["text"], 1, Color.Red, Color.
Blue
, SystemFonts.MenuFont, group),
249
new object[] { new string[] { "text" }, 1, Color.Red, Color.
Blue
, SystemFonts.MenuFont }
System\Windows\Forms\ListViewItemTests.cs (8)
47
yield return new object[] { new string[] { "text" }, "imageKey", Color.
Blue
, Color.Red, SystemFonts.MenuFont, new ListViewGroup(), "imageKey", Color.
Blue
, Color.Red, "text" };
85
yield return new object[] { new string[] { "text" }, 2, Color.
Blue
, Color.Red, SystemFonts.MenuFont, new ListViewGroup(), Color.
Blue
, Color.Red, "text" };
123
yield return new object[] { new string[] { "text" }, "imageKey", Color.
Blue
, Color.Red, SystemFonts.MenuFont, "imageKey", Color.
Blue
, Color.Red, "text" };
161
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)
259
yield return new object[] { string.Empty, Color.Red, Color.
Blue
, SystemFonts.MenuFont, Color.Red, Color.
Blue
, string.Empty };
260
yield return new object[] { "reasonable", Color.Red, Color.
Blue
, SystemFonts.MenuFont, Color.Red, Color.
Blue
, "reasonable" };
389
yield return new object[] { Color.Red, Color.
Blue
, SystemFonts.MenuFont, Color.Red, Color.
Blue
};
390
yield return new object[] { Color.Red, Color.
Blue
, SystemFonts.MenuFont, Color.Red, Color.
Blue
};
420
Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((string[])null, Color.Red, Color.
Blue
, SystemFonts.MenuFont));
System\Windows\Forms\ListViewSubItemConverterTests.cs (2)
60
new ListViewItem.ListViewSubItem(null, "text", Color.Red, Color.
Blue
, SystemFonts.MenuFont),
62
new object[] { null, "text", Color.Red, Color.
Blue
, SystemFonts.MenuFont }
System\Windows\Forms\ListViewSubItemTests.cs (16)
56
yield return new object[] { new ListViewItem(), string.Empty, Color.Red, Color.
Blue
, SystemFonts.MenuFont, Color.Red, Color.
Blue
, string.Empty };
57
yield return new object[] { new ListViewItem(), "reasonable", Color.Red, Color.
Blue
, SystemFonts.MenuFont, Color.Red, Color.
Blue
, "reasonable" };
58
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 };
62
yield return new object[] { item, "reasonable", Color.Red, Color.
Blue
, SystemFonts.MenuFont, Color.Red, Color.
Blue
, "reasonable" };
121
BackColor = Color.
Blue
170
BackColor = Color.
Blue
190
BackColor = Color.
Blue
370
ForeColor = Color.
Blue
421
ForeColor = Color.
Blue
441
ForeColor = Color.
Blue
557
var subItem = new ListViewItem.ListViewSubItem(owner, "text", Color.Red, Color.
Blue
, SystemFonts.MenuFont);
573
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)
79
value.BackColor = Color.
Blue
;
85
Assert.Equal(Color.
Blue
, bag.BackColor);
110
original.BackColor = Color.
Blue
;
124
Assert.Equal(Color.
Blue
, bag.BackColor);
System\Windows\Forms\PropertyGridTests.cs (6)
863
yield return new object[] { Color.
Blue
, Color.
Blue
};
1111
yield return new object[] { Color.
Blue
, Color.
Blue
};
1274
yield return new object[] { Color.
Blue
, Color.
Blue
};
System\Windows\Forms\StatusStripTests.Rendering.cs (2)
17
BackColor = Color.
Blue
,
45
Validate.BitBltValidator(bitBltBounds, State.BrushColor(Color.
Blue
)),
System\Windows\Forms\TextRendererTests.cs (52)
50
yield return new object[] { hint, text, null, Point.Empty, Color.Red, Color.
Blue
};
51
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Red, Color.
Blue
};
52
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Black, Color.
Blue
};
53
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.White, Color.
Blue
};
54
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Transparent, Color.
Blue
};
55
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Empty, Color.
Blue
};
121
yield return new object[] { hint, text, null, Point.Empty, Color.Red, Color.
Blue
, TextFormatFlags.Default, };
122
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Red, Color.
Blue
, TextFormatFlags.Default, };
123
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Black, Color.
Blue
, TextFormatFlags.Default, };
124
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.White, Color.
Blue
, TextFormatFlags.Default, };
125
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Transparent, Color.
Blue
, TextFormatFlags.Default, };
126
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Empty, Color.
Blue
, TextFormatFlags.Default, };
133
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter };
134
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, TextFormatFlags.Bottom | TextFormatFlags.Right };
135
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, TextFormatFlags.SingleLine };
136
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, (TextFormatFlags)1024 };
137
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, TextFormatFlags.RightToLeft };
138
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, (TextFormatFlags)int.MaxValue };
194
yield return new object[] { hint, text, null, Rectangle.Empty, Color.Red, Color.
Blue
};
195
yield return new object[] { hint, text, null, new Rectangle(1, 2, -3, -4), Color.Red, Color.
Blue
};
196
yield return new object[] { hint, text, null, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.Red, Color.
Blue
};
197
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
};
198
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Black, Color.
Blue
};
199
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.White, Color.
Blue
};
200
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Transparent, Color.
Blue
};
201
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Empty, Color.
Blue
};
270
yield return new object[] { hint, text, null, Rectangle.Empty, Color.Red, Color.
Blue
, TextFormatFlags.Default, };
271
yield return new object[] { hint, text, null, new Rectangle(1, 2, -3, -4), Color.Red, Color.
Blue
, TextFormatFlags.Default, };
272
yield return new object[] { hint, text, null, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.
Blue
, Color.
Blue
, TextFormatFlags.Default, };
273
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, TextFormatFlags.Default, };
274
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Black, Color.
Blue
, TextFormatFlags.Default, };
275
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.White, Color.
Blue
, TextFormatFlags.Default, };
276
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Transparent, Color.
Blue
, TextFormatFlags.Default, };
277
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Empty, Color.
Blue
, TextFormatFlags.Default, };
284
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter };
285
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, TextFormatFlags.Bottom | TextFormatFlags.Right };
286
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, TextFormatFlags.SingleLine };
287
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.Red, Color.
Blue
, TextFormatFlags.SingleLine };
288
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, (TextFormatFlags)1024 };
289
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, TextFormatFlags.RightToLeft };
290
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, (TextFormatFlags)int.MaxValue };
327
TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
);
335
TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, TextFormatFlags.Default);
347
TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
);
351
TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, TextFormatFlags.Default);
359
TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
);
367
TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.Red, Color.
Blue
, TextFormatFlags.Default);
379
TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
);
383
TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.
Blue
, TextFormatFlags.Default);
583
State.TextColor(Color.
Blue
),
592
pt: default, Color.
Blue
),
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (5)
22
yield return new object[] { graphics, new ToolStripButton(), new Rectangle(1, 2, 3, 4), Color.
Blue
, ArrowDirection.Down };
23
yield return new object[] { graphics, new ToolStripButton(), new Rectangle(-1, -2, -3, -4), Color.
Blue
, ArrowDirection.Down };
52
ToolStripArrowRenderEventArgs e = new(graphics, button, new Rectangle(1, 2, 3, 4), Color.
Blue
, ArrowDirection.Down)
72
ToolStripArrowRenderEventArgs e = new(graphics, button, new Rectangle(1, 2, 3, 4), Color.
Blue
, ArrowDirection.Down)
87
ToolStripArrowRenderEventArgs e = new(graphics, button, new Rectangle(1, 2, 3, 4), Color.
Blue
, ArrowDirection.Down)
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (2)
44
BackColor = Color.
Blue
,
60
State.Brush(Color.
Blue
, BRUSH_STYLE.BS_SOLID)));
System\Windows\Forms\ToolStripContentPanelTests.cs (8)
625
yield return new object[] { Color.Empty, Color.
Blue
};
636
BackColor = Color.
Blue
644
Assert.Equal(Color.
Blue
, parent.BackColor);
650
Assert.Equal(Color.
Blue
, parent.BackColor);
657
yield return new object[] { Color.Empty, Color.
Blue
, Color.
Blue
};
658
yield return new object[] { Color.Red, Color.Red, Color.
Blue
};
668
BackColor = Color.
Blue
System\Windows\Forms\ToolStripControlHostTests.cs (1)
32
ForeColor = Color.
Blue
,
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (1)
82
ToolStripItemTextRenderEventArgs e = new(graphics, new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.
Blue
, SystemFonts.DefaultFont, TextFormatFlags.Top)
System\Windows\Forms\ToolStripLabelTests.cs (3)
162
Color expectedColor = Color.
Blue
;
210
_toolStripLabel.LinkColor = Color.
Blue
;
225
{ nameof(ToolStripLabel.LinkColor), Color.
Blue
, true },
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
287
ForeColor = Color.
Blue
,
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (2)
56
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)
17
BackColor = Color.
Blue
,
49
State.BrushColor(Color.
Blue
)),
System\Windows\Forms\TreeNodeTests.cs (10)
334
yield return new object[] { Color.
Blue
};
344
BackColor = Color.
Blue
362
BackColor = Color.
Blue
380
yield return new object[] { Color.
Blue
, 0 };
390
BackColor = Color.
Blue
775
yield return new object[] { Color.
Blue
};
785
ForeColor = Color.
Blue
803
ForeColor = Color.
Blue
821
yield return new object[] { Color.
Blue
, 0 };
831
ForeColor = Color.
Blue
System\Windows\Forms\TreeViewTests.cs (6)
6021
ForeColor = Color.
Blue
,
6049
Assert.Equal(Color.
Blue
, control.ForeColor);
6067
Assert.Equal(Color.
Blue
, control.ForeColor);
6101
ForeColor = Color.
Blue
,
6130
Assert.Equal(Color.
Blue
, control.ForeColor);
6148
Assert.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
);