20 references to Black
System.Drawing.Common.Tests (13)
mono\System.Drawing\GraphicsTests.cs (12)
716
g.DrawCurve(Pens.
Black
, s_tooSmallCurve, 0.5f);
729
Assert.Throws<ArgumentException>(() => g.DrawCurve(Pens.
Black
, [new(10, 10)], 0.5f));
739
Assert.Throws<ArgumentException>(() => g.DrawCurve(Pens.
Black
, s_tooSmallCurve, 0, 2, 0.5f));
750
g.DrawCurve(Pens.
Black
, s_smallCurveF, -0.9f);
761
g.DrawCurve(Pens.
Black
, s_smallCurveF, 0.9f);
773
Assert.Throws<ArgumentException>(() => g.DrawCurve(Pens.
Black
, s_smallCurveF, 0, 0));
781
Assert.Throws<ArgumentException>(() => g.DrawCurve(Pens.
Black
, s_smallCurveF, 0, -1));
790
Assert.Throws<ArgumentException>(() => g.DrawCurve(Pens.
Black
, s_smallCurveF, 1, 2));
800
g.DrawCurve(Pens.
Black
, s_largeCurveF, 0, 2, 0.5f);
811
g.DrawCurve(Pens.
Black
, s_largeCurveF, 1, 2, 0.5f);
823
g.DrawCurve(Pens.
Black
, s_largeCurveF, 2, 1, 0.5f);
2865
Assert.Throws<ArgumentNullException>(() => g.DrawPath(Pens.
Black
, null));
System\Drawing\PensTests.cs (1)
19
yield return Pen(() => Pens.
Black
, Color.Black);
System.Windows.Forms (6)
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
686
g.DrawRectangle(Pens.
Black
, box);
700
g.DrawRectangle(Pens.
Black
, box);
System\Windows\Forms\Rendering\ControlPaint.cs (4)
1278
Pen pen = Pens.
Black
;
1488
? s_grabPenPrimary ??= Pens.
Black
1687
Pen pen = primary ? Pens.White : Pens.
Black
;
1693
pen = primary ? Pens.
Black
: Pens.White;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (1)
108
KnownColor.Black => Pens.
Black
,