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