21 references to LinearGradientBrush
System.Drawing.Common.Tests (4)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (4)
85
using LinearGradientBrush brush =
new
(rectangle, color1, color2, linearGradientMode);
206
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new Rectangle(1, 2, 0, 4), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal));
217
AssertExtensions.Throws<ArgumentException>(null, () => new
LinearGradientBrush
(new Rectangle(1, 2, 3, 0), Color.Empty, Color.Empty, LinearGradientMode.BackwardDiagonal));
228
Assert.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)
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))