1 write to Orientation
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4689Orientation = newOrientation;
57 references to Orientation
System.Windows.Forms (29)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (5)
74if (Orientation == Orientation.Horizontal) 309if (Orientation == Orientation.Horizontal) 447if (_lastOrientation != Orientation) 456_lastOrientation = Orientation; 458if (Orientation == Orientation.Horizontal)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (7)
610if (Orientation == Orientation.Vertical) 772if (Orientation == Orientation.Horizontal) 1219switch (Orientation) 3165if (IsDropDown || Orientation != Orientation.Horizontal) 3893if (Orientation == Orientation.Horizontal) 4285if (Orientation == Orientation.Horizontal) 4683if (newOrientation != Orientation)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (3)
60int height = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.Height : bounds.Width; 61int width = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.Width : bounds.Height; 73shadowRects[i] = (toolStrip.Orientation == Orientation.Horizontal) ?
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (2)
76if (parent.Orientation == Orientation.Horizontal) 94if (ParentInternal.Orientation == Orientation.Horizontal)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (10)
163bool horizontal = e.ToolStrip is not null && e.ToolStrip.Orientation == Orientation.Horizontal; 422if (toolStrip.Orientation == Orientation.Horizontal) 455if (toolStrip.Orientation == Orientation.Horizontal) 488int height = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.Height : bounds.Width; 489int width = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.Width : bounds.Height; 504shadowRects[i] = (toolStrip.Orientation == Orientation.Horizontal) ? 1039statusStrip.Orientation); 1101RenderBackgroundGradient(e.Graphics, e.ToolStrip, ColorTable.MenuStripGradientBegin, ColorTable.MenuStripGradientEnd, e.ToolStrip.Orientation); 1177LinearGradientMode mode = (toolStrip.Orientation == Orientation.Horizontal) ? LinearGradientMode.Vertical : LinearGradientMode.Horizontal; 1221bool horizontal = e.ToolStrip is not null && e.ToolStrip.Orientation == Orientation.Horizontal;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (2)
206if (_owner.Orientation == Orientation.Horizontal) 226if (_owner.Orientation == Orientation.Vertical)
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1823if (ToolStrip.Orientation == Orientation.Horizontal)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
1230if (parent.Orientation == Orientation.Horizontal) 1251if (parent.Orientation == Orientation.Horizontal)
System.Windows.Forms.Tests (25)
System\Windows\Forms\MenuStripTests.cs (1)
112Assert.Equal(Orientation.Horizontal, control.Orientation);
System\Windows\Forms\StatusStripTests.cs (5)
111Assert.Equal(Orientation.Horizontal, control.Orientation); 305Assert.Equal(expectedOrientation, control.Orientation); 314Assert.Equal(expectedOrientation, control.Orientation); 380Assert.Equal(expectedOrientation, control.Orientation); 388Assert.Equal(expectedOrientation, control.Orientation);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
118Assert.Equal(Orientation.Horizontal, control.Orientation);
System\Windows\Forms\ToolStripTests.cs (18)
128Assert.Equal(Orientation.Horizontal, control.Orientation); 283Assert.Equal(Orientation.Horizontal, control.Orientation); 2398Assert.Equal(expectedOrientation, control.Orientation); 2407Assert.Equal(expectedOrientation, control.Orientation); 2499Assert.Equal(expectedOrientation, control.Orientation); 2509Assert.Equal(expectedOrientation, control.Orientation); 2605Assert.Equal(expectedOrientation, control.Orientation); 2615Assert.Equal(expectedOrientation, control.Orientation); 2901Assert.Equal(expectedOrientation, control.Orientation); 2909Assert.Equal(expectedOrientation, control.Orientation); 2935Assert.Equal(expectedOrientation, control.Orientation); 2945Assert.Equal(expectedOrientation, control.Orientation); 2999Assert.Equal(expectedOrientation, control.Orientation); 3009Assert.Equal(expectedOrientation, control.Orientation); 3097Assert.Equal(expectedOrientation, control.Orientation); 3105Assert.Equal(expectedOrientation, control.Orientation); 3164Assert.Equal(expectedOrientation, control.Orientation); 3175Assert.Equal(expectedOrientation, control.Orientation);