1777 references to DockStyle
Accessibility_Core_App (6)
ContainerControls.Designer.cs (1)
466
this.tabControl6.Dock = System.Windows.Forms.
DockStyle
.Fill;
RemainingControls.Designer.cs (2)
45
this.hScrollBar1.Dock = System.Windows.Forms.
DockStyle
.Bottom;
54
this.vScrollBar1.Dock = System.Windows.Forms.
DockStyle
.Right;
ToolStripContainer.Designer.cs (3)
120
this.toolStrip1.Dock = System.Windows.Forms.
DockStyle
.Bottom;
272
this.statusStrip1.Dock = System.Windows.Forms.
DockStyle
.Top;
330
this.menuStrip1.Dock = System.Windows.Forms.
DockStyle
.None;
DesignSurface (16)
MainForm.cs (11)
168
sct.Dock =
DockStyle
.Bottom;
297
toolStripContainer.Dock =
DockStyle
.Fill;
323
splitContainer.Dock =
DockStyle
.Fill;
327
richTextBox.Dock =
DockStyle
.Fill;
332
userControl.Dock =
DockStyle
.Fill;
336
scrollableControl.Dock =
DockStyle
.Fill;
350
splitter.Dock =
DockStyle
.Bottom;
353
panel.Dock =
DockStyle
.Bottom;
364
bindingNavigator.Dock =
DockStyle
.Bottom;
388
view.Dock =
DockStyle
.Fill;
433
Dock =
DockStyle
.Fill,
MainForm.Designer.cs (2)
67
this.splitContainer.Dock = System.Windows.Forms.
DockStyle
.Fill;
93
this.tabControl1.Dock = System.Windows.Forms.
DockStyle
.Fill;
MainForm.MyUserControl.cs (3)
28
Dock =
DockStyle
.Top,
35
Dock =
DockStyle
.Top,
42
Dock =
DockStyle
.Bottom,
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
237
ctrl.Dock =
DockStyle
.Fill;
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
BlazorWebView.cs (1)
43
Dock =
DockStyle
.Fill,
Microsoft.VisualStudio.LanguageServices (1)
LanguageService\AbstractLanguageService`2.VsCodeWindowManager.cs (1)
274
Dock =
DockStyle
.Fill,
PresentationUI (24)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (2)
438
this.tableLayoutPanel2.Dock =
DockStyle
.Fill;
460
this.tableLayoutPanel4.Dock =
DockStyle
.Fill;
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (4)
105
this._userInputtableLayoutPanel.Dock = System.Windows.Forms.
DockStyle
.Fill;
124
this._addButton.Dock = System.Windows.Forms.
DockStyle
.Fill;
132
this._removeButton.Dock = System.Windows.Forms.
DockStyle
.Fill;
140
this._credListBox.Dock = System.Windows.Forms.
DockStyle
.Fill;
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (3)
66
_panel1.Dock = System.Windows.Forms.
DockStyle
.Fill;
76
_flowLayoutPanel2.Dock = System.Windows.Forms.
DockStyle
.Fill;
179
_flowLayoutPanel1.Dock = System.Windows.Forms.
DockStyle
.Bottom;
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (2)
65
this._flowLayoutPanel1.Dock = System.Windows.Forms.
DockStyle
.Bottom;
97
this._flowLayoutPanel2.Dock = System.Windows.Forms.
DockStyle
.Fill;
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (3)
53
this.tableLayoutPanel1.Dock = System.Windows.Forms.
DockStyle
.Fill;
67
this.flowLayoutPanel2.Dock = System.Windows.Forms.
DockStyle
.Fill;
89
this.tableLayoutPanel2.Dock = System.Windows.Forms.
DockStyle
.Fill;
MS\Internal\Documents\RMPermissions.Designer.cs (1)
150
this.actionsFlowPanel.Dock = System.Windows.Forms.
DockStyle
.Fill;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (3)
83
this.flowLayoutPanelMain.Dock = System.Windows.Forms.
DockStyle
.Fill;
153
this.flowLayoutPanelTemplate.Dock = System.Windows.Forms.
DockStyle
.Fill;
303
this.flowLayoutPanelActions.Dock = System.Windows.Forms.
DockStyle
.Fill;
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (5)
76
_flowpanelMiddleControls.Dock = System.Windows.Forms.
DockStyle
.Bottom;
89
_flowpanelBottomControls.Dock = System.Windows.Forms.
DockStyle
.Bottom;
138
_columnHeaderPanel.Dock = System.Windows.Forms.
DockStyle
.Top;
149
_listBoxSummary.Dock = System.Windows.Forms.
DockStyle
.Fill;
176
_listboxItemPanel.Dock = System.Windows.Forms.
DockStyle
.Fill;
MS\Internal\Documents\SigningDialog.Designer.cs (1)
184
_buttonflowLayoutPanel.Dock = System.Windows.Forms.
DockStyle
.Fill;
System.Windows.Forms (160)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (6)
112
DockStyle
result = GetControl()?.Dock ??
DockStyle
.None;
113
if (result is <
DockStyle
.None or >
DockStyle
.Right)
115
result =
DockStyle
.None;
124
control.Dock = (
DockStyle
)value;
System\Windows\Forms\Control.cs (1)
1695
public virtual
DockStyle
Dock
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
191
_toolStrip.Dock =
DockStyle
.None;
213
_helpPane.Dock =
DockStyle
.None;
222
_commandsPane.Dock =
DockStyle
.None;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
74
Dock =
DockStyle
.Fill,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
209
Dock =
DockStyle
.Fill,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
646
control.Dock =
DockStyle
.Fill;
651
CreateNewLink.Dock =
DockStyle
.Bottom;
System\Windows\Forms\Controls\Splitter\Splitter.cs (47)
58
Dock =
DockStyle
.Left;
103
DockStyle
.Top or
DockStyle
.Bottom => Cursors.HSplit,
104
DockStyle
.Left or
DockStyle
.Right => Cursors.VSplit,
236
[DefaultValue(
DockStyle
.Left)]
237
public override
DockStyle
Dock
243
if (value is not (
DockStyle
.Top or
DockStyle
.Bottom or
DockStyle
.Left or
DockStyle
.Right))
253
case
DockStyle
.Top:
254
case
DockStyle
.Bottom:
261
case
DockStyle
.Left:
262
case
DockStyle
.Right:
280
DockStyle
dock = Dock;
281
return dock is
DockStyle
.Left or
DockStyle
.Right;
402
case
DockStyle
.Top:
405
case
DockStyle
.Bottom:
409
case
DockStyle
.Left:
412
case
DockStyle
.Right:
562
case
DockStyle
.Top:
570
case
DockStyle
.Bottom:
578
case
DockStyle
.Left:
586
case
DockStyle
.Right:
613
DockStyle
.Top or
DockStyle
.Bottom => r.Height,
614
DockStyle
.Left or
DockStyle
.Right => r.Width,
631
case
DockStyle
.Left:
632
case
DockStyle
.Right:
635
case
DockStyle
.Top:
636
case
DockStyle
.Bottom:
657
case
DockStyle
.Left:
658
case
DockStyle
.Right:
661
case
DockStyle
.Top:
662
case
DockStyle
.Bottom:
723
DockStyle
dock = Dock;
731
case
DockStyle
.Top:
738
case
DockStyle
.Bottom:
745
case
DockStyle
.Left:
752
case
DockStyle
.Right:
784
case
DockStyle
.Top:
787
case
DockStyle
.Bottom:
790
case
DockStyle
.Left:
793
case
DockStyle
.Right:
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
280
public override
DockStyle
Dock
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (4)
95
protected override
DockStyle
DefaultDock
99
return
DockStyle
.Bottom;
103
[DefaultValue(
DockStyle
.Bottom)]
104
public override
DockStyle
Dock
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (15)
556
protected virtual
DockStyle
DefaultDock =>
DockStyle
.Top;
578
DockStyle
actualDock = (ParentInternal is not null) ? ParentInternal.Dock :
DockStyle
.Left;
579
direction = (actualDock ==
DockStyle
.Right) ? ToolStripDropDownDirection.Left : ToolStripDropDownDirection.Right;
580
if (DesignMode && actualDock ==
DockStyle
.Left)
587
direction = ((Dock ==
DockStyle
.Right) && (RightToLeft == RightToLeft.No)) ? ToolStripDropDownDirection.Left : ToolStripDropDownDirection.Right;
588
if (DesignMode && Dock ==
DockStyle
.Left)
596
DockStyle
dock = Dock;
602
if (dock ==
DockStyle
.Bottom)
640
[DefaultValue(
DockStyle
.Top)]
641
public override
DockStyle
Dock
4520
private void UpdateLayoutStyle(
DockStyle
newDock)
4527
if (newDock is
DockStyle
.Left or
DockStyle
.Right)
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (9)
33
Dock =
DockStyle
.Fill
35
_topPanel.Dock =
DockStyle
.Top;
36
_bottomPanel.Dock =
DockStyle
.Bottom;
37
_rightPanel.Dock =
DockStyle
.Right;
38
_leftPanel.Dock =
DockStyle
.Left;
367
RightToolStripPanel.Dock =
DockStyle
.Left;
368
LeftToolStripPanel.Dock =
DockStyle
.Right;
372
RightToolStripPanel.Dock =
DockStyle
.Right;
373
LeftToolStripPanel.Dock =
DockStyle
.Left;
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
139
public override
DockStyle
Dock
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (4)
271
protected override
DockStyle
DefaultDock =>
DockStyle
.None;
285
[DefaultValue(
DockStyle
.None)]
288
public override
DockStyle
Dock
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
623
public
DockStyle
Dock
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (4)
135
public override
DockStyle
Dock
142
if (value is
DockStyle
.Left or
DockStyle
.Right)
603
return _owner is null && (Dock !=
DockStyle
.None);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (3)
366
DockStyle
dock = toolStrip.Dock;
367
bool IsNotInToolStripPanelWithLeftDockstyle = !toolStrip.IsInToolStripPanel && dock ==
DockStyle
.Left;
368
if (toolStrip.AutoSize && (IsNotInToolStripPanelWithLeftDockstyle || dock ==
DockStyle
.Right))
System\Windows\Forms\Form.cs (2)
1497
Dock =
DockStyle
.None;
3638
if (IsMdiChild && Dock !=
DockStyle
.None)
System\Windows\Forms\Layout\CommonProperties.cs (16)
30
internal const
DockStyle
DefaultDock =
DockStyle
.None;
267
/// to <see cref="
DockStyle
.Fill"/>, then <see cref="
DockStyle
.None"/>. When filled, the <see cref="Control.Size"/>
268
/// changed to 300,300. When you set it back to <see cref="
DockStyle
.None"/> the size switches back to 100,23.
272
/// Setting the control to <see cref="
DockStyle
.Fill"/> (via <see cref="DefaultLayout"/> engine)
280
/// Setting the control to <see cref="
DockStyle
.None"/> (via DefaultLayout.SetDock)
443
|| (GetAutoSize(element) != DefaultAutoSize && xGetDock(element) ==
DockStyle
.None)) == result,
458
Debug.Assert(((xGetDock(element) !=
DockStyle
.None) && element.ParticipatesInLayout) == result,
559
Debug.Assert(result == (GetAutoSize(element) && xGetDock(element) ==
DockStyle
.None),
568
internal static
DockStyle
xGetDock(IArrangedElement element)
571
DockStyle
value = (
DockStyle
)state[s_dockAndAnchorSection];
606
internal static void xSetDock(IArrangedElement element,
DockStyle
value)
614
state[s_dockModeSection] = (int)(value ==
DockStyle
.None ? DockAnchorMode.Anchor : DockAnchorMode.Dock);
620
== (value !=
DockStyle
.None), "xSetDock set DockMode incorrectly.");
System\Windows\Forms\Layout\Containers\SplitContainer.cs (3)
304
public new
DockStyle
Dock
2033
if (child is SplitContainer splitContainer && splitContainer.Dock ==
DockStyle
.Fill)
2291
if (control is SplitContainer && control.Dock ==
DockStyle
.Fill)
System\Windows\Forms\Layout\DefaultLayout.cs (16)
398
case
DockStyle
.Top:
411
case
DockStyle
.Bottom:
424
case
DockStyle
.Left:
437
case
DockStyle
.Right:
449
case
DockStyle
.Fill:
492
DockStyle
dockStyle = GetDock(element);
493
if (dockStyle is
DockStyle
.Top or
DockStyle
.Bottom)
498
if (dockStyle is
DockStyle
.Left or
DockStyle
.Right)
503
if (dockStyle !=
DockStyle
.Fill)
508
else if (dockStyle ==
DockStyle
.Fill && CommonProperties.GetAutoSize(element))
900
SetDock(element,
DockStyle
.None);
931
public static
DockStyle
GetDock(IArrangedElement element) => CommonProperties.xGetDock(element);
933
public static void SetDock(IArrangedElement element,
DockStyle
value)
948
if (value ==
DockStyle
.None)
System\Windows\Forms\Layout\LayoutUtils.cs (2)
266
DockStyle
dockStyle = DefaultLayout.GetDock(element);
267
if (dockStyle !=
DockStyle
.None)
System\Windows\Forms\Layout\TableLayout.cs (6)
697
if (tlp.Dock is
DockStyle
.Top or
DockStyle
.Bottom or
DockStyle
.Fill)
825
if (tlp.Dock is
DockStyle
.Left or
DockStyle
.Right or
DockStyle
.Fill)
System\Windows\Forms\MDI\MDIClient.cs (1)
39
Dock =
DockStyle
.Fill;
System\Windows\Forms\Panels\SplitterPanel.cs (1)
98
public new
DockStyle
Dock
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
60
Dock =
DockStyle
.Fill,
System\Windows\Forms\Printing\PrintPreviewDialog.cs (2)
620
public override
DockStyle
Dock
912
_previewControl.Dock =
DockStyle
.Fill;
System\Windows\Forms\Scrolling\ScrollableControl.cs (7)
364
case
DockStyle
.Bottom:
367
case
DockStyle
.Right:
420
case
DockStyle
.Top:
423
case
DockStyle
.Left:
426
case
DockStyle
.Bottom:
427
case
DockStyle
.Fill:
428
case
DockStyle
.Right:
System.Windows.Forms.Design (133)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (1)
177
_byteViewer.Dock =
DockStyle
.Fill;
System\ComponentModel\Design\ByteViewer.cs (3)
450
_scrollBar.Dock =
DockStyle
.Right;
462
Dock =
DockStyle
.Fill,
559
if (Dock ==
DockStyle
.None)
System\ComponentModel\Design\DesignerActionPanel.cs (10)
232
public static Point ComputePreferredDesktopLocation(Rectangle rectangleAnchor, Size sizePanel, out
DockStyle
edgeToDock)
289
edgeToDock =
DockStyle
.None;
296
edgeToDock =
DockStyle
.Bottom;
302
edgeToDock =
DockStyle
.Top;
308
edgeToDock =
DockStyle
.Right;
314
edgeToDock =
DockStyle
.Right;
320
edgeToDock =
DockStyle
.Right;
326
edgeToDock =
DockStyle
.Left;
332
edgeToDock =
DockStyle
.Left;
338
edgeToDock =
DockStyle
.Top;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
46
_hostedControl.Dock =
DockStyle
.Fill;
System\ComponentModel\Design\DesignerActionUI.cs (1)
657
Point pt = DesignerActionPanel.ComputePreferredDesktopLocation(rectGlyph, _designerActionHost.Size, out
DockStyle
edgeToDock);
System\ComponentModel\Design\ToolStripContainerActionList.cs (4)
92
return dockProperty is null || (
DockStyle
?)dockProperty.GetValue(_toolStripContainer) ==
DockStyle
.Fill;
125
dockProp?.SetValue(_toolStripContainer,
DockStyle
.Fill);
222
DockStyle
dock = control.Dock;
System\Drawing\Design\ColorEditor.ColorUI.cs (3)
175
_tabControl.Dock =
DockStyle
.Fill;
189
_lbSystem.Dock =
DockStyle
.Fill;
203
_lbCommon.Dock =
DockStyle
.Fill;
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
28
Dock =
DockStyle
.Fill;
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (2)
26
private
DockStyle
_dockStyle;
66
public
DockStyle
DockEdge
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (4)
49
case
DockStyle
.Top:
52
case
DockStyle
.Left:
55
case
DockStyle
.Right:
58
case
DockStyle
.Bottom:
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (10)
100
DockStyle
? dock = _relatedPanel?.Dock;
106
case
DockStyle
.Top:
115
case
DockStyle
.Bottom:
124
case
DockStyle
.Left:
133
case
DockStyle
.Right:
149
DockStyle
? dock = _relatedPanel?.Dock;
155
case
DockStyle
.Top:
164
case
DockStyle
.Bottom:
173
case
DockStyle
.Left:
182
case
DockStyle
.Right:
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
123
DockStyle
dock = c.Dock;
System\Windows\Forms\Design\ControlCommandSet.cs (4)
536
DockStyle
docked = (
DockStyle
)dockProp.GetValue(comp);
537
flipOffset = docked is
DockStyle
.Bottom or
DockStyle
.Right;
System\Windows\Forms\Design\ControlDesigner.cs (14)
231
DockStyle
dock = (
DockStyle
)(int)propDock.GetValue(component)!;
238
if (dock ==
DockStyle
.Left)
240
dock =
DockStyle
.Right;
242
else if (dock ==
DockStyle
.Right)
244
dock =
DockStyle
.Left;
250
case
DockStyle
.Top:
253
case
DockStyle
.Left:
256
case
DockStyle
.Right:
259
case
DockStyle
.Bottom:
262
case
DockStyle
.Fill:
1168
if (c != Control && c.Dock ==
DockStyle
.None)
1180
dockProp.SetValue(Component,
DockStyle
.Fill);
1577
if (Control.Dock !=
DockStyle
.None)
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (8)
31
DockStyle
dockStyle = (
DockStyle
)dockProp.GetValue(Component)!;
32
if (dockStyle ==
DockStyle
.Fill)
65
DockStyle
dockStyle = (
DockStyle
)dockProp.GetValue(Component)!;
66
dockProp.SetValue(Component, dockStyle ==
DockStyle
.Fill ?
DockStyle
.None :
DockStyle
.Fill);
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
29
_typesListBox.Dock =
DockStyle
.Fill;
System\Windows\Forms\Design\DesignBindingPicker.cs (21)
144
Dock =
DockStyle
.Top
175
Dock =
DockStyle
.Left,
184
Dock =
DockStyle
.Top
216
_treeViewCtrl!.Dock =
DockStyle
.None;
217
_addNewCtrl.Dock =
DockStyle
.None;
218
_addNewPanel.Dock =
DockStyle
.None;
219
_helpTextCtrl.Dock =
DockStyle
.None;
220
_helpTextPanel.Dock =
DockStyle
.None;
224
_treeViewCtrl!.Dock =
DockStyle
.Fill;
225
_addNewCtrl.Dock =
DockStyle
.Fill;
226
_addNewPanel.Dock =
DockStyle
.Bottom;
227
_helpTextCtrl.Dock =
DockStyle
.Fill;
228
_helpTextPanel.Dock =
DockStyle
.Bottom;
242
_treeViewCtrl.Dock =
DockStyle
.Fill;
271
Dock =
DockStyle
.Top
286
_addNewCtrl.Dock =
DockStyle
.Fill;
300
Dock =
DockStyle
.Left,
310
_addNewPanel.Dock =
DockStyle
.Bottom;
316
Dock =
DockStyle
.Top
329
_helpTextCtrl.Dock =
DockStyle
.Fill;
335
_helpTextPanel.Dock =
DockStyle
.Bottom;
System\Windows\Forms\Design\DesignerFrame.cs (3)
51
_designerRegion.Dock =
DockStyle
.Fill;
279
_splitter.Dock =
DockStyle
.Bottom;
284
window.Dock =
DockStyle
.Bottom;
System\Windows\Forms\Design\DockEditor.DockUI.cs (23)
39
Dock =
DockStyle
.Fill
44
Dock =
DockStyle
.Bottom,
46
Text =
DockStyle
.None.ToString(),
55
Dock =
DockStyle
.Right,
67
Dock =
DockStyle
.Left,
78
Dock =
DockStyle
.Top,
89
Dock =
DockStyle
.Bottom,
100
Dock =
DockStyle
.Fill,
116
private
DockStyle
DockStyle
122
return
DockStyle
.Fill;
126
return
DockStyle
.Left;
130
return
DockStyle
.Right;
134
return
DockStyle
.Top;
138
return
DockStyle
.Bottom;
141
return
DockStyle
.None;
147
case
DockStyle
.None:
150
case
DockStyle
.Fill:
153
case
DockStyle
.Left:
156
case
DockStyle
.Right:
159
case
DockStyle
.Top:
162
case
DockStyle
.Bottom:
287
DockStyle = Value is
DockStyle
dockStyle ? dockStyle :
DockStyle
.None;
System\Windows\Forms\Design\FormatControl.Designer.cs (1)
61
formatGroupBox.Dock =
DockStyle
.Fill;
System\Windows\Forms\Design\ListBoxDesigner.cs (7)
26
if (listBox.Dock is not
DockStyle
.Fill
27
and not
DockStyle
.Left
28
and not
DockStyle
.Right)
35
public
DockStyle
Dock
44
if (value is
DockStyle
.Fill or
DockStyle
.Left or
DockStyle
.Right)
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
24
_cloneMtb.Dock =
DockStyle
.Fill;
System\Windows\Forms\Design\ToolStripActionList.cs (2)
82
public
DockStyle
Dock
84
get => (
DockStyle
)GetProperty(nameof(Dock))!;
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
171
Dock =
DockStyle
.Fill;
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1487
dockProp?.SetValue(ToolStrip,
DockStyle
.None);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
383
Dock =
DockStyle
.Top
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
262
if (_containerSelectorGlyph is not null && Control.Dock ==
DockStyle
.Top)
381
dockProp?.SetValue(e.Control,
DockStyle
.None);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
883
Dock =
DockStyle
.None,
1490
_miniToolStrip.Dock =
DockStyle
.None;
System.Windows.Forms.Design.Tests (28)
ControlDesignerTests.cs (11)
89
[InlineData(
DockStyle
.Top, SelectionRules.Moveable | SelectionRules.TopSizeable | SelectionRules.LeftSizeable | SelectionRules.RightSizeable)]
90
[InlineData(
DockStyle
.Left, SelectionRules.Moveable | SelectionRules.TopSizeable | SelectionRules.LeftSizeable | SelectionRules.BottomSizeable)]
91
[InlineData(
DockStyle
.Right, SelectionRules.Moveable | SelectionRules.TopSizeable | SelectionRules.BottomSizeable | SelectionRules.RightSizeable)]
92
[InlineData(
DockStyle
.Bottom, SelectionRules.Moveable | SelectionRules.LeftSizeable | SelectionRules.BottomSizeable | SelectionRules.RightSizeable)]
93
[InlineData(
DockStyle
.Fill, SelectionRules.Moveable | SelectionRules.TopSizeable | SelectionRules.LeftSizeable | SelectionRules.RightSizeable | SelectionRules.BottomSizeable)]
94
public void DockStyle_DefinesProperSelectionRules(
DockStyle
dockStyle, SelectionRules selectionRulesParam)
264
_designer._control.Dock =
DockStyle
.Fill;
291
_designer._control.Dock =
DockStyle
.None;
329
[InlineData(DockingBehavior.Never,
DockStyle
.None)]
330
[InlineData(DockingBehavior.AutoDock,
DockStyle
.Fill)]
331
public void InitializeNewComponent_DockingBehavior_DefinesDockStyle(DockingBehavior dockingBehavior,
DockStyle
dockStyle)
EnsureEditorsTests.cs (1)
55
[InlineData(typeof(
DockStyle
), typeof(DockEditor))]
System\ComponentModel\Design\ByteViewerTests.cs (1)
66
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\Design\DockEditorTests.cs (1)
24
yield return new object[] {
DockStyle
.Top };
System\Windows\Forms\Design\ListBoxDesignerTests.cs (11)
28
new object[] {
DockStyle
.Fill, false },
29
new object[] {
DockStyle
.Left, false },
30
new object[] {
DockStyle
.Right, false },
31
new object[] {
DockStyle
.Bottom, true },
32
new object[] {
DockStyle
.Top, true }
45
DockStyle
dockStyle = (
DockStyle
)value[0];
74
DockStyle
dockStyle = (
DockStyle
)value[0];
97
DockStyle
dockStyle = (
DockStyle
)value[0];
System\Windows\Forms\Design\ToolStripActionListTests.cs (3)
71
[EnumData<
DockStyle
>]
72
public void Dock_GetSet_ReturnsExpected(
DockStyle
dockStyle)
74
_actionList.Dock.Should().Be(
DockStyle
.Top);
System.Windows.Forms.Tests (1360)
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (56)
191
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalSize, canOverflow };
192
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalSize, canOverflow };
228
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
240
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfToolStripIsEmpty(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
260
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalSize, canOverflow };
261
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalSize, canOverflow };
267
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfGripVisible(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
279
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfGripVisibleAndToolStripIsEmpty(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
296
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
297
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
302
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfOverflow(ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
319
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
320
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
325
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfCanNotOverflowAndStackLayout(ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
358
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
374
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
390
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
406
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
422
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkippedAndSecondAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
440
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkippedAndSecondAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
458
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
475
public void MenuStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
502
yield return new object[] { grip, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalSize, canOverflow };
503
yield return new object[] { grip, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalSize, canOverflow };
537
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
549
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfToolStripIsEmpty(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
560
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfToolStripIsEmptyAndGripVisible(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
572
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfLastItemSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
588
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
604
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsSkippedAndGripVisible(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
621
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
637
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
653
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemSkippedAndAlignedAndLastSkippedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
675
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemSkippedAndAlignedAndLastSkippedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
697
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
714
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
738
yield return new object[] { grip, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
739
yield return new object[] { grip, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
745
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfOverflow(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
769
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowGripSize };
770
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
772
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowGripSize };
773
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
784
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflow(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
808
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowGripSize };
809
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
811
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowGripSize };
812
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
823
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndItemSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
850
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowGripSize };
851
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
853
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowGripSize };
854
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
859
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndFirstItemAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
884
public void MenuStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndFirstItemAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
899
DockStyle
? dock = null,
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (56)
171
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalSize, canOverflow };
172
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalSize, canOverflow };
208
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
220
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfToolStripIsEmpty(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
240
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalSize, canOverflow };
241
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalSize, canOverflow };
247
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfGripVisible(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
259
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfGripVisibleAndToolStripIsEmpty(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
276
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
277
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
282
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfOverflow(ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
299
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
300
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
305
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfCanNotOverflowAndStackLayout(ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
338
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
354
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
370
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
386
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
402
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkippedAndSecondAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
420
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkippedAndSecondAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
438
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
455
public void StatusStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
482
yield return new object[] { grip, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalSize, canOverflow };
483
yield return new object[] { grip, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalSize, canOverflow };
517
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
529
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfToolStripIsEmpty(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
540
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfToolStripIsEmptyAndGripVisible(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
552
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfLastItemSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
568
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
584
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsSkippedAndGripVisible(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
601
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
617
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
633
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemSkippedAndAlignedAndLastSkippedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
655
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemSkippedAndAlignedAndLastSkippedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
677
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
694
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
718
yield return new object[] { grip, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
719
yield return new object[] { grip, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
725
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfOverflow(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
749
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowGripSize };
750
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
752
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowGripSize };
753
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
764
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflow(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
788
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowGripSize };
789
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
791
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowGripSize };
792
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
803
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndItemSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
830
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowGripSize };
831
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
833
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowGripSize };
834
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
839
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndFirstItemAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
865
public void StatusStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndFirstItemAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
880
DockStyle
? dock = null,
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (56)
184
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalSize, canOverflow };
185
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalSize, canOverflow };
221
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
233
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfToolStripIsEmpty(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
253
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalSize, canOverflow };
254
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalSize, canOverflow };
260
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfGripVisible(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
272
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfGripVisibleAndToolStripIsEmpty(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
289
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
290
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
295
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfOverflow(ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
312
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
313
yield return new object[] { ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
318
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfCanNotOverflowAndStackLayout(ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
351
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
367
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
383
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
399
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
415
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkippedAndSecondAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
433
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfFirstItemSkippedAndSecondAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
451
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
468
public void ToolStripAccessibleObject_FragmentNavigate_FirstChild_ReturnsExpected_IfAllItemsAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
495
yield return new object[] { grip, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalSize, canOverflow };
496
yield return new object[] { grip, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalSize, canOverflow };
530
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
542
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfToolStripIsEmpty(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
553
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfToolStripIsEmptyAndGripVisible(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
565
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfLastItemSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
581
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
597
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsSkippedAndGripVisible(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
614
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
630
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
646
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemSkippedAndAlignedAndLastSkippedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
668
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfFirstItemSkippedAndAlignedAndLastSkippedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
690
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
707
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfAllItemsAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size, bool canOverflow)
731
yield return new object[] { grip, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
732
yield return new object[] { grip, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
738
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfOverflow(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
762
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowGripSize };
763
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
765
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowGripSize };
766
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
777
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflow(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
801
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowGripSize };
802
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
804
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowGripSize };
805
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
816
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndItemSkipped(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
843
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowGripSize };
844
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Top, horizontalOverflowSize };
846
yield return new object[] { ToolStripGripStyle.Visible, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowGripSize };
847
yield return new object[] { ToolStripGripStyle.Hidden, ToolStripLayoutStyle.StackWithOverflow,
DockStyle
.Left, verticalOverflowSize };
852
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndFirstItemAlignedAndStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
877
public void ToolStripAccessibleObject_FragmentNavigate_LastChild_ReturnsExpected_IfCannotOverflowAndFirstItemAlignedAndNonStackLayout(ToolStripGripStyle grip, ToolStripLayoutStyle layout,
DockStyle
? dock, Size size)
940
DockStyle
? dock = null,
System\Windows\Forms\AxHostTests.cs (2)
68
Assert.Equal(
DockStyle
.None, control.Dock);
162
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\ButtonBaseTests.cs (1)
59
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\ButtonTests.cs (1)
62
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\CheckBoxTests.cs (1)
63
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\ComboBoxTests.cs (1)
67
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\ContainerControlTests.cs (1)
67
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\ControlTests.cs (9)
54
Assert.Equal(
DockStyle
.None, control.Dock);
143
Assert.Equal(
DockStyle
.None, control.Dock);
239
Assert.Equal(
DockStyle
.None, control.Dock);
335
Assert.Equal(
DockStyle
.None, control.Dock);
431
Assert.Equal(
DockStyle
.None, control.Dock);
864
using TableLayoutPanel table = new() { Dock =
DockStyle
.Fill, ColumnCount = 3 };
871
Dock =
DockStyle
.Fill,
882
Dock =
DockStyle
.Fill,
893
Dock =
DockStyle
.Fill,
System\Windows\Forms\ControlTests.Properties.cs (164)
343
Assert.Equal(
DockStyle
.None, control.Dock);
350
Assert.Equal(
DockStyle
.None, control.Dock);
368
Assert.Equal(
DockStyle
.None, control.Dock);
375
Assert.Equal(
DockStyle
.None, control.Dock);
432
Assert.Equal(
DockStyle
.None, control.Dock);
440
Assert.Equal(
DockStyle
.None, control.Dock);
488
Assert.Equal(
DockStyle
.None, control.Dock);
496
Assert.Equal(
DockStyle
.None, control.Dock);
579
Assert.Equal(
DockStyle
.None, control.Dock);
587
Assert.Equal(
DockStyle
.None, control.Dock);
712
Assert.Equal(
DockStyle
.None, control.Dock);
721
Assert.Equal(
DockStyle
.None, control.Dock);
736
foreach (
DockStyle
dock in Enum.GetValues(typeof(
DockStyle
)))
738
yield return new object[] { dock, AnchorStyles.Top, AnchorStyles.Top,
DockStyle
.None };
739
yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom,
DockStyle
.None };
740
yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left,
DockStyle
.None };
741
yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right,
DockStyle
.None };
743
yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
744
yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right,
DockStyle
.None };
745
yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
747
yield return new object[] { dock, AnchorStyles.Bottom, AnchorStyles.Bottom,
DockStyle
.None };
748
yield return new object[] { dock, AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Bottom | AnchorStyles.Left,
DockStyle
.None };
749
yield return new object[] { dock, AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Right,
DockStyle
.None };
750
yield return new object[] { dock, AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
752
yield return new object[] { dock, AnchorStyles.Left, AnchorStyles.Left,
DockStyle
.None };
753
yield return new object[] { dock, AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
755
yield return new object[] { dock, AnchorStyles.Right, AnchorStyles.Right,
DockStyle
.None };
757
yield return new object[] { dock, AnchorStyles.None, AnchorStyles.None,
DockStyle
.None };
758
yield return new object[] { dock, (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
759
yield return new object[] { dock, (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
765
public void Control_Anchor_SetWithDock_GetReturnsExpected(
DockStyle
dock, AnchorStyles value, AnchorStyles expectedAnchor,
DockStyle
expectedDock)
790
foreach (
DockStyle
dock in new
DockStyle
[] {
DockStyle
.Bottom,
DockStyle
.Fill,
DockStyle
.Left,
DockStyle
.Right,
DockStyle
.Top })
792
yield return new object[] { dock, AnchorStyles.Top, AnchorStyles.Top,
DockStyle
.None, 1 };
793
yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom,
DockStyle
.None, 1 };
794
yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left,
DockStyle
.None, 1 };
795
yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right,
DockStyle
.None, 1 };
797
yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None, 1 };
798
yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right,
DockStyle
.None, 1 };
799
yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None, 1 };
801
yield return new object[] { dock, AnchorStyles.Bottom, AnchorStyles.Bottom,
DockStyle
.None, 1 };
802
yield return new object[] { dock, AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Bottom | AnchorStyles.Left,
DockStyle
.None, 1 };
803
yield return new object[] { dock, AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Right,
DockStyle
.None, 1 };
804
yield return new object[] { dock, AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None, 1 };
806
yield return new object[] { dock, AnchorStyles.Left, AnchorStyles.Left,
DockStyle
.None, 1 };
807
yield return new object[] { dock, AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None, 1 };
809
yield return new object[] { dock, AnchorStyles.Right, AnchorStyles.Right,
DockStyle
.None, 1 };
811
yield return new object[] { dock, AnchorStyles.None, AnchorStyles.None,
DockStyle
.None, 1 };
812
yield return new object[] { dock, (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None, 1 };
813
yield return new object[] { dock, (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None, 1 };
819
public void Control_Anchor_SetWithDockWithParent_GetReturnsExpected(
DockStyle
dock, AnchorStyles value, AnchorStyles expectedAnchor,
DockStyle
expectedDock, int expectedParentLayoutCallCount)
882
Assert.Equal(
DockStyle
.None, control.Dock);
892
Assert.Equal(
DockStyle
.None, control.Dock);
4123
[EnumData<
DockStyle
>]
4124
public void Control_Dock_Set_GetReturnsExpected(
DockStyle
value)
4145
[EnumData<
DockStyle
>]
4146
public void Control_Dock_SetWithOldValue_GetReturnsExpected(
DockStyle
value)
4150
Dock =
DockStyle
.Top
4171
yield return new object[] {
DockStyle
.Bottom, 1 };
4172
yield return new object[] {
DockStyle
.Fill, 1 };
4173
yield return new object[] {
DockStyle
.Left, 1 };
4174
yield return new object[] {
DockStyle
.None, 0 };
4175
yield return new object[] {
DockStyle
.Right, 1 };
4176
yield return new object[] {
DockStyle
.Top, 1 };
4181
public void Control_Dock_SetWithParent_GetReturnsExpected(
DockStyle
value, int expectedParentLayoutCallCount)
4226
yield return new object[] {
DockStyle
.Bottom,
DockStyle
.Bottom, 0 };
4227
yield return new object[] {
DockStyle
.Fill,
DockStyle
.Bottom, 1 };
4228
yield return new object[] {
DockStyle
.Left,
DockStyle
.Bottom, 1 };
4229
yield return new object[] {
DockStyle
.None,
DockStyle
.Bottom, 1 };
4230
yield return new object[] {
DockStyle
.Right,
DockStyle
.Bottom, 1 };
4231
yield return new object[] {
DockStyle
.Top,
DockStyle
.Bottom, 1 };
4233
yield return new object[] {
DockStyle
.Bottom,
DockStyle
.Fill, 1 };
4234
yield return new object[] {
DockStyle
.Fill,
DockStyle
.Fill, 0 };
4235
yield return new object[] {
DockStyle
.Left,
DockStyle
.Fill, 1 };
4236
yield return new object[] {
DockStyle
.None,
DockStyle
.Fill, 1 };
4237
yield return new object[] {
DockStyle
.Right,
DockStyle
.Fill, 1 };
4238
yield return new object[] {
DockStyle
.Top,
DockStyle
.Fill, 1 };
4240
yield return new object[] {
DockStyle
.Bottom,
DockStyle
.Left, 1 };
4241
yield return new object[] {
DockStyle
.Fill,
DockStyle
.Left, 1 };
4242
yield return new object[] {
DockStyle
.Left,
DockStyle
.Left, 0 };
4243
yield return new object[] {
DockStyle
.None,
DockStyle
.Left, 1 };
4244
yield return new object[] {
DockStyle
.Right,
DockStyle
.Left, 1 };
4245
yield return new object[] {
DockStyle
.Top,
DockStyle
.Left, 1 };
4247
yield return new object[] {
DockStyle
.Bottom,
DockStyle
.None, 1 };
4248
yield return new object[] {
DockStyle
.Fill,
DockStyle
.None, 1 };
4249
yield return new object[] {
DockStyle
.Left,
DockStyle
.None, 1 };
4250
yield return new object[] {
DockStyle
.None,
DockStyle
.None, 0 };
4251
yield return new object[] {
DockStyle
.Right,
DockStyle
.None, 1 };
4252
yield return new object[] {
DockStyle
.Top,
DockStyle
.None, 1 };
4254
yield return new object[] {
DockStyle
.Bottom,
DockStyle
.Right, 1 };
4255
yield return new object[] {
DockStyle
.Fill,
DockStyle
.Right, 1 };
4256
yield return new object[] {
DockStyle
.Left,
DockStyle
.Right, 1 };
4257
yield return new object[] {
DockStyle
.None,
DockStyle
.Right, 1 };
4258
yield return new object[] {
DockStyle
.Right,
DockStyle
.Right, 0 };
4259
yield return new object[] {
DockStyle
.Top,
DockStyle
.Right, 1 };
4261
yield return new object[] {
DockStyle
.Bottom,
DockStyle
.Top, 1 };
4262
yield return new object[] {
DockStyle
.Fill,
DockStyle
.Top, 1 };
4263
yield return new object[] {
DockStyle
.Left,
DockStyle
.Top, 1 };
4264
yield return new object[] {
DockStyle
.None,
DockStyle
.Top, 1 };
4265
yield return new object[] {
DockStyle
.Right,
DockStyle
.Top, 1 };
4266
yield return new object[] {
DockStyle
.Top,
DockStyle
.Top, 0 };
4271
public void Control_Dock_SetWithOldValueWithParent_GetReturnsExpected(
DockStyle
oldValue,
DockStyle
value, int expectedParentLayoutCallCount)
4319
foreach (
DockStyle
value in Enum.GetValues(typeof(
DockStyle
)))
4321
yield return new object[] { anchor, value, value ==
DockStyle
.None ? anchor : AnchorStyles.Top | AnchorStyles.Left };
4328
public void Control_Dock_SetWithAnchor_GetReturnsExpected(AnchorStyles anchor,
DockStyle
value, AnchorStyles expectedAnchor)
4346
[EnumData<
DockStyle
>]
4347
public void Control_Dock_SetWithHandle_GetReturnsExpected(
DockStyle
value)
4385
Dock =
DockStyle
.None
4397
control.Dock =
DockStyle
.Top;
4398
Assert.Equal(
DockStyle
.Top, control.Dock);
4402
control.Dock =
DockStyle
.Top;
4403
Assert.Equal(
DockStyle
.Top, control.Dock);
4407
control.Dock =
DockStyle
.Left;
4408
Assert.Equal(
DockStyle
.Left, control.Dock);
4413
control.Dock =
DockStyle
.Top;
4414
Assert.Equal(
DockStyle
.Top, control.Dock);
4419
[InvalidEnumData<
DockStyle
>]
4420
public void Control_Dock_SetInvalid_ThrowsInvalidEnumArgumentException(
DockStyle
value)
System\Windows\Forms\DataGridViewTests.Rendering.cs (1)
136
Dock =
DockStyle
.Fill,
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
65
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\DateTimePickerTests.cs (1)
69
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
80
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
63
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\DomainUpDownTests.cs (1)
86
_sub.Dock.Should().Be(
DockStyle
.None);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
60
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\FormTests.cs (1)
82
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\GroupBoxTests.cs (1)
57
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\HScrollBarTests.cs (1)
65
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\LabelTests.cs (1)
57
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\LayoutEventArgsTests.cs (1)
66
Dock =
DockStyle
.Fill
System\Windows\Forms\ListBoxTests.cs (1)
64
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\ListControlTests.cs (1)
61
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\ListViewTests.cs (1)
72
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\MdiClientTests.cs (1)
47
Assert.Equal(
DockStyle
.Fill, control.Dock);
System\Windows\Forms\MdiControlStripTests.cs (3)
55
Assert.Equal(
DockStyle
.Top, mdiControlStrip.DefaultDock);
69
Assert.Equal(
DockStyle
.Top, mdiControlStrip.Dock);
362
public new
DockStyle
DefaultDock => base.DefaultDock;
System\Windows\Forms\MenuStripTests.cs (3)
53
Assert.Equal(
DockStyle
.Top, control.DefaultDock);
67
Assert.Equal(
DockStyle
.Top, control.Dock);
858
public new
DockStyle
DefaultDock => base.DefaultDock;
System\Windows\Forms\MonthCalendarTests.cs (1)
74
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\PanelTests.cs (1)
61
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\PictureBoxTests.cs (1)
60
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\ProgressBarTests.cs (1)
55
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\PropertyGridInternal\PropertyGridView.DropDownHolderTests.cs (1)
52
Assert.Equal(
DockStyle
.Fill, listBox.Dock);
System\Windows\Forms\PropertyGridTests.cs (1)
89
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\RadioButtonTests.cs (1)
62
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\RichTextBoxTests.cs (1)
72
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\ScrollableControlTests.cs (1)
60
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\ScrollBarTests.cs (1)
55
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\SplitterPanelTests.cs (16)
57
Assert.Equal(
DockStyle
.None, control.Dock);
114
Assert.Equal(
DockStyle
.None, control.Dock);
120
Assert.Equal(
DockStyle
.None, control.Dock);
383
[EnumData<
DockStyle
>]
384
public void SplitterPanel_Dock_Set_GetReturnsExpected(
DockStyle
value)
404
Dock =
DockStyle
.None
416
control.Dock =
DockStyle
.Top;
417
Assert.Equal(
DockStyle
.Top, control.Dock);
421
control.Dock =
DockStyle
.Top;
422
Assert.Equal(
DockStyle
.Top, control.Dock);
426
control.Dock =
DockStyle
.Left;
427
Assert.Equal(
DockStyle
.Left, control.Dock);
432
control.Dock =
DockStyle
.Top;
433
Assert.Equal(
DockStyle
.Top, control.Dock);
438
[InvalidEnumData<
DockStyle
>]
439
public void SplitterPanel_Dock_SetInvalid_ThrowsInvalidEnumArgumentException(
DockStyle
value)
System\Windows\Forms\SplitterTests.cs (131)
56
Assert.Equal(
DockStyle
.Left, control.Dock);
186
Assert.Equal(
DockStyle
.Left, control.Dock);
193
Assert.Equal(
DockStyle
.Left, control.Dock);
374
yield return new object[] {
DockStyle
.Top, Cursors.HSplit };
375
yield return new object[] {
DockStyle
.Bottom, Cursors.HSplit };
376
yield return new object[] {
DockStyle
.Left, Cursors.VSplit };
377
yield return new object[] {
DockStyle
.Right, Cursors.VSplit };
382
public void Splitter_DefaultCursor_GetWithDockStyle_ReturnsExpected(
DockStyle
dock, Cursor expected)
393
[InlineData(
DockStyle
.Left)]
394
[InlineData(
DockStyle
.Right)]
395
[InlineData(
DockStyle
.Top)]
396
[InlineData(
DockStyle
.Bottom)]
397
public void Splitter_Dock_Set_GetReturnsExpected(
DockStyle
value)
422
[InlineData(
DockStyle
.Left, 40, 0)]
423
[InlineData(
DockStyle
.Right, 40, 0)]
424
[InlineData(
DockStyle
.Top, 50, 1)]
425
[InlineData(
DockStyle
.Bottom, 50, 1)]
426
public void Splitter_Dock_SetCustomWidthHeight_GetReturnsExpected(
DockStyle
value, int expectedHeight, int expectedLayoutCallCount)
455
[InlineData(
DockStyle
.Left)]
456
[InlineData(
DockStyle
.Right)]
457
[InlineData(
DockStyle
.Top)]
458
[InlineData(
DockStyle
.Bottom)]
459
public void Splitter_Dock_SetWithOldValue_GetReturnsExpected(
DockStyle
value)
463
Dock =
DockStyle
.Top
487
[InlineData(
DockStyle
.Left, 40, 1)]
488
[InlineData(
DockStyle
.Right, 40, 1)]
489
[InlineData(
DockStyle
.Top, 50, 0)]
490
[InlineData(
DockStyle
.Bottom, 50, 0)]
491
public void Splitter_Dock_SetWithOldValueCustomWidthHeight_GetReturnsExpected(
DockStyle
value, int expectedWidth, int expectedLayoutCallCount)
495
Dock =
DockStyle
.Top,
522
yield return new object[] {
DockStyle
.Bottom, 1 };
523
yield return new object[] {
DockStyle
.Left, 0 };
524
yield return new object[] {
DockStyle
.Right, 1 };
525
yield return new object[] {
DockStyle
.Top, 1 };
530
public void Splitter_Dock_SetWithParent_GetReturnsExpected(
DockStyle
value, int expectedParentLayoutCallCount)
575
yield return new object[] {
DockStyle
.Bottom,
DockStyle
.Bottom, 0 };
576
yield return new object[] {
DockStyle
.Left,
DockStyle
.Bottom, 1 };
577
yield return new object[] {
DockStyle
.Right,
DockStyle
.Bottom, 1 };
578
yield return new object[] {
DockStyle
.Top,
DockStyle
.Bottom, 1 };
580
yield return new object[] {
DockStyle
.Bottom,
DockStyle
.Left, 1 };
581
yield return new object[] {
DockStyle
.Left,
DockStyle
.Left, 0 };
582
yield return new object[] {
DockStyle
.Right,
DockStyle
.Left, 1 };
583
yield return new object[] {
DockStyle
.Top,
DockStyle
.Left, 1 };
585
yield return new object[] {
DockStyle
.Bottom,
DockStyle
.Right, 1 };
586
yield return new object[] {
DockStyle
.Left,
DockStyle
.Right, 1 };
587
yield return new object[] {
DockStyle
.Right,
DockStyle
.Right, 0 };
588
yield return new object[] {
DockStyle
.Top,
DockStyle
.Right, 1 };
590
yield return new object[] {
DockStyle
.Bottom,
DockStyle
.Top, 1 };
591
yield return new object[] {
DockStyle
.Left,
DockStyle
.Top, 1 };
592
yield return new object[] {
DockStyle
.Right,
DockStyle
.Top, 1 };
593
yield return new object[] {
DockStyle
.Top,
DockStyle
.Top, 0 };
598
public void Splitter_Dock_SetWithOldValueWithParent_GetReturnsExpected(
DockStyle
oldValue,
DockStyle
value, int expectedParentLayoutCallCount)
643
[InlineData(
DockStyle
.Left)]
644
[InlineData(
DockStyle
.Right)]
645
[InlineData(
DockStyle
.Top)]
646
[InlineData(
DockStyle
.Bottom)]
647
public void Splitter_Dock_SetWithHandle_GetReturnsExpected(
DockStyle
value)
689
Dock =
DockStyle
.Bottom
701
control.Dock =
DockStyle
.Top;
702
Assert.Equal(
DockStyle
.Top, control.Dock);
706
control.Dock =
DockStyle
.Top;
707
Assert.Equal(
DockStyle
.Top, control.Dock);
711
control.Dock =
DockStyle
.Left;
712
Assert.Equal(
DockStyle
.Left, control.Dock);
717
control.Dock =
DockStyle
.Top;
718
Assert.Equal(
DockStyle
.Top, control.Dock);
723
[InvalidEnumData<
DockStyle
>]
724
[InlineData(
DockStyle
.None)]
725
[InlineData(
DockStyle
.Fill)]
726
public void Splitter_Dock_SetInvalid_ThrowsInvalidEnumArgumentException(
DockStyle
value)
1094
yield return new object[] {
DockStyle
.Right, -2 };
1095
yield return new object[] {
DockStyle
.Right, 1 };
1096
yield return new object[] {
DockStyle
.Right, 0 };
1097
yield return new object[] {
DockStyle
.Right, 25 };
1099
yield return new object[] {
DockStyle
.Left, -2 };
1100
yield return new object[] {
DockStyle
.Left, 1 };
1101
yield return new object[] {
DockStyle
.Left, 0 };
1102
yield return new object[] {
DockStyle
.Left, 25 };
1104
yield return new object[] {
DockStyle
.Top, -2 };
1105
yield return new object[] {
DockStyle
.Top, 1 };
1106
yield return new object[] {
DockStyle
.Top, 0 };
1107
yield return new object[] {
DockStyle
.Top, 25 };
1109
yield return new object[] {
DockStyle
.Bottom, -2 };
1110
yield return new object[] {
DockStyle
.Bottom, 1 };
1111
yield return new object[] {
DockStyle
.Bottom, 0 };
1112
yield return new object[] {
DockStyle
.Bottom, 25 };
1117
public void Splitter_SplitPosition_Set_GetReturnsExpected(
DockStyle
dock, int value)
1138
public void Splitter_SplitPosition_SetWithParent_GetReturnsExpected(
DockStyle
dock, int value)
1167
foreach (
DockStyle
childDock in Enum.GetValues(typeof(
DockStyle
)))
1169
yield return new object[] { childDock,
DockStyle
.Right, -2 };
1170
yield return new object[] { childDock,
DockStyle
.Right, 1 };
1171
yield return new object[] { childDock,
DockStyle
.Right, 0 };
1172
yield return new object[] { childDock,
DockStyle
.Right, 25 };
1174
yield return new object[] { childDock,
DockStyle
.Left, -2 };
1175
yield return new object[] { childDock,
DockStyle
.Left, 1 };
1176
yield return new object[] { childDock,
DockStyle
.Left, 0 };
1177
yield return new object[] { childDock,
DockStyle
.Left, 25 };
1179
yield return new object[] { childDock,
DockStyle
.Top, -2 };
1180
yield return new object[] { childDock,
DockStyle
.Top, 1 };
1181
yield return new object[] { childDock,
DockStyle
.Top, 0 };
1182
yield return new object[] { childDock,
DockStyle
.Top, 25 };
1184
yield return new object[] { childDock,
DockStyle
.Bottom, -2 };
1185
yield return new object[] { childDock,
DockStyle
.Bottom, 1 };
1186
yield return new object[] { childDock,
DockStyle
.Bottom, 0 };
1187
yield return new object[] { childDock,
DockStyle
.Bottom, 25 };
1193
public void Splitter_SplitPosition_SetWithParentNoChild_GetReturnsExpected(
DockStyle
childDock,
DockStyle
dock, int value)
1253
Dock =
DockStyle
.Left,
1276
public void Splitter_SplitPosition_SetWithHandle_GetReturnsExpected(
DockStyle
dock, int value)
1310
public void Splitter_SplitPosition_SetWithParentHandle_GetReturnsExpected(
DockStyle
dock, int value)
1372
Dock =
DockStyle
.Left,
2020
Dock =
DockStyle
.Left,
2121
Dock =
DockStyle
.Left,
System\Windows\Forms\StatusStripTests.cs (47)
53
Assert.Equal(
DockStyle
.Bottom, control.DefaultDock);
67
Assert.Equal(
DockStyle
.Bottom, control.Dock);
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)
348
foreach (
DockStyle
dock in new
DockStyle
[] {
DockStyle
.None,
DockStyle
.Top,
DockStyle
.Bottom })
357
foreach (
DockStyle
dock in new
DockStyle
[] {
DockStyle
.Right,
DockStyle
.Left })
369
public void StatusStrip_LayoutStyle_Set_GetReturnsExpected(
DockStyle
dock, ToolStripLayoutStyle value, ToolStripLayoutStyle expected, Orientation expectedOrientation, ToolStripGripDisplayStyle expectedGripDisplayStyle, int expectedLayoutCallCount)
1129
foreach (
DockStyle
dock in Enum.GetValues(typeof(
DockStyle
)))
1140
public void Control_OnLayout_Invoke_CallsLayout(ToolStripLayoutStyle layoutStyle,
DockStyle
dock, LayoutEventArgs eventArgs)
1280
public new
DockStyle
DefaultDock => base.DefaultDock;
System\Windows\Forms\TabControlTests.cs (1)
57
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
66
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\TabPageTests.cs (25)
66
Assert.Equal(
DockStyle
.None, control.Dock);
175
Assert.Equal(
DockStyle
.None, control.Dock);
264
Assert.Equal(
DockStyle
.None, control.Dock);
270
Assert.Equal(
DockStyle
.None, control.Dock);
285
Assert.Equal(
DockStyle
.None, control.Dock);
291
Assert.Equal(
DockStyle
.None, control.Dock);
297
public void TabPage_Anchor_SetWithDock_GetReturnsExpected(
DockStyle
dock, AnchorStyles value, AnchorStyles expectedAnchor,
DockStyle
expectedDock)
895
[EnumData<
DockStyle
>]
896
public void TabPage_Dock_Set_GetReturnsExpected(
DockStyle
value)
912
[EnumData<
DockStyle
>]
913
public void TabPage_Dock_SetWithOldValue_GetReturnsExpected(
DockStyle
value)
917
Dock =
DockStyle
.Top
932
public void TabPage_Dock_SetWithAnchor_GetReturnsExpected(AnchorStyles anchor,
DockStyle
value, AnchorStyles expectedAnchor)
954
Dock =
DockStyle
.None
966
control.Dock =
DockStyle
.Top;
967
Assert.Equal(
DockStyle
.Top, control.Dock);
971
control.Dock =
DockStyle
.Top;
972
Assert.Equal(
DockStyle
.Top, control.Dock);
976
control.Dock =
DockStyle
.Left;
977
Assert.Equal(
DockStyle
.Left, control.Dock);
982
control.Dock =
DockStyle
.Top;
983
Assert.Equal(
DockStyle
.Top, control.Dock);
988
[InvalidEnumData<
DockStyle
>]
989
public void TabPage_Dock_SetInvalid_ThrowsInvalidEnumArgumentException(
DockStyle
value)
System\Windows\Forms\ToolStripButtonTests.cs (6)
49
Assert.Equal(
DockStyle
.None, item.Dock);
130
Assert.Equal(
DockStyle
.None, item.Dock);
217
Assert.Equal(
DockStyle
.None, item.Dock);
307
Assert.Equal(
DockStyle
.None, item.Dock);
395
Assert.Equal(
DockStyle
.None, item.Dock);
493
Assert.Equal(
DockStyle
.None, item.Dock);
System\Windows\Forms\ToolStripContentPanelTests.cs (16)
63
Assert.Equal(
DockStyle
.None, control.Dock);
133
Assert.Equal(
DockStyle
.None, control.Dock);
139
Assert.Equal(
DockStyle
.None, control.Dock);
837
[EnumData<
DockStyle
>]
838
public void ToolStripContentPanel_Dock_Set_GetReturnsExpected(
DockStyle
value)
858
Dock =
DockStyle
.None
870
control.Dock =
DockStyle
.Top;
871
Assert.Equal(
DockStyle
.Top, control.Dock);
875
control.Dock =
DockStyle
.Top;
876
Assert.Equal(
DockStyle
.Top, control.Dock);
880
control.Dock =
DockStyle
.Left;
881
Assert.Equal(
DockStyle
.Left, control.Dock);
886
control.Dock =
DockStyle
.Top;
887
Assert.Equal(
DockStyle
.Top, control.Dock);
892
[InvalidEnumData<
DockStyle
>]
893
public void ToolStripContentPanel_Dock_SetInvalid_ThrowsInvalidEnumArgumentException(
DockStyle
value)
System\Windows\Forms\ToolStripControlHostTests.cs (1)
79
Assert.Equal(
DockStyle
.None, item.Dock);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
45
Assert.Equal(
DockStyle
.None, item.Dock);
134
Assert.Equal(
DockStyle
.None, item.Dock);
233
Assert.Equal(
DockStyle
.None, item.Dock);
333
Assert.Equal(
DockStyle
.None, item.Dock);
System\Windows\Forms\ToolStripDropDownTests.cs (190)
57
Assert.Equal(
DockStyle
.None, control.DefaultDock);
71
Assert.Equal(
DockStyle
.None, control.Dock);
567
yield return new object[] { AnchorStyles.Top, AnchorStyles.Top,
DockStyle
.None };
568
yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom,
DockStyle
.None };
569
yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left,
DockStyle
.None };
570
yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right,
DockStyle
.None };
571
yield return new object[] { AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left,
DockStyle
.None };
572
yield return new object[] { AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
573
yield return new object[] { AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right,
DockStyle
.None };
574
yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
576
yield return new object[] { AnchorStyles.Bottom, AnchorStyles.Bottom,
DockStyle
.None };
577
yield return new object[] { AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Bottom | AnchorStyles.Left,
DockStyle
.None };
578
yield return new object[] { AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Right,
DockStyle
.None };
579
yield return new object[] { AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
581
yield return new object[] { AnchorStyles.Left, AnchorStyles.Left,
DockStyle
.None };
582
yield return new object[] { AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
584
yield return new object[] { AnchorStyles.Right, AnchorStyles.Right,
DockStyle
.None };
586
yield return new object[] { AnchorStyles.None, AnchorStyles.None,
DockStyle
.None };
587
yield return new object[] { (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
588
yield return new object[] { (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
593
public void ToolStripDropDown_Anchor_Set_GetReturnsExpected(AnchorStyles value, AnchorStyles expected,
DockStyle
expectedDock)
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)
1235
foreach (
DockStyle
parentDock in new object[] {
DockStyle
.None,
DockStyle
.Left,
DockStyle
.Right,
DockStyle
.Top,
DockStyle
.Bottom })
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)
4947
control.Dock =
DockStyle
.Left;
4949
control.Dock.Should().Be(
DockStyle
.Left);
4951
control.Dock =
DockStyle
.Right;
4953
control.Dock.Should().Be(
DockStyle
.Right);
4956
control.Dock =
DockStyle
.Top;
4958
control.Dock.Should().Be(
DockStyle
.Top);
5098
public new
DockStyle
DefaultDock => base.DefaultDock;
System\Windows\Forms\ToolStripItemTests.cs (11)
48
Assert.Equal(
DockStyle
.None, item.Dock);
133
Assert.Equal(
DockStyle
.None, item.Dock);
228
Assert.Equal(
DockStyle
.None, item.Dock);
2359
[EnumData<
DockStyle
>]
2360
public void ToolStripItem_Dock_Set_GetReturnsExpected(
DockStyle
value)
2374
[EnumData<
DockStyle
>]
2375
public void ToolStripItem_Dock_SetWithOwner_GetReturnsExpected(
DockStyle
value)
2407
[EnumData<
DockStyle
>]
2408
public void ToolStripItem_Dock_SetWithParent_GetReturnsExpected(
DockStyle
value)
2440
[InvalidEnumData<
DockStyle
>]
2441
public void ToolStripItem_Dock_SetInvalid_ThrowsInvalidEnumArgumentException(
DockStyle
value)
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
46
Assert.Equal(
DockStyle
.None, item.Dock);
283
Dock =
DockStyle
.Bottom,
System\Windows\Forms\ToolStripPanelTests.cs (1)
63
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
46
Assert.Equal(
DockStyle
.None, item.Dock);
System\Windows\Forms\ToolStripTests.cs (515)
57
Assert.Equal(
DockStyle
.Top, control.DefaultDock);
82
Assert.Equal(
DockStyle
.Top, control.Dock);
214
Assert.Equal(
DockStyle
.Top, control.DefaultDock);
236
Assert.Equal(
DockStyle
.Top, control.Dock);
746
yield return new object[] { AnchorStyles.Top, AnchorStyles.Top,
DockStyle
.None };
747
yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom,
DockStyle
.None };
748
yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left,
DockStyle
.None };
749
yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right,
DockStyle
.None };
750
yield return new object[] { AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left,
DockStyle
.Top };
751
yield return new object[] { AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
752
yield return new object[] { AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right,
DockStyle
.None };
753
yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
755
yield return new object[] { AnchorStyles.Bottom, AnchorStyles.Bottom,
DockStyle
.None };
756
yield return new object[] { AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Bottom | AnchorStyles.Left,
DockStyle
.None };
757
yield return new object[] { AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Right,
DockStyle
.None };
758
yield return new object[] { AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
760
yield return new object[] { AnchorStyles.Left, AnchorStyles.Left,
DockStyle
.None };
761
yield return new object[] { AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
763
yield return new object[] { AnchorStyles.Right, AnchorStyles.Right,
DockStyle
.None };
765
yield return new object[] { AnchorStyles.None, AnchorStyles.None,
DockStyle
.None };
766
yield return new object[] { (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
767
yield return new object[] { (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
DockStyle
.None };
772
public void ToolStrip_Anchor_Set_GetReturnsExpected(AnchorStyles value, AnchorStyles expected,
DockStyle
expectedDock)
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)
1786
foreach (
DockStyle
parentDock in new object[] {
DockStyle
.None,
DockStyle
.Left,
DockStyle
.Right,
DockStyle
.Top,
DockStyle
.Bottom })
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)
1922
foreach (
DockStyle
childDock in new object[] {
DockStyle
.None,
DockStyle
.Left,
DockStyle
.Right,
DockStyle
.Top,
DockStyle
.Bottom })
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)
2026
foreach (
DockStyle
childDock in new object[] {
DockStyle
.None,
DockStyle
.Left,
DockStyle
.Right,
DockStyle
.Top,
DockStyle
.Bottom })
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)
2321
Assert.Equal(
DockStyle
.Right, control.Dock);
2326
protected override
DockStyle
DefaultDock =>
DockStyle
.Right;
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)
2629
Dock =
DockStyle
.None
2641
control.Dock =
DockStyle
.Top;
2642
Assert.Equal(
DockStyle
.Top, control.Dock);
2646
control.Dock =
DockStyle
.Top;
2647
Assert.Equal(
DockStyle
.Top, control.Dock);
2651
control.Dock =
DockStyle
.Left;
2652
Assert.Equal(
DockStyle
.Left, control.Dock);
2657
control.Dock =
DockStyle
.Top;
2658
Assert.Equal(
DockStyle
.Top, control.Dock);
2663
[InvalidEnumData<
DockStyle
>]
2664
public void ToolStrip_Dock_SetInvalid_ThrowsInvalidEnumArgumentException(
DockStyle
value)
2869
foreach (
DockStyle
dock in new
DockStyle
[] {
DockStyle
.None,
DockStyle
.Top,
DockStyle
.Bottom })
2878
foreach (
DockStyle
dock in new
DockStyle
[] {
DockStyle
.Right,
DockStyle
.Left })
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)
2960
foreach (
DockStyle
dock in new
DockStyle
[] {
DockStyle
.None,
DockStyle
.Top,
DockStyle
.Bottom })
2969
foreach (
DockStyle
dock in new
DockStyle
[] {
DockStyle
.Right,
DockStyle
.Left })
2981
public void ToolStrip_LayoutStyle_SetWithToolStripPanelParent_GetReturnsExpected(
DockStyle
dock, ToolStripLayoutStyle value, ToolStripLayoutStyle expected, Orientation expectedOrientation, ToolStripGripDisplayStyle expectedGripDisplayStyle, int expectedLayoutCallCount)
3024
foreach (
DockStyle
dock in new
DockStyle
[] {
DockStyle
.None,
DockStyle
.Top,
DockStyle
.Bottom })
3053
foreach (
DockStyle
dock in new
DockStyle
[] {
DockStyle
.Right }) // , DockStyle.Left })
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)
7534
public new
DockStyle
DefaultDock => base.DefaultDock;
System\Windows\Forms\TreeViewTests.cs (1)
58
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\UpDownBaseTests.cs (1)
73
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\UserControlTests.cs (1)
67
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\VScrollBarTests.cs (1)
64
Assert.Equal(
DockStyle
.None, control.Dock);
System\Windows\Forms\WebBrowserTests.cs (2)
55
Assert.Equal(
DockStyle
.None, control.Dock);
4761
Dock =
DockStyle
.Fill
TextBoxTests.cs (1)
64
Assert.Equal(
DockStyle
.None, control.Dock);
ToolStripContainerTests.cs (4)
32
_toolStripContainer.TopToolStripPanel.Dock.Should().Be(
DockStyle
.Top);
33
_toolStripContainer.BottomToolStripPanel.Dock.Should().Be(
DockStyle
.Bottom);
34
_toolStripContainer.LeftToolStripPanel.Dock.Should().Be(
DockStyle
.Left);
35
_toolStripContainer.RightToolStripPanel.Dock.Should().Be(
DockStyle
.Right);
TrackBarTests.cs (1)
57
Assert.Equal(
DockStyle
.None, control.Dock);
System.Windows.Forms.UI.IntegrationTests (7)
AnchorLayoutTests.cs (2)
147
container.Dock =
DockStyle
.Fill;
176
container.Dock =
DockStyle
.Fill;
DesignBehaviorsTests.cs (2)
42
treeView.Dock =
DockStyle
.Left;
85
rootView.Dock =
DockStyle
.Fill;
DragDropTests.cs (2)
1001
Dock =
DockStyle
.Top,
1020
Dock =
DockStyle
.Right,
ListViewTests.cs (1)
573
Dock =
DockStyle
.Fill
TrimTest (2)
Form1.Designer.cs (2)
46
splitContainer1.Dock =
DockStyle
.Fill;
65
textBox1.Dock =
DockStyle
.Fill;
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
336
Child.Dock =
DockStyle
.None;
WinFormsControlsTest (37)
Buttons.cs (4)
28
Dock =
DockStyle
.Fill,
42
Dock =
DockStyle
.Fill,
63
Dock =
DockStyle
.Fill,
84
Dock =
DockStyle
.Fill,
Dialogs.Designer.cs (2)
53
this.propertyGrid1.Dock = System.Windows.Forms.
DockStyle
.Fill;
129
this.flowLayoutPanel1.Dock = System.Windows.Forms.
DockStyle
.Left;
DockLayoutTests.Designer.cs (5)
45
this.button1.Dock = System.Windows.Forms.
DockStyle
.Left;
55
this.button3.Dock = System.Windows.Forms.
DockStyle
.Right;
65
this.button2.Dock = System.Windows.Forms.
DockStyle
.Top;
75
this.button4.Dock = System.Windows.Forms.
DockStyle
.Bottom;
85
this.button5.Dock = System.Windows.Forms.
DockStyle
.Fill;
DragDrop.cs (2)
423
Dock =
DockStyle
.Top,
441
Dock =
DockStyle
.Right,
DragDrop.Designer.cs (9)
70
tableLayoutPanel1.Dock =
DockStyle
.Fill;
85
textBox.Dock =
DockStyle
.Fill;
96
richTextBox.Dock =
DockStyle
.Fill;
108
pictureBox1.Dock =
DockStyle
.Fill;
119
pictureBox2.Dock =
DockStyle
.Fill;
130
pictureBox3.Dock =
DockStyle
.Fill;
141
pictureBox4.Dock =
DockStyle
.Fill;
152
pictureBox5.Dock =
DockStyle
.Fill;
167
tableLayoutPanel2.Dock =
DockStyle
.Right;
FormOwnerTestForm.cs (1)
49
Dock =
DockStyle
.Fill,
ListViewTest.cs (1)
141
listView2.Dock =
DockStyle
.Bottom;
ListViewTest.Designer.cs (2)
85
this.listView1.Dock =
DockStyle
.Fill;
97
this.listView3.Dock =
DockStyle
.Bottom;
MainForm.Designer.cs (1)
40
this.overarchingFlowLayoutPanel.Dock = System.Windows.Forms.
DockStyle
.Fill;
MdiChild.Designer.cs (1)
54
this.panel1.Dock = System.Windows.Forms.
DockStyle
.Fill;
MediaPlayer.Designer.cs (1)
43
this.axWindowsMediaPlayer1.Dock = System.Windows.Forms.
DockStyle
.Fill;
MessageBoxes.Designer.cs (1)
41
this.propertyGrid1.Dock = System.Windows.Forms.
DockStyle
.Fill;
MultipleControls.cs (1)
103
listView2.Dock =
DockStyle
.Bottom;
PropertyGrid.Designer.cs (1)
40
this.propertyGrid1.Dock = System.Windows.Forms.
DockStyle
.Fill;
RichTextBoxes.Designer.cs (2)
40
this.richTextBox1.Dock = System.Windows.Forms.
DockStyle
.Top;
51
this.richTextBox2.Dock = System.Windows.Forms.
DockStyle
.Fill;
Splitter.Designer.cs (1)
41
this.splitContainer1.Dock = System.Windows.Forms.
DockStyle
.Fill;
TaskDialogSamples.cs (1)
22
Dock =
DockStyle
.Fill,
ToolTipTests.Designer.cs (1)
91
this.flowLayoutPanel1.Dock = System.Windows.Forms.
DockStyle
.Fill;