1566 references to Red
Accessibility_Core_App (4)
ContainerControls2.Designer.cs (4)
96
this.splitContainer1.Panel2.BackColor = System.Drawing.Color.
Red
;
137
this.tableLayoutPanel1.BackColor = System.Drawing.Color.
Red
;
341
this.splitContainer2.Panel2.BackColor = System.Drawing.Color.
Red
;
381
this.tabPage8.BackColor = System.Drawing.Color.
Red
;
DesignSurface (2)
MainForm.cs (1)
324
splitContainer.BackColor = Color.
Red
;
MainForm.MyScrollableControl.cs (1)
20
BackColor = Color.
Red
;
System.Drawing.Common.Tests (340)
mono\System.Drawing.Imaging\GifCodecTests.cs (1)
186
using (Pen p = new(Color.
Red
, 2))
mono\System.Drawing.Imaging\IconCodecTests.cs (1)
1870
using (Pen p = new(Color.
Red
, 2))
mono\System.Drawing.Imaging\JpegCodecTests.cs (1)
351
using (Pen p = new(Color.
Red
, 2))
mono\System.Drawing\BitmapTests.cs (4)
674
Color red = Color.FromArgb(Color.
Red
.A, Color.
Red
.R, Color.
Red
.G, Color.
Red
.B);
mono\System.Drawing\GraphicsTests.cs (11)
834
using Pen pen = new(Color.
Red
);
849
using Pen pen = new(Color.
Red
);
871
using SolidBrush brush = new(Color.
Red
);
886
using SolidBrush brush = new(Color.
Red
);
1198
Assert.Equal(Color.
Red
.ToArgb(), bitmap.GetPixel(5, 5).ToArgb());
1199
Assert.Equal(Color.
Red
.ToArgb(), bitmap.GetPixel(14, 5).ToArgb());
1200
Assert.Equal(Color.
Red
.ToArgb(), bitmap.GetPixel(5, 14).ToArgb());
1201
Assert.Equal(Color.
Red
.ToArgb(), bitmap.GetPixel(14, 14).ToArgb());
1213
g.Clear(Color.
Red
);
1377
g.Clear(Color.
Red
);
1523
g.Clear(Color.
Red
);
System\Drawing\BitmapTests.cs (12)
799
bitmap.SetPixel(x, y, Color.
Red
);
835
bitmap.SetPixel(x, y, Color.
Red
);
869
bitmap.MakeTransparent(Color.
Red
);
886
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.MakeTransparent(Color.
Red
));
897
bitmap.MakeTransparent(Color.
Red
);
909
Assert.Throws<InvalidOperationException>(() => bitmap.MakeTransparent(Color.
Red
));
933
Assert.Throws<InvalidOperationException>(() => bitmap.SetPixel(0, 0, Color.
Red
));
942
AssertExtensions.Throws<ArgumentOutOfRangeException>("x", () => bitmap.SetPixel(x, 0, Color.
Red
));
951
AssertExtensions.Throws<ArgumentOutOfRangeException>("y", () => bitmap.SetPixel(0, y, Color.
Red
));
958
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.SetPixel(0, 0, Color.
Red
));
967
AssertExtensions.Throws<ArgumentException>(null, () => bitmap.SetPixel(0, 0, Color.
Red
));
1465
Color red = Color.FromArgb(Color.
Red
.ToArgb());
System\Drawing\BrushesTests.cs (3)
123
yield return Brush(() => Brushes.Red, Color.
Red
);
168
brush.Color = Color.
Red
;
169
Assert.Equal(Color.
Red
, brush.Color);
System\Drawing\BufferedGraphicsTests.cs (3)
46
using SolidBrush brush = new(Color.
Red
);
66
using SolidBrush brush = new(Color.
Red
);
91
using SolidBrush brush = new(Color.
Red
);
System\Drawing\ColorTranslatorTests.cs (3)
47
yield return new object[] { Color.
Red
, 255 };
87
yield return new object[] { Color.
Red
, 255 };
159
yield return new object[] { "255,0,0", Color.
Red
};
System\Drawing\Drawing2D\GraphicsPathTests.cs (2)
2248
using Pen pen = new(Color.
Red
, 3.0f);
2275
using Pen pen = new(Color.
Red
, 3.0f);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (92)
11
yield return new object[] { new Point(1, 0), new Point(0, 0), Color.Empty, Color.
Red
, new RectangleF(0, -0.5f, 1, 1) };
12
yield return new object[] { new Point(1, 2), new Point(4, 6), Color.Plum, Color.
Red
, new RectangleF(1, 2, 3, 4) };
13
yield return new object[] { new Point(1, 2), new Point(4, 6), Color.
Red
, Color.
Red
, new RectangleF(1, 2, 3, 4) };
14
yield return new object[] { new Point(-1, -2), new Point(4, 6), Color.
Red
, Color.Plum, new RectangleF(-1, -2, 5, 8) };
40
using LinearGradientBrush brush = new(new PointF(float.NaN, float.NaN), new PointF(float.PositiveInfinity, float.NegativeInfinity), Color.Plum, Color.
Red
);
75
yield return new object[] { new Rectangle(0, 0, 1, 2), Color.Empty, Color.
Red
, LinearGradientMode.BackwardDiagonal };
76
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, LinearGradientMode.ForwardDiagonal };
77
yield return new object[] { new Rectangle(-1, -2, -3, -4), Color.
Red
, Color.
Red
, LinearGradientMode.Horizontal };
78
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.
Red
, Color.Plum, LinearGradientMode.Vertical };
117
yield return new object[] { new Rectangle(0, 0, 1, 2), Color.Empty, Color.
Red
, 90 };
118
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 180 };
119
yield return new object[] { new Rectangle(-1, -2, -3, -4), Color.
Red
, Color.
Red
, 0 };
120
yield return new object[] { new Rectangle(-1, -2, -3, -4), Color.
Red
, Color.
Red
, 360 };
121
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.
Red
, Color.Plum, 90 };
235
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
249
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
258
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
261
Colors = [Color.
Red
, Color.PeachPuff, Color.PowderBlue],
280
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
299
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
311
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
318
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
325
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
332
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
339
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
346
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
358
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true) { GammaCorrection = gammaCorrection };
365
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
375
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
378
Colors = [Color.
Red
, Color.PeachPuff, Color.PowderBlue],
390
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true)
400
Colors = [Color.
Red
, Color.PeachPuff, Color.PowderBlue],
411
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
418
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
427
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
436
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
446
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
459
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
470
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true)
474
Colors = [Color.
Red
, Color.PeachPuff, Color.PowderBlue],
491
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true)
495
Colors = [Color.
Red
, Color.PeachPuff, Color.PowderBlue],
510
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true)
514
Colors = [Color.
Red
, Color.PeachPuff, Color.PowderBlue],
534
Color[] colors = [Color.
Red
, Color.Blue, Color.AntiqueWhite];
535
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true) { LinearColors = colors };
542
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
551
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
558
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
562
AssertExtensions.Throws<ArgumentException>(null, () => brush.LinearColors = [Color.
Red
, Color.Wheat]);
568
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
578
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true) { Transform = transform };
585
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
592
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
606
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true) { WrapMode = wrapMode };
615
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
622
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
629
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
639
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
649
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
658
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
674
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
695
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
703
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
717
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
726
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
739
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
756
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
769
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
776
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
789
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
806
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
819
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
826
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
840
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
857
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
870
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
877
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
891
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
902
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
914
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
921
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
934
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 0, true);
948
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 0, true);
962
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
974
using LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
981
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
991
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
System\Drawing\Graphics_DrawBezierTests.cs (10)
26
using Pen pen = new(Color.
Red
);
45
using Pen pen = new(Color.
Red
);
75
Pen pen = new(Color.
Red
);
88
using Pen pen = new(Color.
Red
);
106
using Pen pen = new(Color.
Red
);
130
Pen pen = new(Color.
Red
);
142
using Pen pen = new(Color.
Red
);
152
using Pen pen = new(Color.
Red
);
162
using Pen pen = new(Color.
Red
);
179
using Pen pen = new(Color.
Red
);
System\Drawing\Graphics_DrawLineTests.cs (8)
54
Pen pen = new(Color.
Red
);
68
using Pen pen = new(Color.
Red
);
87
using Pen pen = new(Color.
Red
);
111
Pen pen = new(Color.
Red
);
123
using Pen pen = new(Color.
Red
);
135
using Pen pen = new(Color.
Red
);
145
using Pen pen = new(Color.
Red
);
162
using Pen pen = new(Color.
Red
);
System\Drawing\GraphicsTests.Core.cs (8)
85
Pen pen = new(Color.
Red
);
98
using Pen pen = new(Color.
Red
);
115
using Pen pen = new(Color.
Red
);
139
SolidBrush brush = new(Color.
Red
);
152
using SolidBrush brush = new(Color.
Red
);
163
using SolidBrush brush = new(Color.
Red
);
174
using SolidBrush brush = new(Color.
Red
);
191
using SolidBrush brush = new(Color.
Red
);
System\Drawing\GraphicsTests.cs (60)
819
Color red = Color.FromArgb(Color.
Red
.ToArgb());
858
Color red = Color.FromArgb(Color.
Red
.ToArgb());
1065
Color red = Color.FromArgb(Color.
Red
.ToArgb());
1228
LinearGradientBrush brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.
Red
, 45, true);
1916
yield return new object[] { PixelFormat.Format32bppArgb, Color.
Red
, Color.FromArgb(Color.
Red
.ToArgb()) };
1917
yield return new object[] { PixelFormat.Format16bppRgb555, Color.
Red
, Color.FromArgb(255, 248, 0, 0) };
1937
Assert.Throws<InvalidOperationException>(() => graphics.GetNearestColor(Color.
Red
));
1952
AssertExtensions.Throws<ArgumentException>(null, () => graphics.GetNearestColor(Color.
Red
));
1971
Pen pen = new(Color.
Red
);
1985
using Pen pen = new(Color.
Red
);
1997
using Pen pen = new(Color.
Red
);
2009
using Pen pen = new(Color.
Red
);
2028
using Pen pen = new(Color.
Red
);
2053
Pen pen = new(Color.
Red
);
2066
using Pen pen = new(Color.
Red
);
2084
using Pen pen = new(Color.
Red
);
2107
Pen pen = new(Color.
Red
);
2119
using Pen pen = new(Color.
Red
);
2129
using Pen pen = new(Color.
Red
);
2139
using Pen pen = new(Color.
Red
);
2156
using Pen pen = new(Color.
Red
);
2180
Pen pen = new(Color.
Red
);
2194
using Pen pen = new(Color.
Red
);
2213
using Pen pen = new(Color.
Red
);
2239
Pen pen = new(Color.
Red
);
2253
using Pen pen = new(Color.
Red
);
2265
using Pen pen = new(Color.
Red
);
2277
using Pen pen = new(Color.
Red
);
2296
using Pen pen = new(Color.
Red
);
2320
Pen pen = new(Color.
Red
);
2332
using Pen pen = new(Color.
Red
);
2344
using Pen pen = new(Color.
Red
);
2354
using Pen pen = new(Color.
Red
);
2371
using Pen pen = new(Color.
Red
);
2394
Pen pen = new(Color.
Red
);
2405
using Pen pen = new(Color.
Red
);
2414
using Pen pen = new(Color.
Red
);
2426
using Pen pen = new(Color.
Red
);
2443
using Pen pen = new(Color.
Red
);
2470
Pen pen = new(Color.
Red
);
2487
using Pen pen = new(Color.
Red
);
2504
using Pen pen = new(Color.
Red
);
2524
using Pen pen = new(Color.
Red
);
2535
using Pen pen = new(Color.
Red
);
2557
using Pen pen = new(Color.
Red
);
2586
Pen pen = new(Color.
Red
);
2600
using Pen pen = new(Color.
Red
);
2615
using Pen pen = new(Color.
Red
);
2627
using Pen pen = new(Color.
Red
);
2646
using Pen pen = new(Color.
Red
);
2671
SolidBrush brush = new(Color.
Red
);
2684
using SolidBrush brush = new(Color.
Red
);
2695
using SolidBrush brush = new(Color.
Red
);
2706
using SolidBrush brush = new(Color.
Red
);
2724
using SolidBrush brush = new(Color.
Red
);
2756
using Pen pen = new(Color.
Red
);
2760
Assert.Throws<InvalidOperationException>(() => graphics.Clear(Color.
Red
));
2772
using Pen pen = new(Color.
Red
);
2776
AssertExtensions.Throws<ArgumentException>(null, () => graphics.Clear(Color.
Red
));
System\Drawing\PensTests.cs (1)
125
yield return Pen(() => Pens.Red, Color.
Red
);
System\Drawing\PenTests.cs (101)
13
yield return new object[] { new SolidBrush(Color.
Red
), PenType.SolidColor };
14
yield return new object[] { new HatchBrush(HatchStyle.BackwardDiagonal, Color.
Red
), PenType.HatchFill };
41
yield return new object[] { new SolidBrush(Color.
Red
), 0, PenType.SolidColor };
48
yield return new object[] { new SolidBrush(Color.
Red
), float.PositiveInfinity, PenType.SolidColor };
49
yield return new object[] { new SolidBrush(Color.
Red
), float.NaN, PenType.SolidColor };
50
yield return new object[] { new SolidBrush(Color.
Red
), float.MaxValue, PenType.SolidColor };
67
using SolidBrush brush = new(Color.
Red
);
70
Assert.Equal(Color.FromArgb(Color.
Red
.ToArgb()), pen.Color);
84
SolidBrush brush = new(Color.
Red
);
94
using Pen pen = new(Color.
Red
);
96
Assert.Equal(Color.
Red
, pen.Color);
109
using Pen pen = new(Color.
Red
, width);
111
Assert.Equal(Color.
Red
, pen.Color);
122
using SolidBrush brush = new(Color.
Red
);
133
using SolidBrush brush = new(Color.
Red
);
141
using SolidBrush brush = new(Color.
Red
);
153
using Pen pen = new(Color.
Red
);
162
using Pen pen = new(Color.
Red
);
174
using SolidBrush brush = new(Color.
Red
);
182
using SolidBrush brush = new(Color.
Red
);
191
using SolidBrush brush = new(Color.
Red
);
201
using SolidBrush brush = new(Color.
Red
);
227
using SolidBrush brush = new(Color.
Red
);
237
using SolidBrush brush = new(Color.
Red
);
239
Assert.Equal(Color.FromArgb(Color.
Red
.ToArgb()), pen.Color);
245
using HatchBrush brush = new(HatchStyle.BackwardDiagonal, Color.
Red
);
253
using LinearGradientBrush brush = new(Point.Empty, new Point(1, 2), Color.Blue, Color.
Red
);
271
pen.Color = Color.
Red
;
272
Assert.Equal(Color.
Red
, pen.Color);
274
pen.Color = Color.
Red
;
275
Assert.Equal(Color.
Red
, pen.Color);
282
Pen pen = new(Color.
Red
);
285
Assert.Equal(Color.
Red
, pen.Color);
287
pen.Color = Color.
Red
;
288
Assert.Equal(Color.
Red
, pen.Color);
296
using SolidBrush brush = new(Color.
Red
);
301
AssertExtensions.Throws<ArgumentException>(null, () => pen.Color = Color.
Red
);
310
using SolidBrush brush = new(Color.
Red
);
323
using SolidBrush brush = new(Color.
Red
);
331
using SolidBrush brush = new(Color.
Red
);
347
using SolidBrush brush = new(Color.
Red
);
355
using SolidBrush brush = new(Color.
Red
);
366
using SolidBrush brush = new(Color.
Red
);
383
using SolidBrush brush = new(Color.
Red
);
391
using SolidBrush brush = new(Color.
Red
);
404
using SolidBrush brush = new(Color.
Red
);
418
using SolidBrush brush = new(Color.
Red
);
435
using SolidBrush brush = new(Color.
Red
);
443
using SolidBrush brush = new(Color.
Red
);
456
using SolidBrush brush = new(Color.
Red
);
473
using SolidBrush brush = new(Color.
Red
);
485
using SolidBrush brush = new(Color.
Red
);
493
using SolidBrush brush = new(Color.
Red
);
510
using SolidBrush brush = new(Color.
Red
);
519
using SolidBrush brush = new(Color.
Red
);
534
using SolidBrush brush = new(Color.
Red
);
548
using SolidBrush brush = new(Color.
Red
);
556
using SolidBrush brush = new(Color.
Red
);
568
using SolidBrush brush = new(Color.
Red
);
576
using SolidBrush brush = new(Color.
Red
);
593
using SolidBrush brush = new(Color.
Red
);
611
using SolidBrush brush = new(Color.
Red
);
625
using SolidBrush brush = new(Color.
Red
);
633
using SolidBrush brush = new(Color.
Red
);
660
using SolidBrush brush = new(Color.
Red
);
679
using SolidBrush brush = new(Color.
Red
);
687
using SolidBrush brush = new(Color.
Red
);
702
using SolidBrush brush = new(Color.
Red
);
713
using SolidBrush brush = new(Color.
Red
);
721
using SolidBrush brush = new(Color.
Red
);
738
using SolidBrush brush = new(Color.
Red
);
747
using SolidBrush brush = new(Color.
Red
);
769
using SolidBrush brush = new(Color.
Red
);
795
using SolidBrush brush = new(Color.
Red
);
804
using SolidBrush brush = new(Color.
Red
);
814
using SolidBrush brush = new(Color.
Red
);
833
using SolidBrush brush = new(Color.
Red
);
846
using SolidBrush brush = new(Color.
Red
);
858
using SolidBrush brush = new(Color.
Red
);
873
using SolidBrush brush = new(Color.
Red
);
898
using (SolidBrush brush = new(Color.
Red
))
922
using SolidBrush brush = new(Color.
Red
);
930
using SolidBrush brush = new(Color.
Red
);
958
using (SolidBrush brush = new(Color.
Red
))
982
using SolidBrush brush = new(Color.
Red
);
990
using SolidBrush brush = new(Color.
Red
);
1005
using SolidBrush brush = new(Color.
Red
);
1022
using SolidBrush brush = new(Color.
Red
);
1033
using SolidBrush brush = new(Color.
Red
);
1043
using SolidBrush brush = new(Color.
Red
);
1051
using SolidBrush brush = new(Color.
Red
);
1062
using SolidBrush brush = new(Color.
Red
);
1077
using SolidBrush brush = new(Color.
Red
);
1085
using SolidBrush brush = new(Color.
Red
);
1094
using SolidBrush brush = new(Color.
Red
);
1105
using SolidBrush brush = new(Color.
Red
);
1133
using (SolidBrush brush = new(Color.
Red
))
1157
using SolidBrush brush = new(Color.
Red
);
1165
using SolidBrush brush = new(Color.
Red
);
1183
using SolidBrush brush = new(Color.
Red
);
1192
using SolidBrush brush = new(Color.
Red
);
System\Drawing\SystemBrushesTests.cs (1)
53
AssertExtensions.Throws<ArgumentException>(null, () => brush.Color = Color.
Red
);
System\Drawing\TextureBrushTests.cs (18)
732
[Color.
Red
, Color.Green, empty, empty],
748
[Color.
Red
, Color.Green, Color.
Red
, Color.Green],
750
[Color.
Red
, Color.Green, Color.
Red
, Color.Green],
764
[Color.
Red
, Color.Green, Color.Green, Color.
Red
],
766
[Color.
Red
, Color.Green, Color.Green, Color.
Red
],
780
[Color.
Red
, Color.Green, Color.
Red
, Color.Green],
783
[Color.
Red
, Color.Green, Color.
Red
, Color.Green]
796
[Color.
Red
, Color.Green, Color.Green, Color.
Red
],
799
[Color.
Red
, Color.Green, Color.Green, Color.
Red
]
806
brushBitmap.SetPixel(0, 0, Color.
Red
);
System.Private.Windows.Core.TestUtilities (2)
CommonTestHelper.cs (2)
62
Color.
Red
,
70
Color.
Red
,
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (1)
8121
using Pen pen = new(Color.
Red
, width: 2);
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (2)
66
return Color.
Red
;
70
return Color.
Red
;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ControlDesigner.cs (1)
2280
using (Pen pen = new(Color.
Red
, penThickness))
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
81
s_selectedColumnsItemBitmap.MakeTransparent(Color.
Red
);
System.Windows.Forms.Design.Tests (10)
System\Drawing\Design\ColorEditorTests.cs (1)
25
yield return new object[] { Color.
Red
};
System\Drawing\Design\ImageEditorTests.cs (6)
163
otherImage.SetPixel(0, 0, Color.
Red
);
164
otherImage.SetPixel(1, 0, Color.
Red
);
165
otherImage.SetPixel(2, 0, Color.
Red
);
166
otherImage.SetPixel(0, 1, Color.
Red
);
167
otherImage.SetPixel(1, 1, Color.
Red
);
168
otherImage.SetPixel(2, 1, Color.
Red
);
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (1)
325
bitmap.SetPixel(0, 0, Color.
Red
);
System\Windows\Forms\Design\DataGridViewCellStyleBuilderTests.cs (2)
21
builder.CellStyle = new DataGridViewCellStyle { BackColor = Color.
Red
};
25
result.BackColor.Should().Be(Color.
Red
);
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextScopeTests.cs (1)
65
using CreateBrushScope redBrush = new(Color.
Red
);
System.Windows.Forms.Tests (1185)
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\BinaryFormatUtilitiesTests.cs (1)
74
Color.
Red
System\Windows\Forms\ButtonBaseTests.cs (8)
694
yield return new object[] { Color.
Red
, Color.
Red
, 2 };
741
control.BackColor = Color.
Red
;
742
Assert.Equal(Color.
Red
, control.BackColor);
746
control.BackColor = Color.
Red
;
747
Assert.Equal(Color.
Red
, control.BackColor);
757
control.BackColor = Color.
Red
;
758
Assert.Equal(Color.
Red
, control.BackColor);
System\Windows\Forms\ColorDialogTests.cs (7)
108
yield return new object[] { Color.
Red
, Color.
Red
};
150
dialog.Color = Color.
Red
;
151
Assert.Equal(Color.
Red
, dialog.Color);
166
dialog.Color = Color.
Red
;
167
Assert.Equal(Color.
Red
, dialog.Color);
327
Color = Color.
Red
,
System\Windows\Forms\ComboBoxTests.cs (28)
166
yield return new object[] { Color.
Red
, Color.
Red
};
189
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
255
control.BackColor = Color.
Red
;
256
Assert.Equal(Color.
Red
, control.BackColor);
260
control.BackColor = Color.
Red
;
261
Assert.Equal(Color.
Red
, control.BackColor);
271
control.BackColor = Color.
Red
;
272
Assert.Equal(Color.
Red
, control.BackColor);
283
control.BackColor = Color.
Red
;
284
Assert.Equal(Color.
Red
, control.BackColor);
299
control.BackColor = Color.
Red
;
300
Assert.Equal(Color.
Red
, control.BackColor);
1051
yield return new object[] { Color.
Red
, Color.
Red
};
1077
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
1123
control.ForeColor = Color.
Red
;
1124
Assert.Equal(Color.
Red
, control.ForeColor);
1128
control.ForeColor = Color.
Red
;
1129
Assert.Equal(Color.
Red
, control.ForeColor);
1139
control.ForeColor = Color.
Red
;
1140
Assert.Equal(Color.
Red
, control.ForeColor);
1151
control.ForeColor = Color.
Red
;
1152
Assert.Equal(Color.
Red
, control.ForeColor);
1167
control.ForeColor = Color.
Red
;
1168
Assert.Equal(Color.
Red
, control.ForeColor);
System\Windows\Forms\ControlPaintTests.cs (136)
16
yield return new object[] { new Bitmap(10, 10, PixelFormat.Format1bppIndexed), Color.
Red
};
17
yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppRgb), Color.
Red
};
18
yield return new object[] { new Bitmap(10, 10, PixelFormat.Format32bppArgb), Color.
Red
};
22
yield return new object[] { new Bitmap(11, 11, PixelFormat.Format1bppIndexed), Color.
Red
};
23
yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppRgb), Color.
Red
};
24
yield return new object[] { new Bitmap(11, 11, PixelFormat.Format32bppArgb), Color.
Red
};
25
yield return new object[] { new Bitmap(16, 24, PixelFormat.Format1bppIndexed), Color.
Red
};
26
yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppRgb), Color.
Red
};
27
yield return new object[] { new Bitmap(16, 24, PixelFormat.Format32bppArgb), Color.
Red
};
59
HBITMAP hBitmap = (HBITMAP)ControlPaint.CreateHBitmap16Bit(bitmap, Color.
Red
);
82
Assert.Throws<ArgumentNullException>(() => ControlPaint.CreateHBitmap16Bit(null, Color.
Red
));
544
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.
Red
, style };
552
yield return new object[] { new Rectangle(1, 2, 4, 3), Color.
Red
, style };
553
yield return new object[] { new Rectangle(1, 2, 3, 3), Color.
Red
, style };
576
ControlPaint.DrawBorder(graphics, new Rectangle(1, 2, 3, 4), Color.
Red
, style);
579
ControlPaint.DrawBorder(graphics, new Rectangle(1, 2, 3, 4), Color.
Red
, style);
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 };
675
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder(null, new Rectangle(1, 2, 3, 4), Color.
Red
, style));
683
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder(null, new Rectangle(1, 2, 3, 4), Color.
Red
, 1, style, Color.
Red
, 1, style, Color.
Red
, 1, style, Color.
Red
, 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 };
1195
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.
Red
, Color.Black };
1196
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.
Red
, Color.White };
1197
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.
Red
, Color.Empty };
1198
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.
Red
, Color.Transparent };
1199
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.
Red
, Color.
Red
};
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));
1263
yield return new object[] { Rectangle.Empty, new Size(1, 1), Color.
Red
};
1264
yield return new object[] { new Rectangle(1, 2, -3, -4), new Size(1, 1), Color.
Red
};
1265
yield return new object[] { new Rectangle(0, 0, 3, 4), new Size(1, 1), Color.
Red
};
1266
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), Color.
Red
};
1271
yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(10, 20), Color.
Red
};
1272
yield return new object[] { new Rectangle(1, 2, 4, 3), new Size(10, 20), Color.
Red
};
1273
yield return new object[] { new Rectangle(1, 2, 3, 3), new Size(10, 20), Color.
Red
};
1291
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawGrid(null, new Rectangle(1, 2, 3, 4), new Size(1, 1), Color.
Red
));
1303
Assert.Throws<ArgumentOutOfRangeException>("pixelsBetweenDots", () => ControlPaint.DrawGrid(graphics, new Rectangle(0, 0, width, height), new Size(width, height), Color.
Red
));
1308
yield return new object[] { new Bitmap(10, 10), -10, -20, Color.
Red
};
1309
yield return new object[] { new Bitmap(10, 10), 0, 0, Color.
Red
};
1310
yield return new object[] { new Bitmap(10, 10), 1, 2, Color.
Red
};
1316
yield return new object[] { new Metafile("bitmaps/telescope_01.wmf"), -10, -20, Color.
Red
};
1317
yield return new object[] { new Metafile("bitmaps/telescope_01.wmf"), 0, 0, Color.
Red
};
1318
yield return new object[] { new Metafile("bitmaps/telescope_01.wmf"), 1, 2, Color.
Red
};
1341
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawImageDisabled(null, image, 0, 0, Color.
Red
));
1349
Assert.Throws<NullReferenceException>(() => ControlPaint.DrawImageDisabled(graphics, null, 0, 0, Color.
Red
));
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 };
1418
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.
Red
, Color.Black };
1419
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.
Red
, Color.White };
1420
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.
Red
, Color.Empty };
1421
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.
Red
, Color.Transparent };
1422
yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.
Red
, Color.
Red
};
1423
yield return new object[] { new Rectangle(1, 2, 4, 3), glyph, Color.
Red
, Color.
Red
};
1424
yield return new object[] { new Rectangle(1, 2, 3, 3), glyph, Color.
Red
, Color.
Red
};
1682
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.
Red
, style };
1690
yield return new object[] { new Rectangle(1, 2, 4, 3), Color.
Red
, style };
1691
yield return new object[] { new Rectangle(1, 2, 3, 3), Color.
Red
, style };
1707
yield return new object[] { Point.Empty, Point.Empty, Color.
Red
};
1708
yield return new object[] { new Point(1, 2), new Point(1, 2), Color.
Red
};
1709
yield return new object[] { new Point(2, 3), new Point(1, 2), Color.
Red
};
1711
yield return new object[] { new Point(1, 2), new Point(2, 3), Color.
Red
};
1818
yield return new object[] { active, Rectangle.Empty, Rectangle.Empty, Color.
Red
};
1819
yield return new object[] { active, new Rectangle(1, 2, -3, -4), new Rectangle(1, 2, -3, -4), Color.
Red
};
1820
yield return new object[] { active, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), Color.
Red
};
1821
yield return new object[] { active, new Rectangle(1, 2, 3, 4), new Rectangle(0, 1, 4, 5), Color.
Red
};
1822
yield return new object[] { active, new Rectangle(0, 1, 4, 5), new Rectangle(1, 2, 3, 4), Color.
Red
};
1847
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSelectionFrame(null, active, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), Color.
Red
));
1852
yield return new object[] { Color.
Red
, Rectangle.Empty };
1853
yield return new object[] { Color.
Red
, new Rectangle(1, 2, -3, -4) };
1854
yield return new object[] { Color.
Red
, new Rectangle(0, 0, 3, 4) };
1855
yield return new object[] { Color.
Red
, new Rectangle(1, 2, 3, 4) };
1860
yield return new object[] { Color.
Red
, new Rectangle(1, 2, 3, 4) };
1861
yield return new object[] { Color.
Red
, new Rectangle(1, 2, 3, 4) };
1862
yield return new object[] { Color.
Red
, new Rectangle(1, 2, 4, 3) };
1892
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSizeGrip(null, Color.
Red
, new Rectangle(1, 2, 3, 4)));
1893
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSizeGrip(null, Color.
Red
, 1, 2, 3, 4));
1900
yield return new object[] { s, SystemFonts.MenuFont, Color.
Red
, new RectangleF(1, 2, 3, 4), null };
1901
yield return new object[] { s, SystemFonts.MenuFont, Color.
Red
, RectangleF.Empty, new StringFormat() };
1902
yield return new object[] { s, SystemFonts.MenuFont, Color.
Red
, new RectangleF(1, 2, -3, -4), new StringFormat() };
1903
yield return new object[] { s, SystemFonts.MenuFont, Color.
Red
, new RectangleF(1, 2, 3, 4), new StringFormat() };
1931
ControlPaint.DrawStringDisabled(graphics, s, null, Color.
Red
, new RectangleF(1, 2, 3, 4), null);
1934
ControlPaint.DrawStringDisabled(graphics, s, null, Color.
Red
, new RectangleF(1, 2, 3, 4), null);
1941
Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawStringDisabled(null, s, SystemFonts.MenuFont, Color.
Red
, new RectangleF(1, 2, 3, 4), new StringFormat()));
1948
yield return new object[] { s, SystemFonts.MenuFont, Color.
Red
, new Rectangle(1, 2, 3, 4), TextFormatFlags.Default };
1949
yield return new object[] { s, SystemFonts.MenuFont, Color.
Red
, Rectangle.Empty, TextFormatFlags.VerticalCenter };
1950
yield return new object[] { s, SystemFonts.MenuFont, Color.
Red
, new Rectangle(1, 2, -3, -4), TextFormatFlags.VerticalCenter };
1951
yield return new object[] { s, SystemFonts.MenuFont, Color.
Red
, new Rectangle(1, 2, 3, 4), TextFormatFlags.VerticalCenter };
1977
Assert.Throws<ArgumentNullException>("dc", () => ControlPaint.DrawStringDisabled(null, s, SystemFonts.MenuFont, Color.
Red
, new Rectangle(1, 2, 3, 4), TextFormatFlags.Default));
2010
yield return new object[] { Rectangle.Empty, Color.
Red
};
2011
yield return new object[] { new Rectangle(1, 2, -3, -4), Color.
Red
};
2012
yield return new object[] { new Rectangle(0, 0, 3, 4), Color.
Red
};
2013
yield return new object[] { new Rectangle(1, 2, 3, 4), Color.
Red
};
2018
yield return new object[] { new Rectangle(1, 2, 4, 3), Color.
Red
};
2019
yield return new object[] { new Rectangle(1, 2, 3, 3), Color.
Red
};
System\Windows\Forms\ControlTests.ControlCollection.cs (16)
652
owner.ForeColor = Color.
Red
;
762
Assert.Equal(Color.
Red
, control.ForeColor);
802
owner.ForeColor = Color.
Red
;
921
Assert.Equal(Color.
Red
, control.ForeColor);
955
owner.ForeColor = Color.
Red
;
998
Assert.Equal(Color.
Red
, control.ForeColor);
1028
owner.ForeColor = Color.
Red
;
1078
Assert.Equal(Color.
Red
, control.ForeColor);
2355
owner.ForeColor = Color.
Red
;
2356
Assert.Equal(Color.
Red
, control.ForeColor);
2499
owner.ForeColor = Color.
Red
;
2500
Assert.Equal(Color.
Red
, control.ForeColor);
2631
owner.ForeColor = Color.
Red
;
2632
Assert.Equal(Color.
Red
, control.ForeColor);
2695
owner.ForeColor = Color.
Red
;
2696
Assert.Equal(Color.
Red
, control.ForeColor);
System\Windows\Forms\ControlTests.Handlers.cs (36)
2772
yield return new object[] { true, Color.
Red
, null };
2773
yield return new object[] { true, Color.
Red
, new InvalidateEventArgs(Rectangle.Empty) };
2774
yield return new object[] { true, Color.
Red
, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)) };
2775
yield return new object[] { true, Color.
Red
, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)) };
2785
yield return new object[] { false, Color.
Red
, null };
2786
yield return new object[] { false, Color.
Red
, new InvalidateEventArgs(Rectangle.Empty) };
2787
yield return new object[] { false, Color.
Red
, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)) };
2788
yield return new object[] { false, Color.
Red
, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)) };
2876
yield return new object[] { true, Color.
Red
, new InvalidateEventArgs(Rectangle.Empty), 0 };
2877
yield return new object[] { true, Color.
Red
, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)), 0 };
2878
yield return new object[] { true, Color.
Red
, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)), 0 };
2886
yield return new object[] { false, Color.
Red
, new InvalidateEventArgs(Rectangle.Empty), 0 };
2887
yield return new object[] { false, Color.
Red
, new InvalidateEventArgs(new Rectangle(100, 200, 300, 400)), 0 };
2888
yield return new object[] { false, Color.
Red
, new InvalidateEventArgs(new Rectangle(1, 2, 300, 400)), 0 };
3841
yield return new object[] { true, Color.
Red
, backgroundImage, backgroundImageLayout };
3845
yield return new object[] { false, Color.
Red
, backgroundImage, backgroundImageLayout };
3904
yield return new object[] { parent, true, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
3908
yield return new object[] { parent, false, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
3913
yield return new object[] { parent, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
3917
yield return new object[] { parent, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
3920
yield return new object[] { parent, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
3924
yield return new object[] { parent, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
3948
yield return new object[] { parent, true, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
3950
yield return new object[] { parent, false, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
3957
yield return new object[] { parent, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
3959
yield return new object[] { parent, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
3964
yield return new object[] { parent, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 };
3966
yield return new object[] { parent, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 };
4076
yield return new object[] { true, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
4080
yield return new object[] { false, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
4085
yield return new object[] { true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
4089
yield return new object[] { false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
4092
yield return new object[] { true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
4096
yield return new object[] { false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
4227
BackColor = Color.
Red
4543
ForeColor = Color.
Red
System\Windows\Forms\ControlTests.Methods.cs (14)
4563
yield return new object[] { true, Color.
Red
, null };
4564
yield return new object[] { true, Color.
Red
, Rectangle.Empty };
4565
yield return new object[] { true, Color.
Red
, new Rectangle(100, 200, 300, 400) };
4566
yield return new object[] { true, Color.
Red
, new Rectangle(1, 2, 300, 400) };
4576
yield return new object[] { false, Color.
Red
, null };
4577
yield return new object[] { false, Color.
Red
, Rectangle.Empty };
4578
yield return new object[] { false, Color.
Red
, new Rectangle(100, 200, 300, 400) };
4579
yield return new object[] { false, Color.
Red
, new Rectangle(1, 2, 300, 400) };
4667
yield return new object[] { true, Color.
Red
, Rectangle.Empty, 0 };
4668
yield return new object[] { true, Color.
Red
, new Rectangle(100, 200, 300, 400), 0 };
4669
yield return new object[] { true, Color.
Red
, new Rectangle(1, 2, 300, 400), 0 };
4677
yield return new object[] { false, Color.
Red
, Rectangle.Empty, 0 };
4678
yield return new object[] { false, Color.
Red
, new Rectangle(100, 200, 300, 400), 0 };
4679
yield return new object[] { false, Color.
Red
, new Rectangle(1, 2, 300, 400), 0 };
System\Windows\Forms\ControlTests.Properties.cs (76)
1263
yield return new object[] { Color.
Red
, Color.
Red
};
1341
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
1388
control.BackColor = Color.
Red
;
1389
Assert.Equal(Color.
Red
, control.BackColor);
1393
control.BackColor = Color.
Red
;
1394
Assert.Equal(Color.
Red
, control.BackColor);
1404
control.BackColor = Color.
Red
;
1405
Assert.Equal(Color.
Red
, control.BackColor);
1423
control.BackColor = Color.
Red
;
1424
Assert.Equal(Color.
Red
, control.BackColor);
1475
control.BackColor = Color.
Red
;
1476
Assert.Equal(Color.
Red
, control.BackColor);
1477
Assert.Equal(Color.
Red
, child1.BackColor);
1478
Assert.Equal(Color.
Red
, child2.BackColor);
1484
control.BackColor = Color.
Red
;
1485
Assert.Equal(Color.
Red
, control.BackColor);
1486
Assert.Equal(Color.
Red
, child1.BackColor);
1487
Assert.Equal(Color.
Red
, child2.BackColor);
1505
control.BackColor = Color.
Red
;
1506
Assert.Equal(Color.
Red
, control.BackColor);
1507
Assert.Equal(Color.
Red
, child1.BackColor);
1508
Assert.Equal(Color.
Red
, child2.BackColor);
1555
control.BackColor = Color.
Red
;
1556
Assert.Equal(Color.
Red
, control.BackColor);
1564
control.BackColor = Color.
Red
;
1565
Assert.Equal(Color.
Red
, control.BackColor);
1585
control.BackColor = Color.
Red
;
1586
Assert.Equal(Color.
Red
, control.BackColor);
1608
control.BackColor = Color.
Red
;
1609
Assert.Equal(Color.
Red
, control.BackColor);
1624
control.BackColor = Color.
Red
;
1625
Assert.Equal(Color.
Red
, control.BackColor);
5381
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
5429
control.ForeColor = Color.
Red
;
5430
Assert.Equal(Color.
Red
, control.ForeColor);
5434
control.ForeColor = Color.
Red
;
5435
Assert.Equal(Color.
Red
, control.ForeColor);
5445
control.ForeColor = Color.
Red
;
5446
Assert.Equal(Color.
Red
, control.ForeColor);
5464
control.ForeColor = Color.
Red
;
5465
Assert.Equal(Color.
Red
, control.ForeColor);
5516
control.ForeColor = Color.
Red
;
5517
Assert.Equal(Color.
Red
, control.ForeColor);
5518
Assert.Equal(Color.
Red
, child1.ForeColor);
5519
Assert.Equal(Color.
Red
, child2.ForeColor);
5525
control.ForeColor = Color.
Red
;
5526
Assert.Equal(Color.
Red
, control.ForeColor);
5527
Assert.Equal(Color.
Red
, child1.ForeColor);
5528
Assert.Equal(Color.
Red
, child2.ForeColor);
5546
control.ForeColor = Color.
Red
;
5547
Assert.Equal(Color.
Red
, control.ForeColor);
5548
Assert.Equal(Color.
Red
, child1.ForeColor);
5549
Assert.Equal(Color.
Red
, child2.ForeColor);
5596
control.ForeColor = Color.
Red
;
5597
Assert.Equal(Color.
Red
, control.ForeColor);
5605
control.ForeColor = Color.
Red
;
5606
Assert.Equal(Color.
Red
, control.ForeColor);
5626
control.ForeColor = Color.
Red
;
5627
Assert.Equal(Color.
Red
, control.ForeColor);
5642
control.ForeColor = Color.
Red
;
5643
Assert.Equal(Color.
Red
, control.ForeColor);
5658
control.ForeColor = Color.
Red
;
5659
Assert.Equal(Color.
Red
, control.ForeColor);
10727
ForeColor = Color.
Red
10743
ForeColor = Color.
Red
10756
BackColor = Color.
Red
,
10813
Assert.Equal(Color.
Red
, control.ForeColor);
10829
Assert.Equal(Color.
Red
, control.ForeColor);
10845
Assert.Equal(Color.
Red
, control.ForeColor);
10859
Assert.Equal(Color.
Red
, control.BackColor);
10901
ForeColor = Color.
Red
10917
ForeColor = Color.
Red
10930
BackColor = Color.
Red
,
System\Windows\Forms\DataGridViewCellStyleTests.cs (31)
43
BackColor = Color.
Red
,
60
Assert.Equal(Color.
Red
, style.BackColor);
152
BackColor = Color.
Red
310
ForeColor = Color.
Red
528
SelectionBackColor = Color.
Red
554
SelectionForeColor = Color.
Red
621
BackColor = Color.
Red
,
639
Assert.Equal(Color.
Red
, style.BackColor);
664
BackColor = Color.
Red
,
681
Assert.Equal(Color.
Red
, style.BackColor);
712
BackColor = Color.
Red
,
729
Assert.Equal(Color.
Red
, style.BackColor);
779
BackColor = Color.
Red
,
796
Assert.Equal(Color.
Red
, style.BackColor);
860
new DataGridViewCellStyle { BackColor = Color.
Red
},
861
new DataGridViewCellStyle { BackColor = Color.
Red
},
866
new DataGridViewCellStyle { BackColor = Color.
Red
},
896
new DataGridViewCellStyle { ForeColor = Color.
Red
},
897
new DataGridViewCellStyle { ForeColor = Color.
Red
},
902
new DataGridViewCellStyle { ForeColor = Color.
Red
},
980
new DataGridViewCellStyle { SelectionBackColor = Color.
Red
},
981
new DataGridViewCellStyle { SelectionBackColor = Color.
Red
},
986
new DataGridViewCellStyle { SelectionBackColor = Color.
Red
},
992
new DataGridViewCellStyle { SelectionForeColor = Color.
Red
},
993
new DataGridViewCellStyle { SelectionForeColor = Color.
Red
},
998
new DataGridViewCellStyle { SelectionForeColor = Color.
Red
},
1053
new DataGridViewCellStyle { BackColor = Color.
Red
},
1068
new DataGridViewCellStyle { ForeColor = Color.
Red
},
1103
new DataGridViewCellStyle { SelectionBackColor = Color.
Red
},
1108
new DataGridViewCellStyle { SelectionForeColor = Color.
Red
},
1128
BackColor = Color.
Red
,
System\Windows\Forms\DataGridViewRowTests.cs (6)
2072
SelectionForeColor = Color.
Red
,
2089
SelectionBackColor = Color.
Red
,
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 (8)
2929
dataGrid.GridColor = Color.
Red
;
2932
Assert.Equal(Color.
Red
, dataGrid.GridColor);
3167
_dataGridView.ColumnHeadersDefaultCellStyle = new() { BackColor = Color.
Red
};
3227
_dataGridView.DefaultCellStyle = new() { BackColor = Color.
Red
};
3267
_dataGridView.GridColor = Color.
Red
;
3367
_dataGridView.RowsDefaultCellStyle = new() { BackColor = Color.
Red
};
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\DataGridViewTextBoxEditingControlTests.cs (2)
739
BackColor = Color.
Red
,
950
BackColor = Color.
Red
,
System\Windows\Forms\DateTimePickerTests.cs (7)
175
var expectedColor = Color.
Red
;
197
var expectedColor = Color.
Red
;
219
var expectedColor = Color.
Red
;
241
var expectedColor = Color.
Red
;
263
var expectedColor = Color.
Red
;
697
control.BackColor = Color.
Red
;
810
control.ForeColor = Color.
Red
;
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\FontDialogTests.cs (2)
166
yield return new object[] { Color.
Red
, Color.
Red
};
System\Windows\Forms\FormTests.cs (18)
336
yield return new object[] { true, Color.
Red
, 0.5 };
347
TransparencyKey = Color.
Red
,
445
yield return new object[] { true, Color.
Red
, 0.5, 0 };
456
TransparencyKey = Color.
Red
660
TransparencyKey = Color.
Red
,
665
Assert.Equal(Color.
Red
, control.TransparencyKey);
672
Assert.Equal(Color.
Red
, control.TransparencyKey);
842
control.TransparencyKey = Color.
Red
;
853
Assert.Equal(Color.
Red
, control.TransparencyKey);
863
Assert.Equal(Color.
Red
, control.TransparencyKey);
1269
yield return new object[] { allowTransparency, Color.
Red
, true };
1301
yield return new object[] { allowTransparency, Color.
Red
};
1335
yield return new object[] { allowTransparency, Color.
Red
};
1368
yield return new object[] { allowTransparency, Color.
Red
};
1452
yield return new object[] { Color.
Red
, true, 2 };
1526
yield return new object[] { Color.
Red
};
1774
yield return new object[] { true, Color.
Red
, true, 0 };
1778
yield return new object[] { false, Color.
Red
, true, 2 };
System\Windows\Forms\GroupBoxTests.cs (1)
1829
foreach (Color foreColor in new Color[] { Color.
Red
, Color.Empty })
System\Windows\Forms\HtmlDocumentTests.cs (1)
320
yield return new object[] { Color.
Red
, Color.FromArgb(0xFF, 0xFF, 0x00, 0x00), "#ff0000" };
System\Windows\Forms\ImageList.ImageCollectionTests.cs (11)
154
yield return new object[] { PixelFormat.Format24bppRgb, Color.
Red
, Color.FromArgb(200, 50, 75, 100) };
167
yield return new object[] { PixelFormat.Format24bppRgb, Color.
Red
, Color.FromArgb(200, 50, 75, 100), Color.FromArgb(255, 50, 75, 100) };
168
yield return new object[] { PixelFormat.Format32bppRgb, Color.
Red
, Color.FromArgb(200, 50, 75, 100), Color.FromArgb(255, 50, 75, 100) };
351
image1.SetPixel(0, 0, Color.
Red
);
1156
image1.SetPixel(0, 0, Color.
Red
);
1193
image1.SetPixel(0, 0, Color.
Red
);
1305
image1.SetPixel(0, 0, Color.
Red
);
1339
image1.SetPixel(0, 0, Color.
Red
);
1403
image1.SetPixel(0, 0, Color.
Red
);
1443
image1.SetPixel(0, 0, Color.
Red
);
1495
image1.SetPixel(0, 0, Color.
Red
);
System\Windows\Forms\ImageListTests.cs (16)
700
list.TransparentColor = Color.
Red
;
701
Assert.Equal(Color.
Red
, list.TransparentColor);
706
list.TransparentColor = Color.
Red
;
707
Assert.Equal(Color.
Red
, list.TransparentColor);
719
list.TransparentColor = Color.
Red
;
720
Assert.Equal(Color.
Red
, list.TransparentColor);
751
list.TransparentColor = Color.
Red
;
752
Assert.Equal(Color.
Red
, list.TransparentColor);
757
list.TransparentColor = Color.
Red
;
758
Assert.Equal(Color.
Red
, list.TransparentColor);
770
list.TransparentColor = Color.
Red
;
771
Assert.Equal(Color.
Red
, list.TransparentColor);
784
list.TransparentColor = Color.
Red
;
785
Assert.Equal(Color.
Red
, list.TransparentColor);
801
list.TransparentColor = Color.
Red
;
802
Assert.Equal(Color.
Red
, list.TransparentColor);
System\Windows\Forms\ListBoxTests.cs (28)
350
yield return new object[] { Color.
Red
, Color.
Red
};
373
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
419
control.BackColor = Color.
Red
;
420
Assert.Equal(Color.
Red
, control.BackColor);
424
control.BackColor = Color.
Red
;
425
Assert.Equal(Color.
Red
, control.BackColor);
435
control.BackColor = Color.
Red
;
436
Assert.Equal(Color.
Red
, control.BackColor);
447
control.BackColor = Color.
Red
;
448
Assert.Equal(Color.
Red
, control.BackColor);
463
control.BackColor = Color.
Red
;
464
Assert.Equal(Color.
Red
, control.BackColor);
1244
yield return new object[] { Color.
Red
, Color.
Red
};
1270
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
1316
control.ForeColor = Color.
Red
;
1317
Assert.Equal(Color.
Red
, control.ForeColor);
1321
control.ForeColor = Color.
Red
;
1322
Assert.Equal(Color.
Red
, control.ForeColor);
1332
control.ForeColor = Color.
Red
;
1333
Assert.Equal(Color.
Red
, control.ForeColor);
1344
control.ForeColor = Color.
Red
;
1345
Assert.Equal(Color.
Red
, control.ForeColor);
1360
control.ForeColor = Color.
Red
;
1361
Assert.Equal(Color.
Red
, control.ForeColor);
System\Windows\Forms\ListViewItemConverterTests.cs (8)
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 (12)
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" };
850
yield return new object[] { Color.
Red
, Color.
Red
};
907
yield return new object[] { Color.
Red
, Color.
Red
};
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 (28)
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" };
84
BackColor = Color.
Red
90
Assert.Equal(Color.
Red
, subItem.BackColor);
102
BackColor = Color.
Red
117
BackColor = Color.
Red
126
Assert.Equal(Color.
Red
, subItem.BackColor);
135
yield return new object[] { Color.
Red
, Color.
Red
};
157
yield return new object[] { Color.Empty, Color.
Red
};
166
BackColor = Color.
Red
333
ForeColor = Color.
Red
339
Assert.Equal(Color.
Red
, subItem.ForeColor);
351
ForeColor = Color.
Red
366
ForeColor = Color.
Red
375
Assert.Equal(Color.
Red
, subItem.ForeColor);
387
yield return new object[] { Color.
Red
, Color.
Red
};
408
yield return new object[] { Color.Empty, Color.
Red
};
417
ForeColor = Color.
Red
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\ListViewTests.cs (20)
453
yield return new object[] { Color.
Red
, Color.
Red
};
476
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
532
control.BackColor = Color.
Red
;
533
Assert.Equal(Color.
Red
, control.BackColor);
537
control.BackColor = Color.
Red
;
538
Assert.Equal(Color.
Red
, control.BackColor);
548
control.BackColor = Color.
Red
;
549
Assert.Equal(Color.
Red
, control.BackColor);
1312
yield return new object[] { Color.
Red
, Color.
Red
};
1338
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
1394
control.ForeColor = Color.
Red
;
1395
Assert.Equal(Color.
Red
, control.ForeColor);
1399
control.ForeColor = Color.
Red
;
1400
Assert.Equal(Color.
Red
, control.ForeColor);
1410
control.ForeColor = Color.
Red
;
1411
Assert.Equal(Color.
Red
, control.ForeColor);
System\Windows\Forms\MdiClientTests.cs (10)
121
control.BackColor = Color.
Red
;
122
Assert.Equal(Color.
Red
, control.BackColor);
126
control.BackColor = Color.
Red
;
127
Assert.Equal(Color.
Red
, control.BackColor);
137
control.BackColor = Color.
Red
;
138
Assert.Equal(Color.
Red
, control.BackColor);
149
control.BackColor = Color.
Red
;
150
Assert.Equal(Color.
Red
, control.BackColor);
165
control.BackColor = Color.
Red
;
166
Assert.Equal(Color.
Red
, control.BackColor);
System\Windows\Forms\MonthCalendarTests.cs (29)
282
yield return new object[] { Color.
Red
, Color.
Red
};
305
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
351
control.BackColor = Color.
Red
;
352
Assert.Equal(Color.
Red
, control.BackColor);
356
control.BackColor = Color.
Red
;
357
Assert.Equal(Color.
Red
, control.BackColor);
367
control.BackColor = Color.
Red
;
368
Assert.Equal(Color.
Red
, control.BackColor);
925
yield return new object[] { Color.
Red
, Color.
Red
};
951
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
997
control.ForeColor = Color.
Red
;
998
Assert.Equal(Color.
Red
, control.ForeColor);
1002
control.ForeColor = Color.
Red
;
1003
Assert.Equal(Color.
Red
, control.ForeColor);
1013
control.ForeColor = Color.
Red
;
1014
Assert.Equal(Color.
Red
, control.ForeColor);
2714
yield return new object[] { Color.
Red
};
2773
yield return new object[] { Color.
Red
};
2927
yield return new object[] { Color.
Red
};
4520
ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeTrailingForeColor(), () => calendar.TrailingForeColor = Color.
Red
);
4521
ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeTitleForeColor(), () => calendar.TitleForeColor = Color.
Red
);
4522
ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeTitleBackColor(), () => calendar.TitleBackColor = Color.
Red
);
4581
setColor(calendar, Color.
Red
);
4582
getColor(calendar).Should().Be(Color.
Red
);
4587
setColor(calendar, Color.
Red
);
System\Windows\Forms\OwnerDrawPropertyBagTests.cs (4)
81
value.ForeColor = Color.
Red
;
87
Assert.Equal(Color.
Red
, bag.ForeColor);
112
original.ForeColor = Color.
Red
;
126
Assert.Equal(Color.
Red
, bag.ForeColor);
System\Windows\Forms\PictureBoxTests.cs (6)
446
control.ForeColor = Color.
Red
;
447
Assert.Equal(Color.
Red
, control.ForeColor);
451
control.ForeColor = Color.
Red
;
452
Assert.Equal(Color.
Red
, control.ForeColor);
462
control.ForeColor = Color.
Red
;
463
Assert.Equal(Color.
Red
, control.ForeColor);
System\Windows\Forms\ProgressBarTests.cs (12)
552
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
600
control.ForeColor = Color.
Red
;
601
Assert.Equal(Color.
Red
, control.ForeColor);
605
control.ForeColor = Color.
Red
;
606
Assert.Equal(Color.
Red
, control.ForeColor);
616
control.ForeColor = Color.
Red
;
617
Assert.Equal(Color.
Red
, control.ForeColor);
628
control.ForeColor = Color.
Red
;
629
Assert.Equal(Color.
Red
, control.ForeColor);
644
control.ForeColor = Color.
Red
;
645
Assert.Equal(Color.
Red
, control.ForeColor);
System\Windows\Forms\PropertyGridTests.cs (107)
61
Assert.Equal(Color.
Red
, control.CommandsActiveLinkColor);
303
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
354
control.BackColor = Color.
Red
;
355
Assert.Equal(Color.
Red
, control.BackColor);
359
control.BackColor = Color.
Red
;
360
Assert.Equal(Color.
Red
, control.BackColor);
370
control.BackColor = Color.
Red
;
371
Assert.Equal(Color.
Red
, control.BackColor);
382
control.BackColor = Color.
Red
;
383
Assert.Equal(Color.
Red
, control.BackColor);
398
control.BackColor = Color.
Red
;
399
Assert.Equal(Color.
Red
, control.BackColor);
699
yield return new object[] { Color.
Red
};
756
control.CategoryForeColor = Color.
Red
;
757
Assert.Equal(Color.
Red
, control.CategoryForeColor);
772
control.CategoryForeColor = Color.
Red
;
773
Assert.Equal(Color.
Red
, control.CategoryForeColor);
834
control.CategorySplitterColor = Color.
Red
;
835
Assert.Equal(Color.
Red
, control.CategorySplitterColor);
850
control.CategorySplitterColor = Color.
Red
;
851
Assert.Equal(Color.
Red
, control.CategorySplitterColor);
861
yield return new object[] { Color.Empty, Color.
Red
};
862
yield return new object[] { Color.
Red
, Color.
Red
};
924
Assert.Equal(Color.
Red
, control.CommandsActiveLinkColor);
940
Assert.Equal(Color.
Red
, control.CommandsActiveLinkColor);
997
control.CommandsBackColor = Color.
Red
;
998
Assert.Equal(Color.
Red
, control.CommandsBackColor);
1013
control.CommandsBackColor = Color.
Red
;
1014
Assert.Equal(Color.
Red
, control.CommandsBackColor);
1082
control.CommandsBorderColor = Color.
Red
;
1083
Assert.Equal(Color.
Red
, control.CommandsBorderColor);
1098
control.CommandsBorderColor = Color.
Red
;
1099
Assert.Equal(Color.
Red
, control.CommandsBorderColor);
1110
yield return new object[] { Color.
Red
, Color.
Red
};
1167
control.CommandsDisabledLinkColor = Color.
Red
;
1168
Assert.Equal(Color.
Red
, control.CommandsDisabledLinkColor);
1183
control.CommandsDisabledLinkColor = Color.
Red
;
1184
Assert.Equal(Color.
Red
, control.CommandsDisabledLinkColor);
1245
control.CommandsForeColor = Color.
Red
;
1246
Assert.Equal(Color.
Red
, control.CommandsForeColor);
1261
control.CommandsForeColor = Color.
Red
;
1262
Assert.Equal(Color.
Red
, control.CommandsForeColor);
1273
yield return new object[] { Color.
Red
, Color.
Red
};
1330
control.CommandsLinkColor = Color.
Red
;
1331
Assert.Equal(Color.
Red
, control.CommandsLinkColor);
1346
control.CommandsLinkColor = Color.
Red
;
1347
Assert.Equal(Color.
Red
, control.CommandsLinkColor);
1494
control.DisabledItemForeColor = Color.
Red
;
1495
Assert.Equal(Color.
Red
, control.DisabledItemForeColor);
1510
control.DisabledItemForeColor = Color.
Red
;
1511
Assert.Equal(Color.
Red
, control.DisabledItemForeColor);
1559
Assert.Equal(Color.
Red
, control.CommandsActiveLinkColor);
1569
Assert.Equal(Color.
Red
, control.CommandsActiveLinkColor);
1630
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
1679
control.ForeColor = Color.
Red
;
1680
Assert.Equal(Color.
Red
, control.ForeColor);
1684
control.ForeColor = Color.
Red
;
1685
Assert.Equal(Color.
Red
, control.ForeColor);
1695
control.ForeColor = Color.
Red
;
1696
Assert.Equal(Color.
Red
, control.ForeColor);
1707
control.ForeColor = Color.
Red
;
1708
Assert.Equal(Color.
Red
, control.ForeColor);
1723
control.ForeColor = Color.
Red
;
1724
Assert.Equal(Color.
Red
, control.ForeColor);
1785
control.HelpBackColor = Color.
Red
;
1786
Assert.Equal(Color.
Red
, control.HelpBackColor);
1801
control.HelpBackColor = Color.
Red
;
1802
Assert.Equal(Color.
Red
, control.HelpBackColor);
1870
control.HelpBorderColor = Color.
Red
;
1871
Assert.Equal(Color.
Red
, control.HelpBorderColor);
1886
control.HelpBorderColor = Color.
Red
;
1887
Assert.Equal(Color.
Red
, control.HelpBorderColor);
1948
control.HelpForeColor = Color.
Red
;
1949
Assert.Equal(Color.
Red
, control.HelpForeColor);
1964
control.HelpForeColor = Color.
Red
;
1965
Assert.Equal(Color.
Red
, control.HelpForeColor);
2204
control.LineColor = Color.
Red
;
2205
Assert.Equal(Color.
Red
, control.LineColor);
2220
control.LineColor = Color.
Red
;
2221
Assert.Equal(Color.
Red
, control.LineColor);
2451
control.SelectedItemWithFocusBackColor = Color.
Red
;
2452
Assert.Equal(Color.
Red
, control.SelectedItemWithFocusBackColor);
2467
control.SelectedItemWithFocusBackColor = Color.
Red
;
2468
Assert.Equal(Color.
Red
, control.SelectedItemWithFocusBackColor);
2529
control.SelectedItemWithFocusForeColor = Color.
Red
;
2530
Assert.Equal(Color.
Red
, control.SelectedItemWithFocusForeColor);
2545
control.SelectedItemWithFocusForeColor = Color.
Red
;
2546
Assert.Equal(Color.
Red
, control.SelectedItemWithFocusForeColor);
3255
control.ViewBackColor = Color.
Red
;
3256
Assert.Equal(Color.
Red
, control.ViewBackColor);
3271
control.ViewBackColor = Color.
Red
;
3272
Assert.Equal(Color.
Red
, control.ViewBackColor);
3340
control.ViewBorderColor = Color.
Red
;
3341
Assert.Equal(Color.
Red
, control.ViewBorderColor);
3356
control.ViewBorderColor = Color.
Red
;
3357
Assert.Equal(Color.
Red
, control.ViewBorderColor);
3368
yield return new object[] { Color.
Red
, Color.
Red
};
3425
control.ViewForeColor = Color.
Red
;
3426
Assert.Equal(Color.
Red
, control.ViewForeColor);
3441
control.ViewForeColor = Color.
Red
;
3442
Assert.Equal(Color.
Red
, control.ViewForeColor);
System\Windows\Forms\PropertyStoreTests.cs (1)
30
{ 15, Color.
Red
},
System\Windows\Forms\RichTextBoxTests.cs (32)
647
yield return new object[] { Color.
Red
, Color.
Red
};
670
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
716
control.BackColor = Color.
Red
;
717
Assert.Equal(Color.
Red
, control.BackColor);
721
control.BackColor = Color.
Red
;
722
Assert.Equal(Color.
Red
, control.BackColor);
732
control.BackColor = Color.
Red
;
733
Assert.Equal(Color.
Red
, control.BackColor);
1681
yield return new object[] { Color.
Red
, Color.
Red
};
1707
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
1792
control.ForeColor = Color.
Red
;
1793
Assert.Equal(Color.
Red
, control.ForeColor);
1797
control.ForeColor = Color.
Red
;
1798
Assert.Equal(Color.
Red
, control.ForeColor);
1808
control.ForeColor = Color.
Red
;
1809
Assert.Equal(Color.
Red
, control.ForeColor);
3839
yield return new object[] { 0, CFE_EFFECTS.CFE_AUTOBACKCOLOR, 0x78563412, Color.
Red
};
3840
yield return new object[] { 0, CFE_EFFECTS.CFE_AUTOBACKCOLOR | CFE_EFFECTS.CFE_ALLCAPS, 0x78563412, Color.
Red
};
3844
yield return new object[] { CFM_MASK.CFM_BACKCOLOR, CFE_EFFECTS.CFE_AUTOBACKCOLOR, 0x78563412, Color.
Red
};
3861
BackColor = Color.
Red
3881
BackColor = Color.
Red
3908
yield return new object[] { Color.
Red
};
3932
yield return new object[] { Color.
Red
, Color.
Red
};
3983
yield return new object[] { Color.
Red
};
4560
yield return new object[] { Color.
Red
, Color.
Red
};
4628
yield return new object[] { Color.
Red
};
System\Windows\Forms\ScrollableControlTests.cs (20)
1515
yield return new object[] { hScroll, vScroll, true, Color.
Red
, backgroundImage, backgroundImageLayout };
1519
yield return new object[] { hScroll, vScroll, false, Color.
Red
, backgroundImage, backgroundImageLayout };
1588
yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
1592
yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
1597
yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
1601
yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
1604
yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
1608
yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
1631
yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
1633
yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
1647
yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
1651
yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
1654
yield return new object[] { parentFactory(), hScroll, vScroll, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 };
1658
yield return new object[] { parentFactory(), hScroll, vScroll, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected1 };
1788
yield return new object[] { hScroll, vScroll, true, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
1792
yield return new object[] { hScroll, vScroll, false, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
1797
yield return new object[] { hScroll, vScroll, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
1801
yield return new object[] { hScroll, vScroll, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
1804
yield return new object[] { hScroll, vScroll, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
1808
yield return new object[] { hScroll, vScroll, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\ScrollBarTests.cs (12)
223
control.BackColor = Color.
Red
;
224
Assert.Equal(Color.
Red
, control.BackColor);
228
control.BackColor = Color.
Red
;
229
Assert.Equal(Color.
Red
, control.BackColor);
239
control.BackColor = Color.
Red
;
240
Assert.Equal(Color.
Red
, control.BackColor);
572
control.ForeColor = Color.
Red
;
573
Assert.Equal(Color.
Red
, control.ForeColor);
577
control.ForeColor = Color.
Red
;
578
Assert.Equal(Color.
Red
, control.ForeColor);
588
control.ForeColor = Color.
Red
;
589
Assert.Equal(Color.
Red
, control.ForeColor);
System\Windows\Forms\SplitterTests.cs (8)
812
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
860
control.ForeColor = Color.
Red
;
861
Assert.Equal(Color.
Red
, control.ForeColor);
865
control.ForeColor = Color.
Red
;
866
Assert.Equal(Color.
Red
, control.ForeColor);
876
control.ForeColor = Color.
Red
;
877
Assert.Equal(Color.
Red
, control.ForeColor);
System\Windows\Forms\TabControlTests.cs (12)
528
yield return new object[] { Color.
Red
};
594
control.BackColor = Color.
Red
;
599
control.BackColor = Color.
Red
;
610
control.BackColor = Color.
Red
;
939
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
988
control.ForeColor = Color.
Red
;
989
Assert.Equal(Color.
Red
, control.ForeColor);
993
control.ForeColor = Color.
Red
;
994
Assert.Equal(Color.
Red
, control.ForeColor);
1004
control.ForeColor = Color.
Red
;
1005
Assert.Equal(Color.
Red
, control.ForeColor);
System\Windows\Forms\TabPageTests.cs (22)
826
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
873
control.BackColor = Color.
Red
;
874
Assert.Equal(Color.
Red
, control.BackColor);
878
control.BackColor = Color.
Red
;
879
Assert.Equal(Color.
Red
, control.BackColor);
889
control.BackColor = Color.
Red
;
890
Assert.Equal(Color.
Red
, control.BackColor);
3963
yield return new object[] { true, Color.
Red
, backgroundImage, backgroundImageLayout };
3967
yield return new object[] { false, Color.
Red
, backgroundImage, backgroundImageLayout };
4017
yield return new object[] { appearance, useVisualStyleBackColor, true, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
4021
yield return new object[] { appearance, useVisualStyleBackColor, false, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
4026
yield return new object[] { appearance, useVisualStyleBackColor, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
4030
yield return new object[] { appearance, useVisualStyleBackColor, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
4033
yield return new object[] { appearance, useVisualStyleBackColor, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
4037
yield return new object[] { appearance, useVisualStyleBackColor, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
4156
yield return new object[] { appearance, useVisualStyleBackColor, true, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
4160
yield return new object[] { appearance, useVisualStyleBackColor, false, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
4165
yield return new object[] { appearance, useVisualStyleBackColor, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
4169
yield return new object[] { appearance, useVisualStyleBackColor, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
4172
yield return new object[] { appearance, useVisualStyleBackColor, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
4176
yield return new object[] { appearance, useVisualStyleBackColor, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\TextRendererTests.cs (99)
21
yield return new object[] { hint, text, null, Point.Empty, Color.
Red
};
22
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.
Red
};
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 };
56
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, Color.
Red
};
57
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, Color.Black };
58
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, Color.White };
59
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, Color.Transparent };
60
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, Color.Empty };
84
yield return new object[] { hint, text, null, Point.Empty, Color.
Red
, TextFormatFlags.Default, };
85
yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.
Red
, TextFormatFlags.Default, };
91
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, TextFormatFlags.HorizontalCenter };
92
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter };
93
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, TextFormatFlags.Bottom | TextFormatFlags.Right };
94
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, TextFormatFlags.SingleLine };
95
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, (TextFormatFlags)1024 };
96
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, TextFormatFlags.RightToLeft };
97
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, (TextFormatFlags)int.MaxValue };
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, };
127
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, Color.
Red
, TextFormatFlags.Default, };
128
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, Color.Black, TextFormatFlags.Default, };
129
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, Color.White, TextFormatFlags.Default, };
130
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, Color.Transparent, TextFormatFlags.Default, };
131
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.
Red
, Color.Empty, 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 };
162
yield return new object[] { hint, text, null, Rectangle.Empty, Color.
Red
};
163
yield return new object[] { hint, text, null, new Rectangle(1, 2, -3, -4), Color.
Red
};
164
yield return new object[] { hint, text, null, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.
Red
};
165
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 3, 4), Color.
Red
};
166
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
};
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 };
202
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, Color.
Red
};
203
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, Color.Black };
204
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, Color.White };
205
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, Color.Transparent };
206
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, Color.Empty };
230
yield return new object[] { hint, text, null, Rectangle.Empty, Color.
Red
, TextFormatFlags.Default, };
231
yield return new object[] { hint, text, null, new Rectangle(1, 2, -3, -4), Color.
Red
, TextFormatFlags.Default, };
232
yield return new object[] { hint, text, null, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.
Red
, TextFormatFlags.Default, };
233
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, TextFormatFlags.Default, };
239
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, TextFormatFlags.HorizontalCenter };
240
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter };
241
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, TextFormatFlags.Bottom | TextFormatFlags.Right };
242
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, TextFormatFlags.SingleLine };
243
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.
Red
, TextFormatFlags.SingleLine };
244
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, (TextFormatFlags)1024 };
245
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, TextFormatFlags.RightToLeft };
246
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, (TextFormatFlags)int.MaxValue };
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, };
273
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, Color.Blue, TextFormatFlags.Default, };
278
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, Color.
Red
, TextFormatFlags.Default, };
279
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, Color.Black, TextFormatFlags.Default, };
280
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, Color.White, TextFormatFlags.Default, };
281
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, Color.Transparent, TextFormatFlags.Default, };
282
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, Color.Empty, 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 };
323
TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.
Red
);
327
TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.
Red
, Color.Blue);
331
TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.
Red
, TextFormatFlags.Default);
335
TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, Point.Empty, Color.
Red
, Color.Blue, TextFormatFlags.Default);
339
TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
);
343
TextRenderer.DrawText(mockDeviceContext.Object, "text", SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, 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);
355
TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.
Red
);
359
TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.
Red
, Color.Blue);
363
TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.
Red
, TextFormatFlags.Default);
367
TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, Point.Empty, Color.
Red
, Color.Blue, TextFormatFlags.Default);
371
TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
);
375
TextRenderer.DrawText(mockDeviceContext.Object, "text".AsSpan(), SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.
Red
, 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);
391
Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.DrawText(null, "text", SystemFonts.MenuFont, Point.Empty, Color.
Red
));
678
Color.
Red
,
687
State.TextColor(Color.
Red
)));
701
Color.
Red
,
710
State.TextColor(Color.
Red
)));
771
Color.
Red
,
786
State.TextColor(Color.
Red
)));
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (1)
62
yield return new object[] { Color.
Red
};
System\Windows\Forms\ToolStripButtonTests.cs (5)
1278
ForeColor = Color.
Red
,
1316
Assert.Equal(Color.
Red
, e.TextColor);
1369
ForeColor = Color.
Red
,
1407
Assert.Equal(Color.
Red
, e.TextColor);
1468
ForeColor = Color.
Red
,
System\Windows\Forms\ToolStripContentPanelTests.cs (10)
626
yield return new object[] { Color.
Red
, Color.
Red
};
658
yield return new object[] { Color.
Red
, Color.
Red
, Color.Blue };
699
control.BackColor = Color.
Red
;
700
Assert.Equal(Color.
Red
, control.BackColor);
704
control.BackColor = Color.
Red
;
705
Assert.Equal(Color.
Red
, control.BackColor);
715
control.BackColor = Color.
Red
;
716
Assert.Equal(Color.
Red
, control.BackColor);
System\Windows\Forms\ToolStripControlHostTests.cs (31)
27
BackColor = Color.
Red
,
297
item.BackColor = Color.
Red
;
298
Assert.Equal(Color.
Red
, item.BackColor);
302
item.BackColor = Color.
Red
;
303
Assert.Equal(Color.
Red
, item.BackColor);
313
item.BackColor = Color.
Red
;
314
Assert.Equal(Color.
Red
, item.BackColor);
325
Assert.Throws<ObjectDisposedException>(() => item.BackColor = Color.
Red
);
336
item.BackColor = Color.
Red
;
337
Assert.Equal(Color.
Red
, item.BackColor);
367
item.BackColor = Color.
Red
;
368
Assert.Equal(Color.
Red
, item.BackColor);
546
c.BackColor = Color.
Red
;
547
Assert.Equal(Color.
Red
, c.BackColor);
548
Assert.Equal(Color.
Red
, item.BackColor);
629
c.ForeColor = Color.
Red
;
630
Assert.Equal(Color.
Red
, c.ForeColor);
631
Assert.Equal(Color.
Red
, item.ForeColor);
1116
item.ForeColor = Color.
Red
;
1117
Assert.Equal(Color.
Red
, item.ForeColor);
1121
item.ForeColor = Color.
Red
;
1122
Assert.Equal(Color.
Red
, item.ForeColor);
1132
item.ForeColor = Color.
Red
;
1133
Assert.Equal(Color.
Red
, item.ForeColor);
1144
Assert.Throws<ObjectDisposedException>(() => item.ForeColor = Color.
Red
);
1155
item.ForeColor = Color.
Red
;
1156
Assert.Equal(Color.
Red
, item.ForeColor);
1186
item.ForeColor = Color.
Red
;
1187
Assert.Equal(Color.
Red
, item.ForeColor);
1207
foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.
Red
})
1333
foreach (Color color in new Color[] { Color.Empty, Color.
Red
})
System\Windows\Forms\ToolStripDropDownTests.cs (6)
1736
control.ForeColor = Color.
Red
;
1737
Assert.Equal(Color.
Red
, control.ForeColor);
1741
control.ForeColor = Color.
Red
;
1742
Assert.Equal(Color.
Red
, control.ForeColor);
1752
control.ForeColor = Color.
Red
;
1753
Assert.Equal(Color.
Red
, control.ForeColor);
System\Windows\Forms\ToolStripItemTests.cs (49)
1548
BackColor = Color.
Red
1562
BackColor = Color.
Red
1568
Assert.Equal(Color.
Red
, item.BackColor);
1662
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
1712
item.BackColor = Color.
Red
;
1713
Assert.Equal(Color.
Red
, item.BackColor);
1717
item.BackColor = Color.
Red
;
1718
Assert.Equal(Color.
Red
, item.BackColor);
1728
item.BackColor = Color.
Red
;
1729
Assert.Equal(Color.
Red
, item.BackColor);
1740
item.BackColor = Color.
Red
;
1741
Assert.Equal(Color.
Red
, item.BackColor);
1756
item.BackColor = Color.
Red
;
1757
Assert.Equal(Color.
Red
, item.BackColor);
3238
ForeColor = Color.
Red
3252
ForeColor = Color.
Red
3258
Assert.Equal(Color.
Red
, item.ForeColor);
3355
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
3405
item.ForeColor = Color.
Red
;
3406
Assert.Equal(Color.
Red
, item.ForeColor);
3410
item.ForeColor = Color.
Red
;
3411
Assert.Equal(Color.
Red
, item.ForeColor);
3421
item.ForeColor = Color.
Red
;
3422
Assert.Equal(Color.
Red
, item.ForeColor);
3433
item.ForeColor = Color.
Red
;
3434
Assert.Equal(Color.
Red
, item.ForeColor);
3449
item.ForeColor = Color.
Red
;
3450
Assert.Equal(Color.
Red
, item.ForeColor);
3781
foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.
Red
})
3811
foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.
Red
})
3885
foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.
Red
})
5599
foreach (Color color in new Color[] { Color.Empty, Color.
Red
})
5632
ImageTransparentColor = Color.
Red
5667
yield return new object[] { null, Color.
Red
, 0 };
5669
yield return new object[] { new Bitmap(10, 10), Color.
Red
, 1 };
5671
yield return new object[] { Image.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), Color.
Red
, 1 };
5673
yield return new object[] { Image.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), Color.
Red
, 1 };
5734
yield return new object[] { null, Color.
Red
, 1 };
5736
yield return new object[] { new Bitmap(10, 10), Color.
Red
, 1 };
5738
yield return new object[] { Image.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), Color.
Red
, 1 };
5740
yield return new object[] { Image.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), Color.
Red
, 1 };
5784
item.ImageTransparentColor = Color.
Red
;
5785
Assert.Equal(Color.
Red
, item.ImageTransparentColor);
5800
item.ImageTransparentColor = Color.
Red
;
5801
Assert.Equal(Color.
Red
, item.ImageTransparentColor);
12525
item.BackColor = Color.
Red
;
12619
item.ForeColor = Color.
Red
;
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (8)
13
yield return new object[] { new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.
Red
, SystemFonts.DefaultFont, TextFormatFlags.Top };
14
yield return new object[] { new ToolStripButton() { RightToLeft = RightToLeft.Yes }, "text", new Rectangle(1, 2, 3, 4), Color.
Red
, SystemFonts.DefaultFont, TextFormatFlags.Bottom };
38
yield return new object[] { new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.
Red
, SystemFonts.DefaultFont, ContentAlignment.MiddleCenter, TextFormatFlags.Default | TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
39
yield return new object[] { new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.
Red
, SystemFonts.DefaultFont, ContentAlignment.BottomRight, TextFormatFlags.Default | TextFormatFlags.Bottom | TextFormatFlags.Right | TextFormatFlags.HidePrefix };
40
yield return new object[] { new ToolStripButton() { RightToLeft = RightToLeft.Yes }, "text", new Rectangle(1, 2, 3, 4), Color.
Red
, SystemFonts.DefaultFont, (ContentAlignment)(-1), TextFormatFlags.Default | TextFormatFlags.Bottom | TextFormatFlags.Right | TextFormatFlags.RightToLeft | TextFormatFlags.HidePrefix };
66
Assert.Throws<ArgumentNullException>("item", () => new ToolStripItemTextRenderEventArgs(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.
Red
, SystemFonts.DefaultFont, TextFormatFlags.Top));
67
Assert.Throws<ArgumentNullException>("item", () => new ToolStripItemTextRenderEventArgs(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.
Red
, SystemFonts.DefaultFont, ContentAlignment.TopLeft));
73
yield return new object[] { Color.
Red
};
System\Windows\Forms\ToolStripLabelTests.cs (3)
106
Color expectedColor = Color.
Red
;
197
_toolStripLabel.ActiveLinkColor = Color.
Red
;
223
{ nameof(ToolStripLabel.ActiveLinkColor), Color.
Red
, true },
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
276
BackColor = Color.
Red
,
System\Windows\Forms\ToolStripRendererTests.cs (10)
31
yield return new object[] { new SubToolStripItem(), new Rectangle(1, 2, 3, 4), Color.
Red
, arrowDirection };
36
yield return new object[] { new SubToolStripItem(), new Rectangle(1, 2, 3, 4), Color.
Red
, ArrowDirection.Left - 1 };
37
yield return new object[] { new SubToolStripItem(), new Rectangle(1, 2, 3, 4), Color.
Red
, ArrowDirection.Up + 1 };
299
yield return new object[] { new SubToolStripItem(), "Text", Rectangle.Empty, Color.
Red
, SystemFonts.MenuFont, TextFormatFlags.Left };
300
yield return new object[] { new SubToolStripItem(), "Text", new Rectangle(1, 2, 0, 4), Color.
Red
, SystemFonts.MenuFont, TextFormatFlags.Left };
301
yield return new object[] { new SubToolStripItem(), "Text", new Rectangle(1, 2, 3, 0), Color.
Red
, SystemFonts.MenuFont, TextFormatFlags.Left };
302
yield return new object[] { new SubToolStripItem(), "Text", new Rectangle(1, 2, 3, 4), Color.
Red
, SystemFonts.MenuFont, TextFormatFlags.Left };
303
yield return new object[] { new SubToolStripItem() { Enabled = false }, "Text", new Rectangle(1, 2, 3, 4), Color.
Red
, SystemFonts.MenuFont, TextFormatFlags.Left };
304
yield return new object[] { new SubToolStripItem() { TextDirection = ToolStripTextDirection.Vertical270 }, "Text", new Rectangle(1, 2, 3, 4), Color.
Red
, SystemFonts.MenuFont, TextFormatFlags.Left };
305
yield return new object[] { new SubToolStripItem() { TextDirection = ToolStripTextDirection.Vertical90 }, "Text", new Rectangle(1, 2, 3, 4), Color.
Red
, SystemFonts.MenuFont, TextFormatFlags.Left };
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (5)
30
yield return new object[] { new ToolStrip() { BackColor = Color.
Red
}, new Rectangle(0, 0, 100, 25), Color.
Red
};
53
yield return new object[] { new ToolStrip() { BackColor = Color.
Red
}, new Rectangle(1, 2, 3, 4), Color.Empty, Color.
Red
};
56
yield return new object[] { new ToolStrip() { BackColor = Color.
Red
}, new Rectangle(1, 2, 3, 4), Color.Blue, Color.Blue };
System\Windows\Forms\ToolStripSeparatorTests.cs (12)
362
item.ForeColor = Color.
Red
;
363
Assert.Equal(Color.
Red
, item.ForeColor);
367
item.ForeColor = Color.
Red
;
368
Assert.Equal(Color.
Red
, item.ForeColor);
378
item.ForeColor = Color.
Red
;
379
Assert.Equal(Color.
Red
, item.ForeColor);
390
item.ForeColor = Color.
Red
;
391
Assert.Equal(Color.
Red
, item.ForeColor);
406
item.ForeColor = Color.
Red
;
407
Assert.Equal(Color.
Red
, item.ForeColor);
417
foreach (Color imageTransparentColor in new Color[] { Color.Empty, Color.
Red
})
527
foreach (Color color in new Color[] { Color.Empty, Color.
Red
})
System\Windows\Forms\ToolStripTests.cs (28)
1060
yield return new object[] { Color.
Red
, Color.
Red
};
2701
control.ForeColor = Color.
Red
;
2702
Assert.Equal(Color.
Red
, control.ForeColor);
2706
control.ForeColor = Color.
Red
;
2707
Assert.Equal(Color.
Red
, control.ForeColor);
2717
control.ForeColor = Color.
Red
;
2718
Assert.Equal(Color.
Red
, control.ForeColor);
5856
yield return new object[] { hScroll, vScroll, true, Color.
Red
, backgroundImage, backgroundImageLayout };
5860
yield return new object[] { hScroll, vScroll, false, Color.
Red
, backgroundImage, backgroundImageLayout };
5930
yield return new object[] { parent, hScroll, vScroll, true, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
5934
yield return new object[] { parent, hScroll, vScroll, false, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
5939
yield return new object[] { parent, hScroll, vScroll, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
5943
yield return new object[] { parent, hScroll, vScroll, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
5946
yield return new object[] { parent, hScroll, vScroll, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
5950
yield return new object[] { parent, hScroll, vScroll, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
5981
yield return new object[] { parent, hScroll, vScroll, true, Color.
Red
, backgroundImage, backgroundImageLayout, expected1 };
5983
yield return new object[] { parent, hScroll, vScroll, false, Color.
Red
, backgroundImage, backgroundImageLayout, expected1 };
5997
yield return new object[] { parent, hScroll, vScroll, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 };
5999
yield return new object[] { parent, hScroll, vScroll, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, expected1 };
6004
yield return new object[] { parent, hScroll, vScroll, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 };
6006
yield return new object[] { parent, hScroll, vScroll, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, expected2 };
6127
yield return new object[] { hScroll, vScroll, true, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
6131
yield return new object[] { hScroll, vScroll, false, Color.
Red
, backgroundImage, backgroundImageLayout, 0 };
6136
yield return new object[] { hScroll, vScroll, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
6140
yield return new object[] { hScroll, vScroll, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.None, 0 };
6143
yield return new object[] { hScroll, vScroll, true, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
6147
yield return new object[] { hScroll, vScroll, false, Color.
Red
, new Bitmap(10, 10, PixelFormat.Format32bppArgb), ImageLayout.Tile, 1 };
System\Windows\Forms\TreeNodeTests.cs (18)
297
yield return new object[] { Color.
Red
, 1 };
335
yield return new object[] { Color.
Red
};
379
yield return new object[] { Color.
Red
, 1 };
424
node.BackColor = Color.
Red
;
425
Assert.Equal(Color.
Red
, node.BackColor);
429
Assert.Equal(Color.
Red
, node.BackColor);
440
node.BackColor = Color.
Red
;
441
Assert.Equal(Color.
Red
, node.BackColor);
445
Assert.Equal(Color.
Red
, node.BackColor);
738
yield return new object[] { Color.
Red
, 1 };
776
yield return new object[] { Color.
Red
};
820
yield return new object[] { Color.
Red
, 1 };
865
node.ForeColor = Color.
Red
;
866
Assert.Equal(Color.
Red
, node.ForeColor);
870
Assert.Equal(Color.
Red
, node.ForeColor);
881
node.ForeColor = Color.
Red
;
882
Assert.Equal(Color.
Red
, node.ForeColor);
886
Assert.Equal(Color.
Red
, node.ForeColor);
System\Windows\Forms\TreeViewTests.cs (24)
699
yield return new object[] { Color.
Red
, Color.
Red
};
722
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
768
control.BackColor = Color.
Red
;
769
Assert.Equal(Color.
Red
, control.BackColor);
773
control.BackColor = Color.
Red
;
774
Assert.Equal(Color.
Red
, control.BackColor);
784
control.BackColor = Color.
Red
;
785
Assert.Equal(Color.
Red
, control.BackColor);
1463
yield return new object[] { Color.
Red
, Color.
Red
};
1510
control.ForeColor = Color.
Red
;
1511
Assert.Equal(Color.
Red
, control.ForeColor);
1515
control.ForeColor = Color.
Red
;
1516
Assert.Equal(Color.
Red
, control.ForeColor);
1526
control.ForeColor = Color.
Red
;
1527
Assert.Equal(Color.
Red
, control.ForeColor);
6020
BackColor = Color.
Red
,
6048
Assert.Equal(Color.
Red
, control.BackColor);
6066
Assert.Equal(Color.
Red
, control.BackColor);
6100
BackColor = Color.
Red
,
6129
Assert.Equal(Color.
Red
, control.BackColor);
6147
Assert.Equal(Color.
Red
, control.BackColor);
System\Windows\Forms\UpDownBaseTests.cs (19)
509
yield return new object[] { Color.
Red
, Color.
Red
};
532
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
579
control.BackColor = Color.
Red
;
580
Assert.Equal(Color.
Red
, control.BackColor);
584
control.BackColor = Color.
Red
;
585
Assert.Equal(Color.
Red
, control.BackColor);
595
control.BackColor = Color.
Red
;
596
Assert.Equal(Color.
Red
, control.BackColor);
939
yield return new object[] { Color.
Red
, Color.
Red
};
1002
control.ForeColor = Color.
Red
;
1003
Assert.Equal(Color.
Red
, control.ForeColor);
1007
control.ForeColor = Color.
Red
;
1008
Assert.Equal(Color.
Red
, control.ForeColor);
1018
control.ForeColor = Color.
Red
;
1019
Assert.Equal(Color.
Red
, control.ForeColor);
2229
foreach (Color backColor in new Color[] { Color.
Red
, Color.Empty })
TextBoxBaseTests.cs (18)
384
yield return new object[] { Color.
Red
, Color.
Red
};
418
control.BackColor = Color.
Red
;
419
Assert.Equal(Color.
Red
, control.BackColor);
423
control.BackColor = Color.
Red
;
424
Assert.Equal(Color.
Red
, control.BackColor);
434
control.BackColor = Color.
Red
;
435
Assert.Equal(Color.
Red
, control.BackColor);
1165
yield return new object[] { Color.
Red
, Color.
Red
};
1191
yield return new object[] { Color.
Red
, Color.
Red
, 1 };
1237
control.ForeColor = Color.
Red
;
1238
Assert.Equal(Color.
Red
, control.ForeColor);
1242
control.ForeColor = Color.
Red
;
1243
Assert.Equal(Color.
Red
, control.ForeColor);
1253
control.ForeColor = Color.
Red
;
1254
Assert.Equal(Color.
Red
, control.ForeColor);
ToolStripContainerTests.cs (2)
60
_toolStripContainer.BackColor = Color.
Red
;
208
_toolStripContainer.ForeColor = Color.
Red
;
TrackBarTests.cs (4)
684
yield return new object[] { Color.
Red
};
751
control.ForeColor = Color.
Red
;
756
control.ForeColor = Color.
Red
;
767
control.ForeColor = Color.
Red
;
System.Windows.Forms.TestUtilities (4)
CommonTestHelperEx.cs (4)
17
{ Color.
Red
, Color.
Red
},
26
{ Color.
Red
, Color.
Red
},
System.Windows.Forms.UI.IntegrationTests (13)
PropertyGridTests.cs (13)
109
_propertyGrid.CommandsBorderColor = Color.
Red
;
110
_propertyGrid.CommandsBorderColor.Should().Be(Color.
Red
);
136
_propertyGrid.SelectedItemWithFocusForeColor = Color.
Red
;
137
_propertyGrid.SelectedItemWithFocusForeColor.Should().Be(Color.
Red
);
163
_propertyGrid.ForeColor = Color.
Red
;
164
_propertyGrid.ForeColor.Should().Be(Color.
Red
);
219
_propertyGrid.CommandsForeColor = Color.
Red
;
220
_propertyGrid.CommandsForeColor.Should().Be(Color.
Red
);
269
_propertyGrid.LineColor = Color.
Red
;
270
_propertyGrid.LineColor.Should().Be(Color.
Red
);
340
_propertyGrid.ViewBackColor = Color.
Red
;
341
_propertyGrid.ViewBackColor.Should().Be(Color.
Red
);
386
_propertyGrid.CommandsActiveLinkColor.Should().Be(Color.
Red
);