14 references to Horizontal
System.Drawing.Common (1)
System\Drawing\Drawing2D\LinearGradientBrush.cs (1)
31if (linearGradientMode is < LinearGradientMode.Horizontal or > LinearGradientMode.BackwardDiagonal)
System.Drawing.Common.Tests (4)
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (4)
79yield return new object[] { new Rectangle(-1, -2, -3, -4), Color.Red, Color.Red, LinearGradientMode.Horizontal }; 97Assert.Equal(linearGradientMode == LinearGradientMode.Horizontal, brush.Transform.IsIdentity); 114Assert.Equal(linearGradientMode == LinearGradientMode.Horizontal, brush.Transform.IsIdentity); 226[InlineData(LinearGradientMode.Horizontal - 1)]
System.Windows.Forms (7)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (7)
703FillWithDoubleGradient(begin, ColorTable.ImageMarginGradientMiddle, end, e.Graphics, bounds, _iconWellGradientWidth, _iconWellGradientWidth, LinearGradientMode.Horizontal, /*flipHorizontal=*/(e.ToolStrip.RightToLeft == RightToLeft.Yes)); 963if (mode == LinearGradientMode.Horizontal) 1000if (mode == LinearGradientMode.Horizontal) 1147LinearGradientMode.Horizontal); 1162LinearGradientMode.Horizontal); 1176LinearGradientMode mode = (toolStrip.Orientation == Orientation.Horizontal) ? LinearGradientMode.Vertical : LinearGradientMode.Horizontal; 1280LinearGradientMode mode = horizontal ? LinearGradientMode.Vertical : LinearGradientMode.Horizontal;
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionPanel.cs (2)
477using LinearGradientBrush gradientBrush = new(rect, GradientDarkColor, GradientLightColor, LinearGradientMode.Horizontal); 482using LinearGradientBrush gradientBrush = new(rect, GradientLightColor, GradientDarkColor, LinearGradientMode.Horizontal);