13 references to Horizontal
System.Drawing.Common.Tests (4)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (4)
77
yield return new object[] { new Rectangle(-1, -2, -3, -4), Color.Red, Color.Red, LinearGradientMode.
Horizontal
};
95
Assert.Equal(linearGradientMode == LinearGradientMode.
Horizontal
, brush.Transform.IsIdentity);
112
Assert.Equal(linearGradientMode == LinearGradientMode.
Horizontal
, brush.Transform.IsIdentity);
224
[InlineData(LinearGradientMode.
Horizontal
- 1)]
System.Windows.Forms (7)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (7)
704
FillWithDoubleGradient(begin, ColorTable.ImageMarginGradientMiddle, end, e.Graphics, bounds, _iconWellGradientWidth, _iconWellGradientWidth, LinearGradientMode.
Horizontal
, /*flipHorizontal=*/(e.ToolStrip.RightToLeft == RightToLeft.Yes));
964
if (mode == LinearGradientMode.
Horizontal
)
1001
if (mode == LinearGradientMode.
Horizontal
)
1148
LinearGradientMode.
Horizontal
);
1163
LinearGradientMode.
Horizontal
);
1177
LinearGradientMode mode = (toolStrip.Orientation == Orientation.Horizontal) ? LinearGradientMode.Vertical : LinearGradientMode.
Horizontal
;
1281
LinearGradientMode mode = horizontal ? LinearGradientMode.Vertical : LinearGradientMode.
Horizontal
;
System.Windows.Forms.Design (2)
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
);