28 instantiations of ColorBlend
System.Drawing.Common.Tests (28)
System\Drawing\Drawing2D\ColorBlendTests.cs (6)
11
ColorBlend blend =
new
();
21
ColorBlend blend =
new
(count);
29
Assert.Throws<OverflowException>(() => new
ColorBlend
(-1));
35
Assert.Throws<OutOfMemoryException>(() => new
ColorBlend
(int.MaxValue));
41
ColorBlend blend =
new
() { Colors = null };
51
ColorBlend blend =
new
() { Positions = null };
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (13)
261
ColorBlend blend =
new
()
378
ColorBlend blend =
new
()
394
InterpolationColors = new
ColorBlend
400
ColorBlend blend =
new
()
421
Assert.Throws<NullReferenceException>(() => brush.InterpolationColors = new
ColorBlend
{ Colors = null });
432
() => brush.InterpolationColors = new
ColorBlend
{ Colors = new Color[colorsLength] });
439
Assert.Throws<ArgumentException>(() => brush.InterpolationColors = new
ColorBlend
{ Colors = new Color[2], Positions = null });
449
AssertExtensions.Throws<ArgumentException>("value", () => brush.InterpolationColors = new
ColorBlend
462
AssertExtensions.Throws<ArgumentException>(null, () => brush.InterpolationColors = new
ColorBlend
474
InterpolationColors = new
ColorBlend
483
AssertExtensions.Throws<ArgumentException>(null, () => brush.InterpolationColors = new
ColorBlend
495
InterpolationColors = new
ColorBlend
514
InterpolationColors = new
ColorBlend
System\Drawing\Drawing2D\PathGradientBrushTests.cs (9)
535
brush.InterpolationColors = new
ColorBlend
() { Colors = expectedColors, Positions = expectedPositions };
539
brush.InterpolationColors = new
ColorBlend
() { Colors = sameColors, Positions = expectedPositions };
585
brush.InterpolationColors = new
ColorBlend
() { Colors = null, Positions = null });
588
brush.InterpolationColors = new
ColorBlend
() { Colors = null, Positions = new float[2] });
596
brush.InterpolationColors = new
ColorBlend
() { Colors = new Color[1], Positions = null });
603
AssertExtensions.Throws<ArgumentException>(null, () => brush.InterpolationColors = new
ColorBlend
());
611
brush.InterpolationColors = new
ColorBlend
() { Colors = [], Positions = [] });
619
brush.InterpolationColors = new
ColorBlend
() { Colors = new Color[1], Positions = new float[2] });
627
brush.InterpolationColors = new
ColorBlend
() { Colors = new Color[2], Positions = new float[1] });
10 references to ColorBlend
System.Drawing (1)
System.Drawing.cs (1)
22
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Drawing2D.
ColorBlend
))]
System.Drawing.Common (2)
Special\NotSupported.cs (2)
1716
public System.Drawing.Drawing2D.
ColorBlend
InterpolationColors { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
1829
public System.Drawing.Drawing2D.
ColorBlend
InterpolationColors { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
System.Drawing.Common.Tests (7)
System\Drawing\Drawing2D\ColorBlendTests.cs (4)
11
ColorBlend
blend = new();
21
ColorBlend
blend = new(count);
41
ColorBlend
blend = new() { Colors = null };
51
ColorBlend
blend = new() { Positions = null };
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (3)
261
ColorBlend
blend = new()
378
ColorBlend
blend = new()
400
ColorBlend
blend = new()