5 references to new
System.Drawing.Common (2)
System\Drawing\Drawing2D\LinearGradientBrush.cs (2)
55
:
this
(rect, color1, color2, angle, isAngleScaleable: false)
83
:
this
((RectangleF)rect, color1, color2, angle, isAngleScaleable)
System.Drawing.Common.Tests (3)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (3)
188
using LinearGradientBrush brush =
new
((RectangleF)rectangle, color1, color2, angle, isAngleScalable);
209
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new RectangleF(1, 2, 0, 4), Color.Empty, Color.Empty, 0, true));
220
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new RectangleF(1, 2, 3, 0), Color.Empty, Color.Empty, 0, true));