679 references to Orientation
System.Windows.Forms (123)
System\Windows\Forms\Controls\ToolStrips\ArrowDirection.cs (4)
12
Up = 0x00 |
Orientation
.Vertical,
13
Down = 0x10 |
Orientation
.Vertical,
14
Left = 0x00 |
Orientation
.Horizontal,
15
Right = 0x10 |
Orientation
.Horizontal,
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (5)
25
private
Orientation
_lastOrientation =
Orientation
.Horizontal;
74
if (Orientation ==
Orientation
.Horizontal)
309
if (Orientation ==
Orientation
.Horizontal)
458
if (Orientation ==
Orientation
.Horizontal)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (17)
575
if (Orientation ==
Orientation
.Vertical)
736
if (Orientation ==
Orientation
.Horizontal)
1185
case
Orientation
.Horizontal:
1187
case
Orientation
.Vertical:
1211
UpdateOrientation(
Orientation
.Horizontal);
1221
UpdateOrientation(
Orientation
.Horizontal);
1230
UpdateOrientation((value == ToolStripLayoutStyle.VerticalStackWithOverflow) ?
Orientation
.Vertical :
Orientation
.Horizontal);
1383
public
Orientation
Orientation { get; private set; } =
Orientation
.Horizontal;
3053
if (IsDropDown || Orientation !=
Orientation
.Horizontal)
3782
if (Orientation ==
Orientation
.Horizontal)
4174
if (Orientation ==
Orientation
.Horizontal)
4529
UpdateOrientation(
Orientation
.Vertical);
4533
UpdateOrientation(
Orientation
.Horizontal);
4546
private void UpdateLayoutStyle(
Orientation
newRaftingRowOrientation)
4567
private void UpdateOrientation(
Orientation
newOrientation)
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\ToolStripPanel.cs (14)
15
private
Orientation
_orientation =
Orientation
.Horizontal;
144
Orientation =
Orientation
.Vertical;
148
Orientation =
Orientation
.Horizontal;
192
public
Orientation
Orientation
404
if (Orientation ==
Orientation
.Horizontal)
419
&& Orientation ==
Orientation
.Horizontal
676
if (Orientation ==
Orientation
.Horizontal && RightToLeft == RightToLeft.Yes)
737
if (Orientation ==
Orientation
.Horizontal)
866
if (Orientation ==
Orientation
.Horizontal)
902
Point endLocation = (Orientation ==
Orientation
.Horizontal) ? new Point(clientLocation.X, row.Bounds.Y) : new Point(row.Bounds.X, clientLocation.Y);
964
if (Orientation ==
Orientation
.Vertical)
1032
if (Orientation ==
Orientation
.Horizontal && (bounds.Width == 0))
1036
else if (Orientation ==
Orientation
.Vertical && (bounds.Height == 0))
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelControlCollection.cs (1)
37
if (_owner.Orientation ==
Orientation
.Horizontal)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (3)
145
if (ToolStripPanelRow is not null && ToolStripPanelRow.Orientation ==
Orientation
.Vertical)
270
if (ToolStripPanelRow.Orientation ==
Orientation
.Horizontal)
310
if (ToolStripPanelRow.Orientation ==
Orientation
.Horizontal)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (5)
115
_rowManager = Orientation ==
Orientation
.Horizontal
137
if (Orientation ==
Orientation
.Horizontal)
246
public
Orientation
Orientation
390
else if (Orientation ==
Orientation
.Horizontal)
674
if (Orientation ==
Orientation
.Horizontal && ParentInternal is not null)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (11)
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) ?
1120
RenderBackgroundGradient(g, control, beginColor, endColor,
Orientation
.Horizontal);
1124
private static void RenderBackgroundGradient(Graphics g, Control control, Color beginColor, Color endColor,
Orientation
orientation)
1131
if (orientation !=
Orientation
.Horizontal)
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)
226
if (_owner.Orientation ==
Orientation
.Vertical)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (19)
34
private
Orientation
_orientation =
Orientation
.Horizontal;
88
if (_orientation ==
Orientation
.Horizontal)
175
if (_orientation ==
Orientation
.Vertical)
358
[DefaultValue(
Orientation
.Horizontal)]
361
public
Orientation
Orientation
366
if (value is <
Orientation
.Horizontal or >
Orientation
.Vertical)
368
throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(
Orientation
));
378
if (_orientation ==
Orientation
.Horizontal)
704
if (_orientation ==
Orientation
.Horizontal)
786
int maxTickCount = (Orientation ==
Orientation
.Horizontal ? Size.Width : Size.Height) / 2;
823
if (_orientation ==
Orientation
.Vertical)
830
if (_orientation ==
Orientation
.Horizontal && RightToLeft == RightToLeft.Yes && !IsMirrored)
1011
_requestedDim = (_orientation ==
Orientation
.Horizontal) ? height : width;
1015
if (_orientation ==
Orientation
.Horizontal)
1111
if (_orientation ==
Orientation
.Vertical)
1117
if (_orientation ==
Orientation
.Horizontal && RightToLeft == RightToLeft.Yes && !IsMirrored)
1146
int size = Orientation ==
Orientation
.Horizontal ? Size.Width : Size.Height;
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarFirstButtonAccessibleObject.cs (2)
23
: owner.Orientation ==
Orientation
.Horizontal && (owner.RightToLeft == RightToLeft.No || parent.IsMirrored)
41
return owner.Orientation ==
Orientation
.Vertical || parent.RTLLayoutDisabled
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarLastButtonAccessibleObject.cs (2)
23
: owner.Orientation ==
Orientation
.Horizontal && (owner.RightToLeft == RightToLeft.No || parent.IsMirrored)
50
return owner.Orientation ==
Orientation
.Vertical || parent.RTLLayoutDisabled
System\Windows\Forms\Layout\Containers\SplitContainer.cs (33)
33
private
Orientation
_orientation =
Orientation
.Vertical;
358
if (Orientation ==
Orientation
.Vertical)
391
if (Orientation ==
Orientation
.Vertical)
415
[DefaultValue(
Orientation
.Vertical)]
418
public
Orientation
Orientation
650
if (Orientation ==
Orientation
.Vertical)
699
if (Orientation ==
Orientation
.Vertical)
962
if (Orientation ==
Orientation
.Vertical)
1070
if (Orientation ==
Orientation
.Vertical)
1090
if (Orientation ==
Orientation
.Vertical)
1205
SetSplitterRect(Orientation ==
Orientation
.Vertical);
1257
if (Orientation ==
Orientation
.Vertical)
1264
else if (Orientation ==
Orientation
.Horizontal)
1286
if (Orientation ==
Orientation
.Vertical)
1293
else if (Orientation ==
Orientation
.Horizontal)
1315
if (Orientation ==
Orientation
.Vertical)
1322
else if (Orientation ==
Orientation
.Horizontal)
1352
if (Orientation ==
Orientation
.Vertical)
1378
case
Orientation
.Vertical:
1397
case
Orientation
.Horizontal:
1489
if (Orientation ==
Orientation
.Vertical)
1504
case
Orientation
.Vertical:
1516
case
Orientation
.Horizontal:
1521
if (Orientation ==
Orientation
.Vertical)
1612
if (Orientation ==
Orientation
.Vertical)
1669
else if (Orientation ==
Orientation
.Horizontal)
1759
if (_orientation ==
Orientation
.Vertical)
2064
if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && Orientation ==
Orientation
.Horizontal)
2073
if ((specified & BoundsSpecified.Width) != BoundsSpecified.None && Orientation ==
Orientation
.Vertical)
2083
SetSplitterRect(Orientation ==
Orientation
.Vertical);
2113
if (Orientation ==
Orientation
.Vertical)
2169
if (Orientation ==
Orientation
.Vertical)
System.Windows.Forms.Design (15)
System\Windows\Forms\Design\SplitContainerDesigner.OrientationActionList.cs (7)
31
bool needsVertical = ((
Orientation
)orientationProp.GetValue(_ownerComponent)!) ==
Orientation
.Horizontal;
44
Orientation
orientation = verb.Text.Equals(SR.DesignerShortcutHorizontalOrientation) ?
Orientation
.Horizontal :
Orientation
.Vertical;
47
_actionName = (orientation ==
Orientation
.Horizontal) ? SR.DesignerShortcutVerticalOrientation : SR.DesignerShortcutHorizontalOrientation;
51
if (orientationProp is not null && ((
Orientation
)orientationProp.GetValue(_ownerComponent)!) != orientation)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1805
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\Design\TrackBarDesigner.cs (5)
24
var
orientation = GetPropertyValue<
Orientation
?>(Component, nameof(TrackBar.Orientation)) ??
Orientation
.Horizontal;
28
case
Orientation
.Horizontal:
31
case
Orientation
.Vertical:
System.Windows.Forms.Tests (503)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (14)
141
public void TrackBarAccessibilityObject_GetChildCount_ReturnsThree_IfAllButtonsAreDisplayed(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
153
public void TrackBarAccessibilityObject_GetChildCount_ReturnsTwo_IfFirstButtonIsHidden(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
165
public void TrackBarAccessibilityObject_GetChildCount_ReturnsTwo_IfLastButtonIsHidden(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
177
public void TrackBarAccessibilityObject_GetChildCount_ReturnsTwo_MinimumEqualsMaximum(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
190
public void TrackBarAccessibilityObject_GetChildCount_ReturnsMinusOne_IfHandleIsNotCreated(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
201
public void TrackBarAccessibilityObject_GetChild_ReturnsExpected_ButtonsAreDisplayed(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
216
public void TrackBarAccessibilityObject_GetChild_ReturnsExpected_FirstButtonIsHidden(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
230
public void TrackBarAccessibilityObject_GetChild_ReturnsExpected_LastButtonIsHidden(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
245
public void TrackBarAccessibilityObject_GetChild_ReturnsNull_IfHandleNotCreated(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
343
public void TrackBarAccessibilityObject_FragmentNavigate_Child_ReturnsExpected_ButtonsAreDisplayed(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
355
public void TrackBarAccessibilityObject_FragmentNavigate_Child_ReturnsExpected_IfFirstButtonIsHidden(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
367
public void TrackBarAccessibilityObject_FragmentNavigate_Child_ReturnsExpected_IfLastButtonIsHidden(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
379
public void TrackBarAccessibilityObject_FragmentNavigate_Child_ReturnsNull_IfHandleNotCreated(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
476
private TrackBar GetTrackBar(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int value, int minimum, int maximum)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (47)
14
public void TrackBarFirstButtonAccessibleObject_Bounds_ReturnsNotEmptyRectangle_IfButtonIsDisplayed(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
25
public void TrackBarFirstButtonAccessibleObject_Bounds_ReturnsEmptyRectangle_IfButtonIsHidden(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
36
public void TrackBarFirstButtonAccessibleObject_Bounds_ReturnsEmptyRectangle_IfHandleIsNotCreated(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
47
public void TrackBarFirstButtonAccessibleObject_DefaultAction_ReturnActionPress(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
58
public void TrackBarFirstButtonAccessibleObject_Help_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
80
yield return new object[] {
Orientation
.Horizontal, rightToLeft, rightToLeftLayout, createControl, /*minumim*/ 0, /*maximum*/ 10, /*value*/ 5 };
81
yield return new object[] {
Orientation
.Horizontal, rightToLeft, rightToLeftLayout, createControl, /*minumim*/ 0, /*maximum*/ 10, /*value*/ 0 };
82
yield return new object[] {
Orientation
.Horizontal, rightToLeft, rightToLeftLayout, createControl, /*minumim*/ 0, /*maximum*/ 10, /*value*/ 10 };
83
yield return new object[] {
Orientation
.Horizontal, rightToLeft, rightToLeftLayout, createControl, /*minumim*/ 0, /*maximum*/ 0, /*value*/ 0 };
91
public void TrackBarFirstButtonAccessibleObject_Name_ReturnDescreaseName(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
102
foreach (
Orientation
orientation in Enum.GetValues(typeof(
Orientation
)))
108
if (orientation ==
Orientation
.Vertical || (rightToLeft == RightToLeft.Yes && !rightToLeftLayout))
125
public void TrackBarFirstButtonAccessibleObject_Name_ReturnIncreaseName(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
136
public void TrackBarFirstButtonAccessibleObject_Role_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
148
public void TrackBarFirstButtonAccessibleObject_State_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
162
public void TrackBarFirstButtonAccessibleObject_FragmentNavigate_ReturnsNull_IfFirstButtonIsHidden(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
178
public void TrackBarFirstButtonAccessibleObject_FragmentNavigate_ReturnsNull_MinimumEqualsMaximum(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
194
public void TrackBarFirstButtonAccessibleObject_FragmentNavigate_ReturnsExpected_IfFirstButtonIsDisplayed(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
210
public void TrackBarFirstButtonAccessibleObject_FragmentNavigate_ReturnsNull_IfHandleIsNotCreated(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
225
public void TrackBarFirstButtonAccessibleObject_GetChildCount_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
236
public void TrackBarFirstButtonAccessibleObject_GetChild_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
248
[InlineData(
Orientation
.Vertical, RightToLeft.Yes, true)]
249
[InlineData(
Orientation
.Vertical, RightToLeft.Yes, false)]
250
[InlineData(
Orientation
.Vertical, RightToLeft.No, true)]
251
[InlineData(
Orientation
.Vertical, RightToLeft.No, false)]
252
[InlineData(
Orientation
.Horizontal, RightToLeft.Yes, false)]
253
public void TrackBarFirstButtonAccessibleObject_Invoke_Increase_WorkCorrectly(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout)
275
[InlineData(
Orientation
.Horizontal, RightToLeft.No, true)]
276
[InlineData(
Orientation
.Horizontal, RightToLeft.No, false)]
277
[InlineData(
Orientation
.Horizontal, RightToLeft.Yes, true)]
278
public void TrackBarFirstButtonAccessibleObject_Invoke_Decrease_WorkCorrectly(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout)
301
public void TrackBarFirstButtonAccessibleObject_Invoke_DoesNotWork_IfHandleIsNotCreated(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
316
public void TrackBarFirstButtonAccessibleObject_InvokePattern_DoesNotSupport(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
327
public void TrackBarFirstButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
339
public void TrackBarFirstButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
351
public void TrackBarFirstButtonAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
363
public void TrackBarFirstButtonAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
373
private TrackBar GetTrackBar(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int value, int minimum, int maximum)
402
[InlineData(
Orientation
.Horizontal, RightToLeft.No, false)]
403
[InlineData(
Orientation
.Horizontal, RightToLeft.Yes, true)]
404
public void TrackBarFirstButtonAccessibleObject_Name_ReturnsDecreaseName_IfHorizontalAndNotMirrored(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout)
414
[InlineData(
Orientation
.Vertical, RightToLeft.Yes, true)]
415
[InlineData(
Orientation
.Vertical, RightToLeft.Yes, false)]
416
[InlineData(
Orientation
.Vertical, RightToLeft.No, true)]
417
[InlineData(
Orientation
.Vertical, RightToLeft.No, false)]
418
public void TrackBarFirstButtonAccessibleObject_Name_ReturnsIncreaseName_IfVertical(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (39)
14
public void TrackBarLastButtonAccessibleObject_Bounds_ReturnsNotEmptyRectangle_IfButtonIsDisplayed(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
25
public void TrackBarLastButtonAccessibleObject_Bounds_ReturnsEmptyRectangle_IfButtonIsHidden(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
36
public void TrackBarLastButtonAccessibleObject_Bounds_ReturnsEmptyRectangle_IfHandleIsNotCreated(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
47
public void TrackBarLastButtonAccessibleObject_DefaultAction_ReturnActionPress(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
58
public void TrackBarLastButtonAccessibleObject_Help_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
80
yield return new object[] {
Orientation
.Horizontal, rightToLeft, rightToLeftLayout, createControl, /*minumim*/ 0, /*maximum*/ 10, /*value*/ 5 };
81
yield return new object[] {
Orientation
.Horizontal, rightToLeft, rightToLeftLayout, createControl, /*minumim*/ 0, /*maximum*/ 10, /*value*/ 0 };
82
yield return new object[] {
Orientation
.Horizontal, rightToLeft, rightToLeftLayout, createControl, /*minumim*/ 0, /*maximum*/ 10, /*value*/ 10 };
83
yield return new object[] {
Orientation
.Horizontal, rightToLeft, rightToLeftLayout, createControl, /*minumim*/ 0, /*maximum*/ 0, /*value*/ 0 };
91
public void TrackBarFirstButtonAccessibleObject_Name_ReturnIncreaseName(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
102
foreach (
Orientation
orientation in Enum.GetValues(typeof(
Orientation
)))
108
if (orientation ==
Orientation
.Vertical || (rightToLeft == RightToLeft.Yes && !rightToLeftLayout))
125
public void TrackBarLLastButtonAccessibleObject_Name_ReturnDecreaseName(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
136
public void TrackBarLastButtonAccessibleObject_Role_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
148
public void TrackBarLastButtonAccessibleObject_State_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
163
public void TrackBarLastButtonAccessibleObject_FragmentNavigate_ReturnsNull_IfButtonIsHidden(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
179
public void TrackBarLastButtonAccessibleObject_FragmentNavigate_ReturnsNull_MinimumEqualsMaximum(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
195
public void TrackBarLastButtonAccessibleObject_FragmentNavigate_ReturnsNull_IfHandleIsNotCreated(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
210
public void TrackBarLastButtonAccessibleObject_FragmentNavigate_ReturnsExpected_IfButtonIsDisplayed(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
226
public void TrackBarLastButtonAccessibleObject_GetChildCount_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
237
public void TrackBarLastButtonAccessibleObject_GetChild_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
249
[InlineData(
Orientation
.Vertical, RightToLeft.Yes, true)]
250
[InlineData(
Orientation
.Vertical, RightToLeft.Yes, false)]
251
[InlineData(
Orientation
.Vertical, RightToLeft.No, true)]
252
[InlineData(
Orientation
.Vertical, RightToLeft.No, false)]
253
[InlineData(
Orientation
.Horizontal, RightToLeft.Yes, false)]
254
public void TrackBarLastButtonAccessibleObject_Invoke_Decrease_WorkCorrectly(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout)
276
[InlineData(
Orientation
.Horizontal, RightToLeft.No, true)]
277
[InlineData(
Orientation
.Horizontal, RightToLeft.No, false)]
278
[InlineData(
Orientation
.Horizontal, RightToLeft.Yes, true)]
279
public void TrackBarLastButtonAccessibleObject_Invoke_Increase_WorkCorrectly(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout)
302
public void TrackBarLastButtonAccessibleObject_Invoke_DoesNotWork_IfHandleIsNotCreated(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
317
public void TrackBarLastButtonAccessibleObject_InvokePattern_DoesNotSupport(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
328
public void TrackBarLastButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
340
public void TrackBarLastButtonAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
352
public void TrackBarLastButtonAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
364
public void TrackBarLastButtonAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
374
private TrackBar GetTrackBar(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int value, int minimum, int maximum)
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (19)
14
public void TrackBarThumbAccessibleObject_Bounds_ReturnsEmptyRectangle_IfHandleIsNotCreated(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
25
public void TrackBarThumbAccessibleObject_Bounds_ReturnsRectangle_IfHandleIsCreated(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
36
public void TrackBarThumbAccessibleObject_DefaultAction_ReturnActionPress(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
47
public void TrackBarThumbAccessibleObject_Help_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
58
public void TrackBarThumbAccessibleObject_Name_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
69
public void TrackBarThumbAccessibleObject_Role_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
81
public void TrackBarThumbAccessibleObject_State_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
91
public void TrackBarThumbAccessibleObject_FragmentNavigate_ReturnExpected_IfButtonsIsDisplayed(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
107
public void TrackBarThumbAccessibleObject_FragmentNavigate_ReturnExpected_IfFirstButtonIsDisplayed(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
123
public void TrackBarThumbAccessibleObject_FragmentNavigate_ReturnExpected_IfLastButtonIsDisplayed(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
139
public void TrackBarThumbAccessibleObject_FragmentNavigate_ReturnNull_IfHandleIsNotCreated(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int minimum, int maximum, int value)
155
public void TrackBarThumbAccessibleObject_GetChildCount_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
166
public void TrackBarThumbAccessibleObject_GetChild_ReturnExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
179
public void TrackBarThumbAccessibleObject_InvokePattern_DoesNotSupport(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
190
public void TrackBarThumbAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsTrue_OwnerEnabled(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
202
public void TrackBarThumbAccessibleObject_GetPropertyValue_IsEnabledProperty_ReturnsFalse_OwnerDisabled(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
214
public void TrackBarThumbAccessibleObject_IsDisplayed_ReturnsTrue_OwnerVisible(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
226
public void TrackBarThumbAccessibleObject_IsDisplayed_ReturnsFalse_OwnerInvisible(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int minimum, int maximum, int value)
236
private TrackBar GetTrackBar(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, bool createControl, int value, int minimum, int maximum)
System\Windows\Forms\MdiControlStripTests.cs (1)
114
Assert.Equal(
Orientation
.Horizontal, mdiControlStrip.Orientation);
System\Windows\Forms\MenuStripTests.cs (1)
112
Assert.Equal(
Orientation
.Horizontal, control.Orientation);
System\Windows\Forms\StatusStripTests.cs (43)
111
Assert.Equal(
Orientation
.Horizontal, control.Orientation);
238
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, 0,
Orientation
.Horizontal, 0 };
239
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, 0,
Orientation
.Horizontal, 0 };
240
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, 0,
Orientation
.Horizontal, 0 };
241
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, 0,
Orientation
.Horizontal, 0 };
242
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, 0,
Orientation
.Vertical, 0 };
244
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Fill, 1,
Orientation
.Horizontal, 1 };
245
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Fill, 1,
Orientation
.Horizontal, 0 };
246
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Fill, 1,
Orientation
.Horizontal, 1 };
247
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Fill, 1,
Orientation
.Horizontal, 1 };
248
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Fill, 1,
Orientation
.Vertical, 0 };
250
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, 1,
Orientation
.Vertical, 1 };
251
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, 1,
Orientation
.Horizontal, 0 };
252
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, 1,
Orientation
.Vertical, 1 };
253
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, 1,
Orientation
.Vertical, 1 };
254
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, 1,
Orientation
.Vertical, 0 };
256
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, 1,
Orientation
.Horizontal, 1 };
257
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, 1,
Orientation
.Horizontal, 0 };
258
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, 1,
Orientation
.Horizontal, 1 };
259
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, 1,
Orientation
.Horizontal, 1 };
260
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, 1,
Orientation
.Vertical, 0 };
262
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, 1,
Orientation
.Vertical, 1 };
263
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, 1,
Orientation
.Horizontal, 0 };
264
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, 1,
Orientation
.Vertical, 1 };
265
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, 1,
Orientation
.Vertical, 1 };
266
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, 1,
Orientation
.Vertical, 0 };
268
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, 1,
Orientation
.Horizontal, 1 };
269
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, 1,
Orientation
.Horizontal, 0 };
270
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, 1,
Orientation
.Horizontal, 1 };
271
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, 1,
Orientation
.Horizontal, 1 };
272
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, 1,
Orientation
.Vertical, 0 };
277
public void StatusStrip_Dock_Set_GetReturnsExpected(ToolStripLayoutStyle layoutStyle, DockStyle value, int expectedLayoutCallCount,
Orientation
expectedOrientation, int expectedLayoutStyleChangedCallCount)
350
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
351
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
352
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 1 };
353
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
354
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
359
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
360
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 1 };
361
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
362
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 0 };
363
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 0 };
369
public void StatusStrip_LayoutStyle_Set_GetReturnsExpected(DockStyle dock, ToolStripLayoutStyle value, ToolStripLayoutStyle expected,
Orientation
expectedOrientation, ToolStripGripDisplayStyle expectedGripDisplayStyle, int expectedLayoutCallCount)
System\Windows\Forms\ToolStripDropDownTests.cs (1)
118
Assert.Equal(
Orientation
.Horizontal, control.Orientation);
System\Windows\Forms\ToolStripTests.cs (195)
128
Assert.Equal(
Orientation
.Horizontal, control.Orientation);
283
Assert.Equal(
Orientation
.Horizontal, control.Orientation);
2331
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, 1,
Orientation
.Horizontal, 1 };
2332
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, 1,
Orientation
.Horizontal, 0 };
2333
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, 1,
Orientation
.Horizontal, 1 };
2334
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, 1,
Orientation
.Horizontal, 1 };
2335
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, 1,
Orientation
.Vertical, 0 };
2337
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Fill, 1,
Orientation
.Horizontal, 1 };
2338
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Fill, 1,
Orientation
.Horizontal, 0 };
2339
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Fill, 1,
Orientation
.Horizontal, 1 };
2340
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Fill, 1,
Orientation
.Horizontal, 1 };
2341
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Fill, 1,
Orientation
.Vertical, 0 };
2343
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, 1,
Orientation
.Vertical, 1 };
2344
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, 1,
Orientation
.Horizontal, 0 };
2345
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, 1,
Orientation
.Vertical, 1 };
2346
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, 1,
Orientation
.Vertical, 1 };
2347
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, 1,
Orientation
.Vertical, 0 };
2349
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, 1,
Orientation
.Horizontal, 1 };
2350
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, 1,
Orientation
.Horizontal, 0 };
2351
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, 1,
Orientation
.Horizontal, 1 };
2352
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, 1,
Orientation
.Horizontal, 1 };
2353
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, 1,
Orientation
.Vertical, 0 };
2355
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, 1,
Orientation
.Vertical, 1 };
2356
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, 1,
Orientation
.Horizontal, 0 };
2357
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, 1,
Orientation
.Vertical, 1 };
2358
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, 1,
Orientation
.Vertical, 1 };
2359
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, 1,
Orientation
.Vertical, 0 };
2361
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, 0,
Orientation
.Horizontal, 0 };
2362
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, 0,
Orientation
.Horizontal, 0 };
2363
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, 0,
Orientation
.Horizontal, 0 };
2364
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, 0,
Orientation
.Horizontal, 0 };
2365
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, 0,
Orientation
.Vertical, 0 };
2370
public void ToolStrip_Dock_Set_GetReturnsExpected(ToolStripLayoutStyle layoutStyle, DockStyle value, int expectedLayoutCallCount,
Orientation
expectedOrientation, int expectedLayoutStyleChangedCallCount)
2414
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom,
Orientation
.Horizontal, 0, 1, 1 };
2415
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom,
Orientation
.Horizontal, 1, 0, 1 };
2416
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom,
Orientation
.Horizontal, 0, 1, 1 };
2417
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom,
Orientation
.Horizontal, 0, 1, 1 };
2418
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom,
Orientation
.Vertical, 0, 0, 1 };
2420
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Fill,
Orientation
.Horizontal, 0, 1, 1 };
2421
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Fill,
Orientation
.Horizontal, 1, 0, 1 };
2422
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Fill,
Orientation
.Horizontal, 0, 1, 1 };
2423
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Fill,
Orientation
.Horizontal, 0, 1, 1 };
2424
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Fill,
Orientation
.Vertical, 0, 0, 1 };
2426
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left,
Orientation
.Vertical, 0, 1, 1 };
2427
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left,
Orientation
.Horizontal, 1, 0, 1 };
2428
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left,
Orientation
.Vertical, 0, 1, 1 };
2429
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left,
Orientation
.Vertical, 0, 1, 1 };
2430
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left,
Orientation
.Vertical, 0, 0, 1 };
2432
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None,
Orientation
.Horizontal, 0, 1, 1 };
2433
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None,
Orientation
.Horizontal, 1, 0, 1 };
2434
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None,
Orientation
.Horizontal, 0, 1, 1 };
2435
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None,
Orientation
.Horizontal, 0, 1, 1 };
2436
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None,
Orientation
.Vertical, 0, 0, 1 };
2438
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right,
Orientation
.Vertical, 0, 1, 1 };
2439
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right,
Orientation
.Horizontal, 1, 0, 1 };
2440
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right,
Orientation
.Vertical, 0, 1, 1 };
2441
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right,
Orientation
.Vertical, 0, 1, 1 };
2442
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right,
Orientation
.Vertical, 0, 0, 1 };
2444
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top,
Orientation
.Horizontal, 0, 0, 0 };
2445
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top,
Orientation
.Horizontal, 0, 0, 0 };
2446
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top,
Orientation
.Horizontal, 0, 0, 0 };
2447
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top,
Orientation
.Horizontal, 0, 0, 0 };
2448
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top,
Orientation
.Vertical, 0, 0, 0 };
2453
public void ToolStrip_Dock_SetWithParent_GetReturnsExpected(ToolStripLayoutStyle layoutStyle, DockStyle value,
Orientation
expectedOrientation, int expectedLayoutCallCount, int expectedLayoutStyleChangedCallCount, int expectedParentLayoutCallCount)
2520
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom,
Orientation
.Horizontal, 1 };
2521
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom,
Orientation
.Horizontal, 1 };
2522
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom,
Orientation
.Horizontal, 1 };
2523
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom,
Orientation
.Horizontal, 1 };
2524
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom,
Orientation
.Horizontal, 1 };
2526
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Fill,
Orientation
.Horizontal, 1 };
2527
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Fill,
Orientation
.Horizontal, 1 };
2528
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Fill,
Orientation
.Horizontal, 1 };
2529
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Fill,
Orientation
.Horizontal, 1 };
2530
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Fill,
Orientation
.Horizontal, 1 };
2532
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left,
Orientation
.Horizontal, 1 };
2533
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left,
Orientation
.Horizontal, 1 };
2534
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left,
Orientation
.Horizontal, 1 };
2535
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left,
Orientation
.Horizontal, 1 };
2536
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left,
Orientation
.Horizontal, 1 };
2538
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None,
Orientation
.Horizontal, 1 };
2539
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None,
Orientation
.Horizontal, 1 };
2540
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None,
Orientation
.Horizontal, 1 };
2541
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None,
Orientation
.Horizontal, 1 };
2542
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None,
Orientation
.Horizontal, 1 };
2544
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right,
Orientation
.Horizontal, 1 };
2545
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right,
Orientation
.Horizontal, 1 };
2546
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right,
Orientation
.Horizontal, 1 };
2547
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right,
Orientation
.Horizontal, 1 };
2548
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right,
Orientation
.Horizontal, 1 };
2550
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top,
Orientation
.Horizontal, 0 };
2551
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top,
Orientation
.Horizontal, 0 };
2552
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top,
Orientation
.Horizontal, 0 };
2553
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top,
Orientation
.Horizontal, 0 };
2554
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top,
Orientation
.Horizontal, 0 };
2559
public void ToolStrip_Dock_SetWithToolStripPanelParent_GetReturnsExpected(ToolStripLayoutStyle layoutStyle, DockStyle value,
Orientation
expectedOrientation, int expectedLayoutCallCount)
2871
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
2872
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
2873
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
2874
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
2875
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
2880
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
2881
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 1 };
2882
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 0 };
2883
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
2884
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 0 };
2890
public void ToolStrip_LayoutStyle_Set_GetReturnsExpected(DockStyle dock, ToolStripLayoutStyle value, ToolStripLayoutStyle expected,
Orientation
expectedOrientation, ToolStripGripDisplayStyle expectedGripDisplayStyle, int expectedLayoutCallCount)
2917
public void ToolStrip_LayoutStyle_SetWithParent_GetReturnsExpected(DockStyle dock, ToolStripLayoutStyle value, ToolStripLayoutStyle expected,
Orientation
expectedOrientation, ToolStripGripDisplayStyle expectedGripDisplayStyle, int expectedLayoutCallCount)
2962
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
2963
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
2964
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
2965
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
2966
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
2971
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
2972
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
2973
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
2974
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
2975
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
2981
public void ToolStrip_LayoutStyle_SetWithToolStripPanelParent_GetReturnsExpected(DockStyle dock, ToolStripLayoutStyle value, ToolStripLayoutStyle expected,
Orientation
expectedOrientation, ToolStripGripDisplayStyle expectedGripDisplayStyle, int expectedLayoutCallCount)
3026
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
3027
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
3028
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 1 };
3029
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
3030
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
3031
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
3032
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
3033
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 1 };
3034
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
3035
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
3036
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
3037
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
3038
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
3039
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
3040
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
3041
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
3042
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
3043
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 1 };
3044
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
3045
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
3046
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
3047
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 1 };
3048
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 1 };
3049
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
3050
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 0 };
3055
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
3056
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
3057
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
3058
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
3059
yield return new object[] { dock, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
3060
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
3061
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
3062
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
3063
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
3064
yield return new object[] { dock, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
3065
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
3066
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 1 };
3067
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 0 };
3068
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
3069
yield return new object[] { dock, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 0 };
3070
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
3071
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
3072
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
3073
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 0 };
3074
yield return new object[] { dock, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
3075
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
3076
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 1 };
3077
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
3078
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
3079
yield return new object[] { dock, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 0 };
3085
public void ToolStrip_LayoutStyle_SetWithCustomOldValue_GetReturnsExpected(DockStyle dock, ToolStripLayoutStyle oldValue, ToolStripLayoutStyle value, ToolStripLayoutStyle expected,
Orientation
expectedOrientation, ToolStripGripDisplayStyle expectedGripDisplayStyle, int expectedLayoutCallCount)
3113
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
3114
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 1 };
3115
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
3116
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
3117
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 2 };
3119
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 2 };
3120
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 2 };
3121
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 0 };
3122
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 2 };
3123
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
3125
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 2 };
3126
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 2 };
3127
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 0 };
3128
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 2 };
3129
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 1 };
3131
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
3132
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 1 };
3133
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
3134
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
3135
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 2 };
3137
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
3138
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 1 };
3139
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 };
3140
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table,
Orientation
.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 };
3141
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow,
Orientation
.Vertical, ToolStripGripDisplayStyle.Horizontal, 2 };
3146
public void ToolStrip_LayoutStyle_SetWithHandle_GetReturnsExpected(DockStyle dock, ToolStripLayoutStyle value, ToolStripLayoutStyle expected,
Orientation
expectedOrientation, ToolStripGripDisplayStyle expectedGripDisplayStyle, int expectedLayoutCallCount)
TrackBarTests.cs (143)
82
Assert.Equal(
Orientation
.Horizontal, control.Orientation);
162
[InlineData(
Orientation
.Horizontal, 0x56010001)]
163
[InlineData(
Orientation
.Vertical, 0x56010003)]
164
public void TrackBar_CreateParams_GetOrientation_ReturnsExpected(
Orientation
orientation, int expectedStyle)
259
Orientation =
Orientation
.Vertical
348
Orientation =
Orientation
.Vertical
818
Orientation =
Orientation
.Vertical,
849
yield return new object[] { true,
Orientation
.Horizontal, new Size(104, s_dimension) };
850
yield return new object[] { true,
Orientation
.Vertical, new Size(s_dimension, s_dimension) };
851
yield return new object[] { false,
Orientation
.Horizontal, new Size(104, s_dimension) };
852
yield return new object[] { false,
Orientation
.Vertical, new Size(s_dimension, s_dimension) };
857
public void TrackBar_Handle_GetSize_Success(bool autoSize,
Orientation
orientation, Size expected)
1299
yield return new object[] { true,
Orientation
.Horizontal, new Size(104, s_dimension), false };
1300
yield return new object[] { true,
Orientation
.Vertical, new Size(104, s_dimension), true };
1301
yield return new object[] { false,
Orientation
.Horizontal, new Size(104, s_dimension), false };
1302
yield return new object[] { false,
Orientation
.Vertical, new Size(104, s_dimension), false };
1307
public void TrackBar_Orientation_Set_GetReturnsExpected(bool autoSize,
Orientation
value, Size expectedSize, bool expectedFixedWidth)
1331
yield return new object[] { true,
Orientation
.Horizontal, new Size(s_dimension, s_dimension), false, true };
1332
yield return new object[] { true,
Orientation
.Vertical, new Size(104, s_dimension), true, false };
1333
yield return new object[] { false,
Orientation
.Horizontal, new Size(s_dimension, s_dimension), false, false };
1334
yield return new object[] { false,
Orientation
.Vertical, new Size(104, s_dimension), false, false };
1339
public void TrackBar_Orientation_SetWithCustomOldValue_GetReturnsExpected(bool autoSize,
Orientation
value, Size expectedSize, bool expectedFixedWidth, bool expectedFixedHeight)
1344
Orientation =
Orientation
.Vertical
1365
yield return new object[] { true,
Orientation
.Horizontal, new Size(104, s_dimension), false, false, 0 };
1366
yield return new object[] { true,
Orientation
.Vertical, new Size(s_dimension, 104), true, false, 1 };
1367
yield return new object[] { false,
Orientation
.Horizontal, new Size(104, s_dimension), false, false, 0 };
1368
yield return new object[] { false,
Orientation
.Vertical, new Size(s_dimension, 104), false, false, 1 };
1373
public void TrackBar_Orientation_SetWithHandle_GetReturnsExpected(bool autoSize,
Orientation
value, Size expectedSize, bool expectedFixedWidth, bool expectedFixedHeight, int expectedCreatedCallCount)
1411
yield return new object[] { true,
Orientation
.Horizontal, new Size(s_dimension, s_dimension), false, true, 1 };
1412
yield return new object[] { true,
Orientation
.Vertical, new Size(s_dimension, s_dimension), true, false, 0 };
1413
yield return new object[] { false,
Orientation
.Horizontal, new Size(s_dimension, s_dimension), false, false, 1 };
1414
yield return new object[] { false,
Orientation
.Vertical, new Size(s_dimension, s_dimension), false, false, 0 };
1419
public void TrackBar_Orientation_SetWithCustomOldValueWithHandle_GetReturnsExpected(bool autoSize,
Orientation
value, Size expectedSize, bool expectedFixedWidth, bool expectedFixedHeight, int expectedCreatedCallCount)
1424
Orientation =
Orientation
.Vertical
1457
[InvalidEnumData<
Orientation
>]
1458
public void TrackBar_Orientation_SetInvalidValue_ThrowsInvalidEnumArgumentException(
Orientation
value)
1965
foreach (
Orientation
orientation in Enum.GetValues(typeof(
Orientation
)))
1983
public void TrackBar_Value_Set_GetReturnsExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int value)
2042
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Yes, true, 0, 0 };
2043
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Yes, false, 0, 10 };
2044
yield return new object[] {
Orientation
.Horizontal, RightToLeft.No, true, 0, 0 };
2045
yield return new object[] {
Orientation
.Horizontal, RightToLeft.No, false, 0, 0 };
2046
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Inherit, true, 0, 0 };
2047
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Inherit, false, 0, 0 };
2048
yield return new object[] {
Orientation
.Vertical, RightToLeft.Yes, true, 0, 10 };
2049
yield return new object[] {
Orientation
.Vertical, RightToLeft.Yes, false, 0, 10 };
2050
yield return new object[] {
Orientation
.Vertical, RightToLeft.No, true, 0, 10 };
2051
yield return new object[] {
Orientation
.Vertical, RightToLeft.No, false, 0, 10 };
2052
yield return new object[] {
Orientation
.Vertical, RightToLeft.Inherit, true, 0, 10 };
2053
yield return new object[] {
Orientation
.Vertical, RightToLeft.Inherit, false, 0, 10 };
2055
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Yes, true, 1, 1 };
2056
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Yes, false, 1, 9 };
2057
yield return new object[] {
Orientation
.Horizontal, RightToLeft.No, true, 1, 1 };
2058
yield return new object[] {
Orientation
.Horizontal, RightToLeft.No, false, 1, 1 };
2059
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Inherit, true, 1, 1 };
2060
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Inherit, false, 1, 1 };
2061
yield return new object[] {
Orientation
.Vertical, RightToLeft.Yes, true, 1, 9 };
2062
yield return new object[] {
Orientation
.Vertical, RightToLeft.Yes, false, 1, 9 };
2063
yield return new object[] {
Orientation
.Vertical, RightToLeft.No, true, 1, 9 };
2064
yield return new object[] {
Orientation
.Vertical, RightToLeft.No, false, 1, 9 };
2065
yield return new object[] {
Orientation
.Vertical, RightToLeft.Inherit, true, 1, 9 };
2066
yield return new object[] {
Orientation
.Vertical, RightToLeft.Inherit, false, 1, 9 };
2068
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Yes, true, 5, 5 };
2069
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Yes, false, 5, 5 };
2070
yield return new object[] {
Orientation
.Horizontal, RightToLeft.No, true, 5, 5 };
2071
yield return new object[] {
Orientation
.Horizontal, RightToLeft.No, false, 5, 5 };
2072
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Inherit, true, 5, 5 };
2073
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Inherit, false, 5, 5 };
2074
yield return new object[] {
Orientation
.Vertical, RightToLeft.Yes, true, 5, 5 };
2075
yield return new object[] {
Orientation
.Vertical, RightToLeft.Yes, false, 5, 5 };
2076
yield return new object[] {
Orientation
.Vertical, RightToLeft.No, true, 5, 5 };
2077
yield return new object[] {
Orientation
.Vertical, RightToLeft.No, false, 5, 5 };
2078
yield return new object[] {
Orientation
.Vertical, RightToLeft.Inherit, true, 5, 5 };
2079
yield return new object[] {
Orientation
.Vertical, RightToLeft.Inherit, false, 5, 5 };
2081
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Yes, true, 9, 9 };
2082
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Yes, false, 9, 1 };
2083
yield return new object[] {
Orientation
.Horizontal, RightToLeft.No, true, 9, 9 };
2084
yield return new object[] {
Orientation
.Horizontal, RightToLeft.No, false, 9, 9 };
2085
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Inherit, true, 9, 9 };
2086
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Inherit, false, 9, 9 };
2087
yield return new object[] {
Orientation
.Vertical, RightToLeft.Yes, true, 9, 1 };
2088
yield return new object[] {
Orientation
.Vertical, RightToLeft.Yes, false, 9, 1 };
2089
yield return new object[] {
Orientation
.Vertical, RightToLeft.No, true, 9, 1 };
2090
yield return new object[] {
Orientation
.Vertical, RightToLeft.No, false, 9, 1 };
2091
yield return new object[] {
Orientation
.Vertical, RightToLeft.Inherit, true, 9, 1 };
2092
yield return new object[] {
Orientation
.Vertical, RightToLeft.Inherit, false, 9, 1 };
2094
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Yes, true, 10, 10 };
2095
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Yes, false, 10, 0 };
2096
yield return new object[] {
Orientation
.Horizontal, RightToLeft.No, true, 10, 10 };
2097
yield return new object[] {
Orientation
.Horizontal, RightToLeft.No, false, 10, 10 };
2098
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Inherit, true, 10, 10 };
2099
yield return new object[] {
Orientation
.Horizontal, RightToLeft.Inherit, false, 10, 10 };
2100
yield return new object[] {
Orientation
.Vertical, RightToLeft.Yes, true, 10, 0 };
2101
yield return new object[] {
Orientation
.Vertical, RightToLeft.Yes, false, 10, 0 };
2102
yield return new object[] {
Orientation
.Vertical, RightToLeft.No, true, 10, 0 };
2103
yield return new object[] {
Orientation
.Vertical, RightToLeft.No, false, 10, 0 };
2104
yield return new object[] {
Orientation
.Vertical, RightToLeft.Inherit, true, 10, 0 };
2105
yield return new object[] {
Orientation
.Vertical, RightToLeft.Inherit, false, 10, 0 };
2110
public void TrackBar_Value_SetWithHandle_GetReturnsExpected(
Orientation
orientation, RightToLeft rightToLeft, bool rightToLeftLayout, int value, int expectedPos)
2838
foreach (
Orientation
orientation in Enum.GetValues(typeof(
Orientation
)))
2860
yield return new object[] { true,
Orientation
.Horizontal, 0, 0, 104, s_dimension, specified, 104, s_dimension, 0, 0 };
2861
yield return new object[] { true,
Orientation
.Horizontal, 0, 0, 0, 0, specified, 0, 0, 0, 1 };
2862
yield return new object[] { true,
Orientation
.Horizontal, -1, -2, -3, -4, specified, -3, -4, 1, 1 };
2863
yield return new object[] { true,
Orientation
.Horizontal, 1, 0, 0, 0, specified, 0, 0, 1, 1 };
2864
yield return new object[] { true,
Orientation
.Horizontal, 0, 2, 0, 0, specified, 0, 0, 1, 1 };
2865
yield return new object[] { true,
Orientation
.Horizontal, 1, 2, 0, 0, specified, 0, 0, 1, 1 };
2866
yield return new object[] { true,
Orientation
.Horizontal, 0, 0, 1, 0, specified, 1, 0, 0, 1 };
2867
yield return new object[] { true,
Orientation
.Horizontal, 0, 0, 0, 2, specified, 0, 2, 0, 1 };
2868
yield return new object[] { true,
Orientation
.Horizontal, 0, 0, 1, 2, specified, 1, 2, 0, 1 };
2869
yield return new object[] { true,
Orientation
.Horizontal, 1, 2, 30, 40, specified, 30, 40, 1, 1 };
2874
yield return new object[] { true,
Orientation
.Horizontal, 0, 0, 104, s_dimension, specified, 104, s_dimension, 0, 0 };
2875
yield return new object[] { true,
Orientation
.Horizontal, 0, 0, 0, 0, specified, 0, s_dimension, 0, 1 };
2876
yield return new object[] { true,
Orientation
.Horizontal, -1, -2, -3, -4, specified, -3, s_dimension, 1, 1 };
2877
yield return new object[] { true,
Orientation
.Horizontal, 1, 0, 0, 0, specified, 0, s_dimension, 1, 1 };
2878
yield return new object[] { true,
Orientation
.Horizontal, 0, 2, 0, 0, specified, 0, s_dimension, 1, 1 };
2879
yield return new object[] { true,
Orientation
.Horizontal, 1, 2, 0, 0, specified, 0, s_dimension, 1, 1 };
2880
yield return new object[] { true,
Orientation
.Horizontal, 0, 0, 1, 0, specified, 1, s_dimension, 0, 1 };
2881
yield return new object[] { true,
Orientation
.Horizontal, 0, 0, 0, 2, specified, 0, s_dimension, 0, 1 };
2882
yield return new object[] { true,
Orientation
.Horizontal, 0, 0, 1, 2, specified, 1, s_dimension, 0, 1 };
2883
yield return new object[] { true,
Orientation
.Horizontal, 1, 2, 30, 40, specified, 30, s_dimension, 1, 1 };
2893
yield return new object[] { true,
Orientation
.Vertical, 0, 0, 104, s_dimension, specified, 104, s_dimension, 0, 0 };
2894
yield return new object[] { true,
Orientation
.Vertical, 0, 0, 0, 0, specified, 0, 0, 0, 1 };
2895
yield return new object[] { true,
Orientation
.Vertical, -1, -2, -3, -4, specified, -3, -4, 1, 1 };
2896
yield return new object[] { true,
Orientation
.Vertical, 1, 0, 0, 0, specified, 0, 0, 1, 1 };
2897
yield return new object[] { true,
Orientation
.Vertical, 0, 2, 0, 0, specified, 0, 0, 1, 1 };
2898
yield return new object[] { true,
Orientation
.Vertical, 1, 2, 0, 0, specified, 0, 0, 1, 1 };
2899
yield return new object[] { true,
Orientation
.Vertical, 0, 0, 1, 0, specified, 1, 0, 0, 1 };
2900
yield return new object[] { true,
Orientation
.Vertical, 0, 0, 0, 2, specified, 0, 2, 0, 1 };
2901
yield return new object[] { true,
Orientation
.Vertical, 0, 0, 1, 2, specified, 1, 2, 0, 1 };
2902
yield return new object[] { true,
Orientation
.Vertical, 1, 2, 30, 40, specified, 30, 40, 1, 1 };
2907
yield return new object[] { true,
Orientation
.Vertical, 0, 0, 104, s_dimension, specified, s_dimension, s_dimension, 0, 1 };
2908
yield return new object[] { true,
Orientation
.Vertical, 0, 0, 0, 0, specified, s_dimension, 0, 0, 1 };
2909
yield return new object[] { true,
Orientation
.Vertical, -1, -2, -3, -4, specified, s_dimension, -4, 1, 1 };
2910
yield return new object[] { true,
Orientation
.Vertical, 1, 0, 0, 0, specified, s_dimension, 0, 1, 1 };
2911
yield return new object[] { true,
Orientation
.Vertical, 0, 2, 0, 0, specified, s_dimension, 0, 1, 1 };
2912
yield return new object[] { true,
Orientation
.Vertical, 1, 2, 0, 0, specified, s_dimension, 0, 1, 1 };
2913
yield return new object[] { true,
Orientation
.Vertical, 0, 0, 1, 0, specified, s_dimension, 0, 0, 1 };
2914
yield return new object[] { true,
Orientation
.Vertical, 0, 0, 0, 2, specified, s_dimension, 2, 0, 1 };
2915
yield return new object[] { true,
Orientation
.Vertical, 0, 0, 1, 2, specified, s_dimension, 2, 0, 1 };
2916
yield return new object[] { true,
Orientation
.Vertical, 1, 2, 30, 40, specified, s_dimension, 40, 1, 1 };
2922
public void TrackBar_SetBoundsCore_Invoke_Success(bool autoSize,
Orientation
orientation, int x, int y, int width, int height, BoundsSpecified specified, int expectedWidth, int expectedHeight, int expectedLocationChangedCallCount, int expectedLayoutCallCount)
System.Windows.Forms.TestUtilities (20)
TrackBarTestHelper.cs (20)
18
foreach (
Orientation
orientation in Enum.GetValues(typeof(
Orientation
)))
32
foreach (
Orientation
orientation in Enum.GetValues(typeof(
Orientation
)))
42
int value = orientation ==
Orientation
.Horizontal && (rightToLeft == RightToLeft.No || isMirrored)
55
foreach (
Orientation
orientation in Enum.GetValues(typeof(
Orientation
)))
65
int value = orientation ==
Orientation
.Horizontal && (rightToLeft == RightToLeft.No || isMirrored)
77
foreach (
Orientation
orientation in Enum.GetValues(typeof(
Orientation
)))
87
int value = orientation ==
Orientation
.Horizontal && (rightToLeft == RightToLeft.No || isMirrored)
101
foreach (
Orientation
orientation in Enum.GetValues(typeof(
Orientation
)))
111
int value = orientation ==
Orientation
.Horizontal && (rightToLeft == RightToLeft.No || isMirrored)
123
foreach (
Orientation
orientation in Enum.GetValues(typeof(
Orientation
)))
137
foreach (
Orientation
orientation in Enum.GetValues(typeof(
Orientation
)))
157
foreach (
Orientation
orientation in Enum.GetValues(typeof(
Orientation
)))
System.Windows.Forms.UI.IntegrationTests (1)
Dpi\SplitContainerTests.cs (1)
52
Orientation =
Orientation
.Horizontal,
WindowsFormsIntegration (14)
System\Windows\Integration\Convert.cs (10)
242
returnSize.Width /= ScaleFactor(scale.X,
Orientation
.Horizontal);
243
returnSize.Height /= ScaleFactor(scale.Y,
Orientation
.Vertical);
253
returnSize.Width /= ScaleFactor(scale.X,
Orientation
.Horizontal, dpiScaleX);
254
returnSize.Height /= ScaleFactor(scale.Y,
Orientation
.Vertical, dpiScaleY);
261
size.Width *= ScaleFactor(scale.X,
Orientation
.Horizontal);
262
size.Height *= ScaleFactor(scale.Y,
Orientation
.Vertical);
269
size.Width *= ScaleFactor(scale.X,
Orientation
.Horizontal, dpiScaleX);
270
size.Height *= ScaleFactor(scale.Y,
Orientation
.Vertical, dpiScaleY);
275
private static double ScaleFactor(double value,
Orientation
orientation)
283
private static double ScaleFactor(double value,
Orientation
orientation, double dpiScale)
System\Windows\Integration\HostUtils.cs (4)
319
HostUtils.PixelsPerInch(
Orientation
.Horizontal),
320
HostUtils.PixelsPerInch(
Orientation
.Vertical),
379
internal static int PixelsPerInch(
Orientation
orientation)
381
int nIndex = (orientation ==
Orientation
.Horizontal ?
WinFormsControlsTest (3)
TrackBars.cs (3)
25
if (trackBar1.Orientation ==
Orientation
.Horizontal)
42
trackBar1.Orientation =
Orientation
.Horizontal;
49
trackBar1.Orientation =
Orientation
.Vertical;