1 write to Orientation
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4571Orientation = newOrientation;
57 references to Orientation
System.Windows.Forms (29)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (5)
71if (Orientation == Orientation.Horizontal) 306if (Orientation == Orientation.Horizontal) 455if (_lastOrientation != Orientation) 464_lastOrientation = Orientation; 466if (Orientation == Orientation.Horizontal)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (7)
572if (Orientation == Orientation.Vertical) 733if (Orientation == Orientation.Horizontal) 1180switch (Orientation) 3050if (IsDropDown || Orientation != Orientation.Horizontal) 3780if (Orientation == Orientation.Horizontal) 4172if (Orientation == Orientation.Horizontal) 4569if (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) 223if (_owner.Orientation == Orientation.Vertical)
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1804if (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)
114Assert.Equal(Orientation.Horizontal, control.Orientation);
System\Windows\Forms\StatusStripTests.cs (5)
113Assert.Equal(Orientation.Horizontal, control.Orientation); 307Assert.Equal(expectedOrientation, control.Orientation); 316Assert.Equal(expectedOrientation, control.Orientation); 382Assert.Equal(expectedOrientation, control.Orientation); 390Assert.Equal(expectedOrientation, control.Orientation);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
120Assert.Equal(Orientation.Horizontal, control.Orientation);
System\Windows\Forms\ToolStripTests.cs (18)
130Assert.Equal(Orientation.Horizontal, control.Orientation); 285Assert.Equal(Orientation.Horizontal, control.Orientation); 2400Assert.Equal(expectedOrientation, control.Orientation); 2409Assert.Equal(expectedOrientation, control.Orientation); 2501Assert.Equal(expectedOrientation, control.Orientation); 2511Assert.Equal(expectedOrientation, control.Orientation); 2607Assert.Equal(expectedOrientation, control.Orientation); 2617Assert.Equal(expectedOrientation, control.Orientation); 2903Assert.Equal(expectedOrientation, control.Orientation); 2911Assert.Equal(expectedOrientation, control.Orientation); 2937Assert.Equal(expectedOrientation, control.Orientation); 2947Assert.Equal(expectedOrientation, control.Orientation); 3001Assert.Equal(expectedOrientation, control.Orientation); 3011Assert.Equal(expectedOrientation, control.Orientation); 3099Assert.Equal(expectedOrientation, control.Orientation); 3107Assert.Equal(expectedOrientation, control.Orientation); 3166Assert.Equal(expectedOrientation, control.Orientation); 3177Assert.Equal(expectedOrientation, control.Orientation);