342 references to None
Accessibility_Core_App (1)
ToolStripContainer.Designer.cs (1)
330
this.menuStrip1.Dock = System.Windows.Forms.DockStyle.
None
;
System.Windows.Forms (21)
System\Windows\Forms\ActiveX\AxHost.cs (1)
168
Debug.Assert(DockStyle.
None
== NativeMethods.ActiveX.ALIGN_NO_CHANGE, "align value mismatch");
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\ToolStrips\ToolStripDropDown.cs (2)
271
protected override DockStyle DefaultDock => DockStyle.
None
;
285
[DefaultValue(DockStyle.
None
)]
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
603
return _owner is null && (Dock != DockStyle.
None
);
System\Windows\Forms\Form.cs (2)
1497
Dock = DockStyle.
None
;
3638
if (IsMdiChild && Dock != DockStyle.
None
)
System\Windows\Forms\Layout\CommonProperties.cs (9)
30
internal const DockStyle DefaultDock = DockStyle.
None
;
272
/// to <see cref="DockStyle.Fill"/>, then <see cref="DockStyle.
None
"/>. When filled, the <see cref="Control.Size"/>
273
/// changed to 300,300. When you set it back to <see cref="DockStyle.
None
"/> the size switches back to 100,23.
285
/// Setting the control to <see cref="DockStyle.
None
"/> (via DefaultLayout.SetDock)
448
|| (GetAutoSize(element) != DefaultAutoSize && xGetDock(element) == DockStyle.
None
)) == result,
463
Debug.Assert(((xGetDock(element) != DockStyle.
None
) && element.ParticipatesInLayout) == result,
564
Debug.Assert(result == (GetAutoSize(element) && xGetDock(element) == DockStyle.
None
),
619
state[s_dockModeSection] = (int)(value == DockStyle.
None
? DockAnchorMode.Anchor : DockAnchorMode.Dock);
625
== (value != DockStyle.
None
), "xSetDock set DockMode incorrectly.");
System\Windows\Forms\Layout\DefaultLayout.cs (2)
900
SetDock(element, DockStyle.
None
);
948
if (value == DockStyle.
None
)
System\Windows\Forms\Layout\LayoutUtils.cs (1)
267
if (dockStyle != DockStyle.
None
)
System.Windows.Forms.Design (18)
System\ComponentModel\Design\ByteViewer.cs (1)
559
if (Dock == DockStyle.
None
)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
289
edgeToDock = DockStyle.
None
;
System\Windows\Forms\Design\ControlDesigner.cs (2)
1168
if (c != Control && c.Dock == DockStyle.
None
)
1577
if (Control.Dock != DockStyle.
None
)
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (1)
66
dockProp.SetValue(Component, dockStyle == DockStyle.Fill ? DockStyle.
None
: DockStyle.Fill);
System\Windows\Forms\Design\DesignBindingPicker.cs (5)
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
;
System\Windows\Forms\Design\DockEditor.DockUI.cs (4)
46
Text = DockStyle.
None
.ToString(),
141
return DockStyle.
None
;
147
case DockStyle.
None
:
287
DockStyle = Value is DockStyle dockStyle ? dockStyle : DockStyle.
None
;
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1494
dockProp?.SetValue(ToolStrip, DockStyle.
None
);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
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 (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
66
Assert.Equal(DockStyle.
None
, control.Dock);
System.Windows.Forms.Tests (300)
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 (5)
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);
System\Windows\Forms\ControlTests.Properties.cs (63)
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);
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
};
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 };
882
Assert.Equal(DockStyle.
None
, control.Dock);
892
Assert.Equal(DockStyle.
None
, control.Dock);
4174
yield return new object[] { DockStyle.
None
, 0 };
4229
yield return new object[] { DockStyle.
None
, DockStyle.Bottom, 1 };
4236
yield return new object[] { DockStyle.
None
, DockStyle.Fill, 1 };
4243
yield return new object[] { DockStyle.
None
, 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 };
4257
yield return new object[] { DockStyle.
None
, DockStyle.Right, 1 };
4264
yield return new object[] { DockStyle.
None
, DockStyle.Top, 1 };
4321
yield return new object[] { anchor, value, value == DockStyle.
None
? anchor : AnchorStyles.Top | AnchorStyles.Left };
4385
Dock = DockStyle.
None
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\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\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\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 (4)
57
Assert.Equal(DockStyle.
None
, control.Dock);
114
Assert.Equal(DockStyle.
None
, control.Dock);
120
Assert.Equal(DockStyle.
None
, control.Dock);
404
Dock = DockStyle.
None
System\Windows\Forms\SplitterTests.cs (1)
724
[InlineData(DockStyle.
None
)]
System\Windows\Forms\StatusStripTests.cs (6)
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 };
348
foreach (DockStyle dock in new DockStyle[] { DockStyle.
None
, DockStyle.Top, DockStyle.Bottom })
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 (7)
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);
954
Dock = DockStyle.
None
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 (4)
63
Assert.Equal(DockStyle.
None
, control.Dock);
133
Assert.Equal(DockStyle.
None
, control.Dock);
139
Assert.Equal(DockStyle.
None
, control.Dock);
858
Dock = DockStyle.
None
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 (51)
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
};
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
System\Windows\Forms\ToolStripItemTests.cs (3)
48
Assert.Equal(DockStyle.
None
, item.Dock);
133
Assert.Equal(DockStyle.
None
, item.Dock);
228
Assert.Equal(DockStyle.
None
, item.Dock);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
46
Assert.Equal(DockStyle.
None
, item.Dock);
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 (104)
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
};
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
};
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
2629
Dock = DockStyle.
None
2869
foreach (DockStyle dock in new DockStyle[] { DockStyle.
None
, DockStyle.Top, DockStyle.Bottom })
2960
foreach (DockStyle dock in new DockStyle[] { DockStyle.
None
, DockStyle.Top, DockStyle.Bottom })
3024
foreach (DockStyle dock in new DockStyle[] { DockStyle.
None
, DockStyle.Top, DockStyle.Bottom })
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 };
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 (1)
55
Assert.Equal(DockStyle.
None
, control.Dock);
TextBoxTests.cs (1)
64
Assert.Equal(DockStyle.
None
, control.Dock);
TrackBarTests.cs (1)
57
Assert.Equal(DockStyle.
None
, control.Dock);
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
338
Child.Dock = DockStyle.
None
;