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