111 instantiations of LinearGradientBrush
System.Drawing.Common.Tests (94)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (91)
24
using LinearGradientBrush brush =
new
((PointF)point1, point2, color1, color2);
40
using LinearGradientBrush brush =
new
(new PointF(float.NaN, float.NaN), new PointF(float.PositiveInfinity, float.NegativeInfinity), Color.Plum, Color.Red);
51
using LinearGradientBrush brush =
new
(point1, point2, color1, color2);
69
Assert.Throws<OutOfMemoryException>(() => new
LinearGradientBrush
(new Point(x, y), new Point(x, y), Color.Fuchsia, Color.GhostWhite));
70
Assert.Throws<OutOfMemoryException>(() => new
LinearGradientBrush
(new PointF(x, y), new PointF(x, y), Color.Fuchsia, Color.GhostWhite));
85
using LinearGradientBrush brush =
new
(rectangle, color1, color2, linearGradientMode);
102
using LinearGradientBrush brush =
new
((RectangleF)rectangle, color1, color2, linearGradientMode);
128
using LinearGradientBrush brush =
new
(rectangle, color1, color2, angle);
145
using LinearGradientBrush brush =
new
((RectangleF)rectangle, color1, color2, angle);
171
using LinearGradientBrush brush =
new
(rectangle, color1, color2, angle, isAngleScalable);
188
using LinearGradientBrush brush =
new
((RectangleF)rectangle, color1, color2, angle, isAngleScalable);
204
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new Rectangle(1, 2, 0, 4), Color.Empty, Color.Empty, 0f));
205
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new RectangleF(1, 2, 0, 4), Color.Empty, Color.Empty, 0f));
206
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new Rectangle(1, 2, 0, 4), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal));
207
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new RectangleF(1, 2, 0, 4), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal));
208
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new Rectangle(1, 2, 0, 4), Color.Empty, Color.Empty, 0, true));
209
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new RectangleF(1, 2, 0, 4), Color.Empty, Color.Empty, 0, true));
215
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new Rectangle(1, 2, 3, 0), Color.Empty, Color.Empty, 0f));
216
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new RectangleF(1, 2, 3, 0), Color.Empty, Color.Empty, 0f));
217
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new Rectangle(1, 2, 3, 0), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal));
218
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new RectangleF(1, 2, 3, 0), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal));
219
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new Rectangle(1, 2, 3, 0), 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));
228
Assert.ThrowsAny<ArgumentException>(() => new
LinearGradientBrush
(new Rectangle(1, 2, 3, 4), Color.Empty, Color.Empty, linearGradientMode));
229
Assert.ThrowsAny<ArgumentException>(() => new
LinearGradientBrush
(new RectangleF(1, 2, 3, 4), Color.Empty, Color.Empty, linearGradientMode));
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);
System\Drawing\PenTests.cs (2)
15
yield return new object[] { new
LinearGradientBrush
(new Point(0, 0), new Point(0, 2), Color.Purple, Color.Plum), PenType.LinearGradient };
253
using LinearGradientBrush brush =
new
(Point.Empty, new Point(1, 2), Color.Blue, Color.Red);
System.Windows.Forms (14)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (3)
90
using Brush b = new
LinearGradientBrush
(
107
using Brush b = new
LinearGradientBrush
(
118
using Brush b = new
LinearGradientBrush
(
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (11)
576
using Brush b = new
LinearGradientBrush
(
633
using Brush b = new
LinearGradientBrush
(
993
using (Brush b = new
LinearGradientBrush
(beginGradient, beginColor, middleColor, mode))
999
using (LinearGradientBrush b =
new
(endGradient, middleColor, endColor, mode))
1018
using Brush b = new
LinearGradientBrush
(bounds, beginColor, endColor, mode);
1087
using Brush b = new
LinearGradientBrush
(
1144
using LinearGradientBrush b =
new
(
1159
using LinearGradientBrush b =
new
(
1413
using Brush b = new
LinearGradientBrush
(
1437
using Brush b = new
LinearGradientBrush
(
1549
using Brush b = new
LinearGradientBrush
(
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerActionPanel.cs (2)
477
using LinearGradientBrush gradientBrush =
new
(rect, GradientDarkColor, GradientLightColor, LinearGradientMode.Horizontal);
482
using LinearGradientBrush gradientBrush =
new
(rect, GradientLightColor, GradientDarkColor, LinearGradientMode.Horizontal);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1827
using (LinearGradientBrush brush =
new
(bounds, Color.White, _defaultBorderColor, LinearGradientMode.Vertical))
86 references to LinearGradientBrush
System.Drawing (1)
System.Drawing.cs (1)
39
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.
LinearGradientBrush
))]
System.Drawing.Common.Tests (79)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (77)
24
using
LinearGradientBrush
brush = new((PointF)point1, point2, color1, color2);
40
using
LinearGradientBrush
brush = new(new PointF(float.NaN, float.NaN), new PointF(float.PositiveInfinity, float.NegativeInfinity), Color.Plum, Color.Red);
51
using
LinearGradientBrush
brush = new(point1, point2, color1, color2);
85
using
LinearGradientBrush
brush = new(rectangle, color1, color2, linearGradientMode);
102
using
LinearGradientBrush
brush = new((RectangleF)rectangle, color1, color2, linearGradientMode);
128
using
LinearGradientBrush
brush = new(rectangle, color1, color2, angle);
145
using
LinearGradientBrush
brush = new((RectangleF)rectangle, color1, color2, angle);
171
using
LinearGradientBrush
brush = new(rectangle, color1, color2, angle, isAngleScalable);
188
using
LinearGradientBrush
brush = new((RectangleF)rectangle, color1, color2, angle, isAngleScalable);
235
using
LinearGradientBrush
brush = new(new Rectangle(1, 2, 3, 4), Color.Plum, Color.Red, 45, true);
236
LinearGradientBrush
clone = Assert.IsType<
LinearGradientBrush
>(brush.Clone());
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);
System\Drawing\PenTests.cs (1)
253
using
LinearGradientBrush
brush = new(Point.Empty, new Point(1, 2), Color.Blue, Color.Red);
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (3)
999
using (
LinearGradientBrush
b = new(endGradient, middleColor, endColor, mode))
1144
using
LinearGradientBrush
b = new(
1159
using
LinearGradientBrush
b = new(
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerActionPanel.cs (2)
477
using
LinearGradientBrush
gradientBrush = new(rect, GradientDarkColor, GradientLightColor, LinearGradientMode.Horizontal);
482
using
LinearGradientBrush
gradientBrush = new(rect, GradientLightColor, GradientDarkColor, LinearGradientMode.Horizontal);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1827
using (
LinearGradientBrush
brush = new(bounds, Color.White, _defaultBorderColor, LinearGradientMode.Vertical))