28 instantiations of ColorBlend
System.Drawing.Common.Tests (28)
System\Drawing\Drawing2D\ColorBlendTests.cs (6)
11ColorBlend blend = new(); 21ColorBlend blend = new(count); 29Assert.Throws<OverflowException>(() => new ColorBlend(-1)); 35Assert.Throws<OutOfMemoryException>(() => new ColorBlend(int.MaxValue)); 41ColorBlend blend = new() { Colors = null }; 51ColorBlend blend = new() { Positions = null };
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (13)
259ColorBlend blend = new() 376ColorBlend blend = new() 392InterpolationColors = new ColorBlend 398ColorBlend blend = new() 419Assert.Throws<NullReferenceException>(() => brush.InterpolationColors = new ColorBlend { Colors = null }); 430() => brush.InterpolationColors = new ColorBlend { Colors = new Color[colorsLength] }); 437Assert.Throws<ArgumentException>(() => brush.InterpolationColors = new ColorBlend { Colors = new Color[2], Positions = null }); 447AssertExtensions.Throws<ArgumentException>("value", () => brush.InterpolationColors = new ColorBlend 460AssertExtensions.Throws<ArgumentException>(null, () => brush.InterpolationColors = new ColorBlend 472InterpolationColors = new ColorBlend 481AssertExtensions.Throws<ArgumentException>(null, () => brush.InterpolationColors = new ColorBlend 493InterpolationColors = new ColorBlend 512InterpolationColors = new ColorBlend
System\Drawing\Drawing2D\PathGradientBrushTests.cs (9)
533brush.InterpolationColors = new ColorBlend() { Colors = expectedColors, Positions = expectedPositions }; 537brush.InterpolationColors = new ColorBlend() { Colors = sameColors, Positions = expectedPositions }; 583brush.InterpolationColors = new ColorBlend() { Colors = null, Positions = null }); 586brush.InterpolationColors = new ColorBlend() { Colors = null, Positions = new float[2] }); 594brush.InterpolationColors = new ColorBlend() { Colors = new Color[1], Positions = null }); 601AssertExtensions.Throws<ArgumentException>(null, () => brush.InterpolationColors = new ColorBlend()); 609brush.InterpolationColors = new ColorBlend() { Colors = [], Positions = [] }); 617brush.InterpolationColors = new ColorBlend() { Colors = new Color[1], Positions = new float[2] }); 625brush.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)
1716public System.Drawing.Drawing2D.ColorBlend InterpolationColors { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1829public 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)
11ColorBlend blend = new(); 21ColorBlend blend = new(count); 41ColorBlend blend = new() { Colors = null }; 51ColorBlend blend = new() { Positions = null };
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (3)
259ColorBlend blend = new() 376ColorBlend blend = new() 398ColorBlend blend = new()