21 references to LinearGradientBrush
System.Drawing.Common.Tests (4)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (4)
85using LinearGradientBrush brush = new(rectangle, color1, color2, linearGradientMode); 206AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new Rectangle(1, 2, 0, 4), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal)); 217AssertExtensions.Throws<ArgumentException>(null, () => new LinearGradientBrush(new Rectangle(1, 2, 3, 0), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal)); 228Assert.ThrowsAny<ArgumentException>(() => new LinearGradientBrush(new Rectangle(1, 2, 3, 4), Color.Empty, Color.Empty, linearGradientMode));
System.Windows.Forms (14)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (3)
90using Brush b = new LinearGradientBrush( 107using Brush b = new LinearGradientBrush( 118using Brush b = new LinearGradientBrush(
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (11)
576using Brush b = new LinearGradientBrush( 633using Brush b = new LinearGradientBrush( 993using (Brush b = new LinearGradientBrush(beginGradient, beginColor, middleColor, mode)) 999using (LinearGradientBrush b = new(endGradient, middleColor, endColor, mode)) 1018using Brush b = new LinearGradientBrush(bounds, beginColor, endColor, mode); 1087using Brush b = new LinearGradientBrush( 1144using LinearGradientBrush b = new( 1159using LinearGradientBrush b = new( 1413using Brush b = new LinearGradientBrush( 1437using Brush b = new LinearGradientBrush( 1549using Brush b = new LinearGradientBrush(
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerActionPanel.cs (2)
477using LinearGradientBrush gradientBrush = new(rect, GradientDarkColor, GradientLightColor, LinearGradientMode.Horizontal); 482using LinearGradientBrush gradientBrush = new(rect, GradientLightColor, GradientDarkColor, LinearGradientMode.Horizontal);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1827using (LinearGradientBrush brush = new(bounds, Color.White, _defaultBorderColor, LinearGradientMode.Vertical))