646 references to ToolStripDropDownDirection
System.Windows.Forms (95)
System\Windows\Forms\ContextMenuStrip.cs (3)
97
Rectangle bounds = CalculateDropDownLocation(new Point(x, y),
ToolStripDropDownDirection
.AboveLeft);
101
bounds = CalculateDropDownLocation(new Point(x, y),
ToolStripDropDownDirection
.BelowLeft);
105
bounds = CalculateDropDownLocation(new Point(x, y),
ToolStripDropDownDirection
.AboveRight);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (24)
54
private
ToolStripDropDownDirection
_toolStripDropDownDirection =
ToolStripDropDownDirection
.Default;
566
public virtual
ToolStripDropDownDirection
DefaultDropDownDirection
570
ToolStripDropDownDirection
direction = _toolStripDropDownDirection;
571
if (direction ==
ToolStripDropDownDirection
.Default)
579
direction = (actualDock == DockStyle.Right) ?
ToolStripDropDownDirection
.Left :
ToolStripDropDownDirection
.Right;
582
direction =
ToolStripDropDownDirection
.Right;
587
direction = ((Dock == DockStyle.Right) && (RightToLeft == RightToLeft.No)) ?
ToolStripDropDownDirection
.Left :
ToolStripDropDownDirection
.Right;
590
direction =
ToolStripDropDownDirection
.Right;
604
direction = (RightToLeft == RightToLeft.Yes) ?
ToolStripDropDownDirection
.AboveLeft :
ToolStripDropDownDirection
.AboveRight;
609
direction = (RightToLeft == RightToLeft.Yes) ?
ToolStripDropDownDirection
.BelowLeft :
ToolStripDropDownDirection
.BelowRight;
621
case
ToolStripDropDownDirection
.AboveLeft:
622
case
ToolStripDropDownDirection
.AboveRight:
623
case
ToolStripDropDownDirection
.BelowLeft:
624
case
ToolStripDropDownDirection
.BelowRight:
625
case
ToolStripDropDownDirection
.Left:
626
case
ToolStripDropDownDirection
.Right:
627
case
ToolStripDropDownDirection
.Default:
630
throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(
ToolStripDropDownDirection
));
4452
return (_toolStripDropDownDirection !=
ToolStripDropDownDirection
.Default);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (16)
24
private
ToolStripDropDownDirection
_childDropDownDirection =
ToolStripDropDownDirection
.Default;
273
public override
ToolStripDropDownDirection
DefaultDropDownDirection
275
get => _childDropDownDirection ==
ToolStripDropDownDirection
.Default
276
? (RightToLeft == RightToLeft.Yes) ?
ToolStripDropDownDirection
.Left :
ToolStripDropDownDirection
.Right
1012
internal Rectangle CalculateDropDownLocation(Point start,
ToolStripDropDownDirection
dropDownDirection)
1027
case
ToolStripDropDownDirection
.AboveLeft:
1031
case
ToolStripDropDownDirection
.AboveRight:
1034
case
ToolStripDropDownDirection
.BelowRight:
1035
case
ToolStripDropDownDirection
.Right:
1037
case
ToolStripDropDownDirection
.BelowLeft:
1038
case
ToolStripDropDownDirection
.Left:
1790
return (_childDropDownDirection !=
ToolStripDropDownDirection
.Default);
1832
public void Show(Control control, Point position,
ToolStripDropDownDirection
direction)
1855
public void Show(Point position,
ToolStripDropDownDirection
direction)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (46)
20
private
ToolStripDropDownDirection
_toolStripDropDownDirection =
ToolStripDropDownDirection
.Default;
121
public
ToolStripDropDownDirection
DropDownDirection
125
if (_toolStripDropDownDirection ==
ToolStripDropDownDirection
.Default)
130
ToolStripDropDownDirection
dropDownDirection = parent.DefaultDropDownDirection;
148
ToolStripDropDownDirection
newDropDownDirection = RTLTranslateDropDownDirection(dropDownDirection, toggledRightToLeft);
171
case
ToolStripDropDownDirection
.AboveLeft:
172
case
ToolStripDropDownDirection
.AboveRight:
173
case
ToolStripDropDownDirection
.BelowLeft:
174
case
ToolStripDropDownDirection
.BelowRight:
175
case
ToolStripDropDownDirection
.Left:
176
case
ToolStripDropDownDirection
.Right:
177
case
ToolStripDropDownDirection
.Default:
180
throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(
ToolStripDropDownDirection
));
214
ToolStripDropDownDirection
dropDownDirection = DropDownDirection;
300
private Rectangle DropDownDirectionToDropDownBounds(
ToolStripDropDownDirection
dropDownDirection, Rectangle dropDownBounds)
306
case
ToolStripDropDownDirection
.AboveLeft:
310
case
ToolStripDropDownDirection
.AboveRight:
313
case
ToolStripDropDownDirection
.BelowRight:
316
case
ToolStripDropDownDirection
.BelowLeft:
320
case
ToolStripDropDownDirection
.Right:
330
case
ToolStripDropDownDirection
.Left:
377
private Rectangle GetDropDownBounds(
ToolStripDropDownDirection
dropDownDirection)
393
dropDownBounds = DropDownDirectionToDropDownBounds(!rtl ?
ToolStripDropDownDirection
.Right :
ToolStripDropDownDirection
.Left, dropDownBounds);
399
dropDownBounds = DropDownDirectionToDropDownBounds(!rtl ?
ToolStripDropDownDirection
.Left :
ToolStripDropDownDirection
.Right, dropDownBounds);
644
private
ToolStripDropDownDirection
RTLTranslateDropDownDirection(
ToolStripDropDownDirection
dropDownDirection, RightToLeft rightToLeft)
648
case
ToolStripDropDownDirection
.AboveLeft:
649
return
ToolStripDropDownDirection
.AboveRight;
650
case
ToolStripDropDownDirection
.AboveRight:
651
return
ToolStripDropDownDirection
.AboveLeft;
652
case
ToolStripDropDownDirection
.BelowRight:
653
return
ToolStripDropDownDirection
.BelowLeft;
654
case
ToolStripDropDownDirection
.BelowLeft:
655
return
ToolStripDropDownDirection
.BelowRight;
656
case
ToolStripDropDownDirection
.Right:
657
return
ToolStripDropDownDirection
.Left;
658
case
ToolStripDropDownDirection
.Left:
659
return
ToolStripDropDownDirection
.Right;
667
return (rightToLeft == RightToLeft.Yes) ?
ToolStripDropDownDirection
.Left :
ToolStripDropDownDirection
.Right;
671
return (rightToLeft == RightToLeft.Yes) ?
ToolStripDropDownDirection
.BelowLeft :
ToolStripDropDownDirection
.BelowRight;
735
=> _toolStripDropDownDirection !=
ToolStripDropDownDirection
.Default;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (6)
117
case
ToolStripDropDownDirection
.AboveLeft:
118
case
ToolStripDropDownDirection
.AboveRight:
120
case
ToolStripDropDownDirection
.BelowRight:
121
case
ToolStripDropDownDirection
.BelowLeft:
131
case
ToolStripDropDownDirection
.Right:
132
case
ToolStripDropDownDirection
.Left:
System.Windows.Forms.Design (16)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (2)
379
if (ownerItem.DropDownDirection is
ToolStripDropDownDirection
.AboveLeft or
ToolStripDropDownDirection
.AboveRight)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (14)
593
ToolStripItem nextItem = (MenuItem.DropDownDirection ==
ToolStripDropDownDirection
.AboveLeft ||
594
MenuItem.DropDownDirection ==
ToolStripDropDownDirection
.AboveRight) && index >= 1
775
if (MenuItem.DropDownDirection is
ToolStripDropDownDirection
.AboveLeft or
ToolStripDropDownDirection
.AboveRight)
850
if (MenuItem.DropDownDirection is
ToolStripDropDownDirection
.AboveLeft or
ToolStripDropDownDirection
.AboveRight)
1713
if (MenuItem.DropDownDirection is
ToolStripDropDownDirection
.AboveLeft or
ToolStripDropDownDirection
.AboveRight)
1741
if (MenuItem.DropDownDirection is not
ToolStripDropDownDirection
.AboveLeft and not
ToolStripDropDownDirection
.AboveRight)
2029
if (MenuItem.DropDownDirection is not
ToolStripDropDownDirection
.AboveLeft and not
ToolStripDropDownDirection
.AboveRight)
2443
if (MenuItem.DropDownDirection is not
ToolStripDropDownDirection
.AboveLeft and not
ToolStripDropDownDirection
.AboveRight)
System.Windows.Forms.Tests (533)
System\Windows\Forms\MdiControlStripTests.cs (1)
56
Assert.Equal(
ToolStripDropDownDirection
.BelowRight, mdiControlStrip.DefaultDropDownDirection);
System\Windows\Forms\MenuStripTests.cs (1)
54
Assert.Equal(
ToolStripDropDownDirection
.BelowRight, control.DefaultDropDownDirection);
System\Windows\Forms\StatusStripTests.cs (1)
54
Assert.Equal(
ToolStripDropDownDirection
.AboveRight, control.DefaultDropDownDirection);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
47
Assert.Equal(
ToolStripDropDownDirection
.Default, item.DropDownDirection);
136
Assert.Equal(
ToolStripDropDownDirection
.Default, item.DropDownDirection);
235
Assert.Equal(
ToolStripDropDownDirection
.Default, item.DropDownDirection);
340
Assert.Equal(
ToolStripDropDownDirection
.Default, item.DropDownDirection);
System\Windows\Forms\ToolStripDropDownTests.cs (189)
58
Assert.Equal(
ToolStripDropDownDirection
.Right, control.DefaultDropDownDirection);
1112
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1113
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1114
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1115
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1116
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1117
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1118
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1119
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1120
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1121
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1122
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1123
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1124
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1125
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1126
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1128
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1129
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1130
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1131
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1132
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1133
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1134
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1135
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1136
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1137
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1138
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1139
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1140
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1141
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1142
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1144
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1145
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1146
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1147
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1148
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1149
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1150
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1151
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1152
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1153
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1154
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1155
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1156
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1157
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1158
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1160
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1161
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1162
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1163
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1164
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1165
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1166
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1167
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1168
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1169
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1170
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1171
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1172
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1173
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1174
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1176
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1177
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1178
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1179
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1180
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1181
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1182
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1183
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1184
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1185
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1186
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1187
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1188
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1189
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1190
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1195
public void ToolStripDropDown_DefaultDropDownDirection_Get_ReturnsExpected(ToolStripLayoutStyle layoutStyle, DockStyle dock, RightToLeft rightToLeft,
ToolStripDropDownDirection
expected)
1208
public void ToolStripDropDown_DefaultDropDownDirection_GetDesignMode_ReturnsExpected(ToolStripLayoutStyle layoutStyle, DockStyle dock, RightToLeft rightToLeft,
ToolStripDropDownDirection
expected)
1237
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1238
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1239
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1240
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1241
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1242
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1243
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1244
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1245
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1246
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1247
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1248
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1249
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1250
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1251
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1253
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1254
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1255
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1256
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1257
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1258
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1259
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1260
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1261
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1262
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1263
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1264
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1265
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1266
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1267
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1269
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1270
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1271
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1272
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1273
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1274
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1275
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1276
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1277
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1278
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1279
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1280
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1281
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1282
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1283
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1285
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1286
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1287
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1288
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1289
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1290
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1291
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1292
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1293
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1294
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1295
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1296
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1297
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1298
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1299
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1301
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1302
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1303
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1304
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1305
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1306
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1307
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1308
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1309
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1310
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1311
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1312
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1313
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1314
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1315
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1321
public void ToolStripDropDown_DefaultDropDownDirection_GetWithParent_ReturnsExpected(DockStyle parentDock, ToolStripLayoutStyle layoutStyle, DockStyle dock, RightToLeft rightToLeft,
ToolStripDropDownDirection
expected)
1340
public void ToolStripDropDown_DefaultDropDownDirection_GetDesignModeWithParent_ReturnsExpected(DockStyle parentDock, ToolStripLayoutStyle layoutStyle, DockStyle dock, RightToLeft rightToLeft,
ToolStripDropDownDirection
expected)
1373
yield return new object[] {
ToolStripDropDownDirection
.AboveLeft,
ToolStripDropDownDirection
.AboveLeft };
1374
yield return new object[] {
ToolStripDropDownDirection
.AboveRight,
ToolStripDropDownDirection
.AboveRight };
1375
yield return new object[] {
ToolStripDropDownDirection
.BelowLeft,
ToolStripDropDownDirection
.BelowLeft };
1376
yield return new object[] {
ToolStripDropDownDirection
.BelowRight,
ToolStripDropDownDirection
.BelowRight };
1377
yield return new object[] {
ToolStripDropDownDirection
.Default,
ToolStripDropDownDirection
.Right };
1378
yield return new object[] {
ToolStripDropDownDirection
.Left,
ToolStripDropDownDirection
.Left };
1379
yield return new object[] {
ToolStripDropDownDirection
.Right,
ToolStripDropDownDirection
.Right };
1384
public void ToolStripDropDown_DefaultDropDownDirection_Set_GetReturnsExpected(
ToolStripDropDownDirection
value,
ToolStripDropDownDirection
expected)
1401
public void ToolStripDropDown_DefaultDropDownDirection_SetWithHandle_GetReturnsExpected(
ToolStripDropDownDirection
value,
ToolStripDropDownDirection
expected)
1435
control.DefaultDropDownDirection =
ToolStripDropDownDirection
.Right;
1436
Assert.Equal(
ToolStripDropDownDirection
.Right, control.DefaultDropDownDirection);
1440
Assert.Equal(
ToolStripDropDownDirection
.Right, control.DefaultDropDownDirection);
1451
control.DefaultDropDownDirection =
ToolStripDropDownDirection
.Right;
1452
Assert.Equal(
ToolStripDropDownDirection
.Right, control.DefaultDropDownDirection);
1456
Assert.Equal(
ToolStripDropDownDirection
.Right, control.DefaultDropDownDirection);
1459
control.DefaultDropDownDirection =
ToolStripDropDownDirection
.Default;
1460
Assert.Equal(
ToolStripDropDownDirection
.Right, control.DefaultDropDownDirection);
1465
[InvalidEnumData<
ToolStripDropDownDirection
>]
1466
public void ToolStripDropDown_DefaultDropDownDirection_SetInvalidValue_ThrowsInvalidEnumArgumentException(
ToolStripDropDownDirection
value)
4986
[InlineData(10, 20,
ToolStripDropDownDirection
.AboveLeft)]
4987
public void ToolStripDropDown_Show_ControlPointDirection(int x, int y,
ToolStripDropDownDirection
direction)
4998
[InlineData(10, 20,
ToolStripDropDownDirection
.AboveLeft)]
4999
public void ToolStripDropDown_Show_PositionDirection(int x, int y,
ToolStripDropDownDirection
direction)
5008
if (direction is
ToolStripDropDownDirection
.AboveLeft or
ToolStripDropDownDirection
.AboveRight)
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
48
Assert.Equal(
ToolStripDropDownDirection
.Default, item.DropDownDirection);
System\Windows\Forms\ToolStripTests.cs (336)
58
Assert.Equal(
ToolStripDropDownDirection
.BelowRight, control.DefaultDropDownDirection);
215
Assert.Equal(
ToolStripDropDownDirection
.BelowRight, control.DefaultDropDownDirection);
1663
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1664
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1665
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1666
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1667
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1668
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1669
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1670
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Left };
1671
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Left };
1672
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1673
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1674
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1675
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
1676
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
1677
yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
1679
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1680
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1681
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1682
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1683
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1684
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1685
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1686
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1687
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1688
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1689
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1690
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1691
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
1692
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
1693
yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
1695
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1696
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1697
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1698
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1699
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Left };
1700
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Left };
1701
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1702
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1703
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1704
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1705
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1706
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1707
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
1708
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
1709
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
1711
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1712
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1713
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1714
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1715
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Left };
1716
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Left };
1717
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1718
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1719
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1720
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1721
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1722
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1723
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
1724
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
1725
yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
1727
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1728
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1729
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1730
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1731
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Left };
1732
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Left };
1733
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1734
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1735
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1736
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1737
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1738
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1739
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1740
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1741
yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1746
public void ToolStrip_DefaultDropDownDirection_Get_ReturnsExpected(ToolStripLayoutStyle layoutStyle, DockStyle dock, RightToLeft rightToLeft,
ToolStripDropDownDirection
expected)
1759
public void ToolStrip_DefaultDropDownDirection_GetDesignMode_ReturnsExpected(ToolStripLayoutStyle layoutStyle, DockStyle dock, RightToLeft rightToLeft,
ToolStripDropDownDirection
expected)
1788
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1789
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1790
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1791
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1792
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1793
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1794
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1795
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Left };
1796
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Left };
1797
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1798
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1799
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1800
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
1801
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
1802
yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
1804
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1805
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1806
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1807
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1808
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1809
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1810
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1811
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1812
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1813
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1814
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1815
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1816
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
1817
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
1818
yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
1820
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1821
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1822
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1823
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1824
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Left };
1825
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Left };
1826
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1827
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1828
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1829
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1830
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1831
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1832
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
1833
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
1834
yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
1836
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1837
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1838
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1839
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1840
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Left };
1841
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Left };
1842
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1843
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1844
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1845
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1846
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1847
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1848
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
1849
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
1850
yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
1852
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1853
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1854
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1855
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1856
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.No,
ToolStripDropDownDirection
.Left };
1857
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Right, RightToLeft.Inherit,
ToolStripDropDownDirection
.Left };
1858
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1859
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1860
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Left, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1861
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1862
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1863
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Top, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1864
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1865
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1866
yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.Bottom, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1872
public void ToolStrip_DefaultDropDownDirection_GetWithParent_ReturnsExpected(DockStyle parentDock, ToolStripLayoutStyle layoutStyle, DockStyle dock, RightToLeft rightToLeft,
ToolStripDropDownDirection
expected)
1890
public void ToolStrip_DefaultDropDownDirection_GetDesignModeWithParent_ReturnsExpected(DockStyle parentDock, ToolStripLayoutStyle layoutStyle, DockStyle dock, RightToLeft rightToLeft,
ToolStripDropDownDirection
expected)
1924
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1925
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1926
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1927
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1928
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1929
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1930
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1931
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1932
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1933
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1934
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1935
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1936
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
1937
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
1938
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
1940
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1941
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1942
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1943
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1944
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1945
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1946
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1947
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1948
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1949
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1950
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1951
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1952
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
1953
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
1954
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
1956
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1957
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1958
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1959
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1960
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.Left };
1961
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.Left };
1962
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1963
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1964
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1965
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1966
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1967
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1968
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
1969
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
1970
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
1972
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1973
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1974
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1975
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1976
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1977
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1978
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1979
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1980
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1981
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
1982
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
1983
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
1984
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
1985
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
1986
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
1988
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1989
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1990
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1991
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
1992
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.Left };
1993
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.Left };
1994
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1995
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1996
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
1997
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
1998
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.Right };
1999
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
2000
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
2001
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.Right };
2002
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
2008
public void ToolStrip_DefaultDropDownDirection_GetWithToolStripPanelParent_ReturnsExpected(DockStyle parentDock, ToolStripLayoutStyle layoutStyle, DockStyle dock, RightToLeft rightToLeft,
ToolStripDropDownDirection
expected)
2028
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
2029
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
2030
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
2031
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
2032
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
2033
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
2034
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
2035
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
2036
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
2037
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
2038
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
2039
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
2040
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
2041
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
2042
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
2044
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
2045
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
2046
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
2047
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
2048
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
2049
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
2050
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
2051
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
2052
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
2053
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
2054
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
2055
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
2056
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
2057
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
2058
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
2060
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
2061
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
2062
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
2063
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
2064
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.Left };
2065
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.Left };
2066
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
2067
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.Right };
2068
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
2069
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
2070
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
2071
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
2072
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
2073
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
2074
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
2076
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
2077
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
2078
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
2079
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
2080
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
2081
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
2082
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
2083
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
2084
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
2085
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.BelowLeft };
2086
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock, RightToLeft.No,
ToolStripDropDownDirection
.BelowRight };
2087
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.BelowRight };
2088
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.AboveLeft };
2089
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock, RightToLeft.No,
ToolStripDropDownDirection
.AboveRight };
2090
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.AboveRight };
2092
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
2093
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.Right };
2094
yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
2095
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.Left };
2096
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.Left };
2097
yield return new object[] { DockStyle.Right, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.Left };
2098
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
2099
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.Right };
2100
yield return new object[] { DockStyle.Left, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
2101
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
2102
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.Right };
2103
yield return new object[] { DockStyle.Top, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
2104
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes,
ToolStripDropDownDirection
.Right };
2105
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.No,
ToolStripDropDownDirection
.Right };
2106
yield return new object[] { DockStyle.Bottom, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit,
ToolStripDropDownDirection
.Right };
2112
public void ToolStrip_DefaultDropDownDirection_GetDesignModeWithToolStripPanelParent_ReturnsExpected(DockStyle parentDock, ToolStripLayoutStyle layoutStyle, DockStyle dock, RightToLeft rightToLeft,
ToolStripDropDownDirection
expected)
2146
yield return new object[] {
ToolStripDropDownDirection
.AboveLeft,
ToolStripDropDownDirection
.AboveLeft };
2147
yield return new object[] {
ToolStripDropDownDirection
.AboveRight,
ToolStripDropDownDirection
.AboveRight };
2148
yield return new object[] {
ToolStripDropDownDirection
.BelowLeft,
ToolStripDropDownDirection
.BelowLeft };
2149
yield return new object[] {
ToolStripDropDownDirection
.BelowRight,
ToolStripDropDownDirection
.BelowRight };
2150
yield return new object[] {
ToolStripDropDownDirection
.Default,
ToolStripDropDownDirection
.BelowRight };
2151
yield return new object[] {
ToolStripDropDownDirection
.Left,
ToolStripDropDownDirection
.Left };
2152
yield return new object[] {
ToolStripDropDownDirection
.Right,
ToolStripDropDownDirection
.Right };
2157
public void ToolStrip_DefaultDropDownDirection_Set_GetReturnsExpected(
ToolStripDropDownDirection
value,
ToolStripDropDownDirection
expected)
2174
public void ToolStrip_DefaultDropDownDirection_SetWithHandle_GetReturnsExpected(
ToolStripDropDownDirection
value,
ToolStripDropDownDirection
expected)
2208
control.DefaultDropDownDirection =
ToolStripDropDownDirection
.Right;
2209
Assert.Equal(
ToolStripDropDownDirection
.Right, control.DefaultDropDownDirection);
2213
Assert.Equal(
ToolStripDropDownDirection
.Right, control.DefaultDropDownDirection);
2224
control.DefaultDropDownDirection =
ToolStripDropDownDirection
.Right;
2225
Assert.Equal(
ToolStripDropDownDirection
.Right, control.DefaultDropDownDirection);
2229
Assert.Equal(
ToolStripDropDownDirection
.Right, control.DefaultDropDownDirection);
2232
control.DefaultDropDownDirection =
ToolStripDropDownDirection
.Default;
2233
Assert.Equal(
ToolStripDropDownDirection
.BelowRight, control.DefaultDropDownDirection);
2238
[InvalidEnumData<
ToolStripDropDownDirection
>]
2239
public void ToolStrip_DefaultDropDownDirection_SetInvalidValue_ThrowsInvalidEnumArgumentException(
ToolStripDropDownDirection
value)
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (2)
960
DefaultDropDownDirection =
ToolStripDropDownDirection
.BelowLeft,
990
_contextMenuStrip.DefaultDropDownDirection =
ToolStripDropDownDirection
.BelowLeft;