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