70 references to new
System.Drawing.Common.Tests (70)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (69)
171
using LinearGradientBrush brush =
new
(rectangle, color1, color2, angle, isAngleScalable);
208
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new Rectangle(1, 2, 0, 4), Color.Empty, Color.Empty, 0, true));
219
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new Rectangle(1, 2, 3, 0), Color.Empty, Color.Empty, 0, true));
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);
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);
390
using LinearGradientBrush brush =
new
(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true)
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)
491
using LinearGradientBrush brush =
new
(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true)
510
using LinearGradientBrush brush =
new
(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true)
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);
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\GraphicsTests.cs (1)
1228
LinearGradientBrush brush =
new
(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true);