7 references to BackwardDiagonal
System.Drawing.Common (1)
System\Drawing\Drawing2D\LinearGradientBrush.cs (1)
31
if (linearGradientMode is < LinearGradientMode.Horizontal or > LinearGradientMode.
BackwardDiagonal
)
System.Drawing.Common.Tests (6)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (6)
77
yield return new object[] { new Rectangle(0, 0, 1, 2), Color.Empty, Color.Red, LinearGradientMode.
BackwardDiagonal
};
208
AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new Rectangle(1, 2, 0, 4), Color.Empty, Color.Empty, LinearGradientMode.
BackwardDiagonal
));
209
AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 0, 4), Color.Empty, Color.Empty, LinearGradientMode.
BackwardDiagonal
));
219
AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new Rectangle(1, 2, 3, 0), Color.Empty, Color.Empty, LinearGradientMode.
BackwardDiagonal
));
220
AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new RectangleF(1, 2, 3, 0), Color.Empty, Color.Empty, LinearGradientMode.
BackwardDiagonal
));
227
[InlineData(LinearGradientMode.
BackwardDiagonal
+ 1)]