346 references to None
Accessibility_Core_App (1)
ToolStripContainer.Designer.cs (1)
330this.menuStrip1.Dock = System.Windows.Forms.DockStyle.None;
System.Windows.Forms (23)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (3)
112DockStyle result = GetControl()?.Dock ?? DockStyle.None; 113if (result is < DockStyle.None or > DockStyle.Right) 115result = DockStyle.None;
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)
271protected override DockStyle DefaultDock => DockStyle.None; 285[DefaultValue(DockStyle.None)]
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
603return _owner is null && (Dock != DockStyle.None);
System\Windows\Forms\Form.cs (2)
1497Dock = DockStyle.None; 3638if (IsMdiChild && Dock != DockStyle.None)
System\Windows\Forms\Layout\CommonProperties.cs (9)
30internal 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, 463Debug.Assert(((xGetDock(element) != DockStyle.None) && element.ParticipatesInLayout) == result, 564Debug.Assert(result == (GetAutoSize(element) && xGetDock(element) == DockStyle.None), 619state[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)
900SetDock(element, DockStyle.None); 948if (value == DockStyle.None)
System\Windows\Forms\Layout\LayoutUtils.cs (1)
267if (dockStyle != DockStyle.None)
System.Windows.Forms.Design (18)
System\ComponentModel\Design\ByteViewer.cs (1)
559if (Dock == DockStyle.None)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
289edgeToDock = DockStyle.None;
System\Windows\Forms\Design\ControlDesigner.cs (2)
1168if (c != Control && c.Dock == DockStyle.None) 1577if (Control.Dock != DockStyle.None)
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (1)
66dockProp.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)
46Text = DockStyle.None.ToString(), 141return DockStyle.None; 147case DockStyle.None: 287DockStyle = Value is DockStyle dockStyle ? dockStyle : DockStyle.None;
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1488dockProp?.SetValue(ToolStrip, DockStyle.None);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
381dockProp?.SetValue(e.Control, DockStyle.None);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
883Dock = DockStyle.None, 1490_miniToolStrip.Dock = DockStyle.None;
System.Windows.Forms.Design.Tests (3)
ControlDesignerTests.cs (2)
291_designer._control.Dock = DockStyle.None; 329[InlineData(DockingBehavior.Never, DockStyle.None)]
System\ComponentModel\Design\ByteViewerTests.cs (1)
66Assert.Equal(DockStyle.None, control.Dock);
System.Windows.Forms.Tests (300)
System\Windows\Forms\AxHostTests.cs (2)
68Assert.Equal(DockStyle.None, control.Dock); 162Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\ButtonBaseTests.cs (1)
59Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\ButtonTests.cs (1)
62Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\CheckBoxTests.cs (1)
63Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\ComboBoxTests.cs (1)
67Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\ContainerControlTests.cs (1)
67Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\ControlTests.cs (5)
54Assert.Equal(DockStyle.None, control.Dock); 143Assert.Equal(DockStyle.None, control.Dock); 239Assert.Equal(DockStyle.None, control.Dock); 335Assert.Equal(DockStyle.None, control.Dock); 431Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\ControlTests.Properties.cs (63)
343Assert.Equal(DockStyle.None, control.Dock); 350Assert.Equal(DockStyle.None, control.Dock); 368Assert.Equal(DockStyle.None, control.Dock); 375Assert.Equal(DockStyle.None, control.Dock); 432Assert.Equal(DockStyle.None, control.Dock); 440Assert.Equal(DockStyle.None, control.Dock); 488Assert.Equal(DockStyle.None, control.Dock); 496Assert.Equal(DockStyle.None, control.Dock); 579Assert.Equal(DockStyle.None, control.Dock); 587Assert.Equal(DockStyle.None, control.Dock); 712Assert.Equal(DockStyle.None, control.Dock); 721Assert.Equal(DockStyle.None, control.Dock); 738yield return new object[] { dock, AnchorStyles.Top, AnchorStyles.Top, DockStyle.None }; 739yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, DockStyle.None }; 740yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, DockStyle.None }; 741yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, DockStyle.None }; 743yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 744yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right, DockStyle.None }; 745yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 747yield return new object[] { dock, AnchorStyles.Bottom, AnchorStyles.Bottom, DockStyle.None }; 748yield return new object[] { dock, AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Bottom | AnchorStyles.Left, DockStyle.None }; 749yield return new object[] { dock, AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Right, DockStyle.None }; 750yield return new object[] { dock, AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 752yield return new object[] { dock, AnchorStyles.Left, AnchorStyles.Left, DockStyle.None }; 753yield return new object[] { dock, AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 755yield return new object[] { dock, AnchorStyles.Right, AnchorStyles.Right, DockStyle.None }; 757yield return new object[] { dock, AnchorStyles.None, AnchorStyles.None, DockStyle.None }; 758yield return new object[] { dock, (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 759yield return new object[] { dock, (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 792yield return new object[] { dock, AnchorStyles.Top, AnchorStyles.Top, DockStyle.None, 1 }; 793yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, DockStyle.None, 1 }; 794yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, DockStyle.None, 1 }; 795yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, DockStyle.None, 1 }; 797yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None, 1 }; 798yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right, DockStyle.None, 1 }; 799yield return new object[] { dock, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None, 1 }; 801yield return new object[] { dock, AnchorStyles.Bottom, AnchorStyles.Bottom, DockStyle.None, 1 }; 802yield return new object[] { dock, AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Bottom | AnchorStyles.Left, DockStyle.None, 1 }; 803yield return new object[] { dock, AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Right, DockStyle.None, 1 }; 804yield return new object[] { dock, AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None, 1 }; 806yield return new object[] { dock, AnchorStyles.Left, AnchorStyles.Left, DockStyle.None, 1 }; 807yield return new object[] { dock, AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Left | AnchorStyles.Right, DockStyle.None, 1 }; 809yield return new object[] { dock, AnchorStyles.Right, AnchorStyles.Right, DockStyle.None, 1 }; 811yield return new object[] { dock, AnchorStyles.None, AnchorStyles.None, DockStyle.None, 1 }; 812yield return new object[] { dock, (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None, 1 }; 813yield return new object[] { dock, (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None, 1 }; 882Assert.Equal(DockStyle.None, control.Dock); 892Assert.Equal(DockStyle.None, control.Dock); 4174yield return new object[] { DockStyle.None, 0 }; 4229yield return new object[] { DockStyle.None, DockStyle.Bottom, 1 }; 4236yield return new object[] { DockStyle.None, DockStyle.Fill, 1 }; 4243yield return new object[] { DockStyle.None, DockStyle.Left, 1 }; 4247yield return new object[] { DockStyle.Bottom, DockStyle.None, 1 }; 4248yield return new object[] { DockStyle.Fill, DockStyle.None, 1 }; 4249yield return new object[] { DockStyle.Left, DockStyle.None, 1 }; 4250yield return new object[] { DockStyle.None, DockStyle.None, 0 }; 4251yield return new object[] { DockStyle.Right, DockStyle.None, 1 }; 4252yield return new object[] { DockStyle.Top, DockStyle.None, 1 }; 4257yield return new object[] { DockStyle.None, DockStyle.Right, 1 }; 4264yield return new object[] { DockStyle.None, DockStyle.Top, 1 }; 4321yield return new object[] { anchor, value, value == DockStyle.None ? anchor : AnchorStyles.Top | AnchorStyles.Left }; 4385Dock = DockStyle.None
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
65Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\DateTimePickerTests.cs (1)
69Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
80Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
63Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\DomainUpDownTests.cs (1)
86_sub.Dock.Should().Be(DockStyle.None);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
60Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\FormTests.cs (1)
82Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\GroupBoxTests.cs (1)
57Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\HScrollBarTests.cs (1)
65Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\LabelTests.cs (1)
57Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\ListBoxTests.cs (1)
64Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\ListControlTests.cs (1)
61Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\ListViewTests.cs (1)
72Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\MonthCalendarTests.cs (1)
74Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\PanelTests.cs (1)
61Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\PictureBoxTests.cs (1)
60Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\ProgressBarTests.cs (1)
55Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\PropertyGridTests.cs (1)
89Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\RadioButtonTests.cs (1)
62Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\RichTextBoxTests.cs (1)
72Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\ScrollableControlTests.cs (1)
60Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\ScrollBarTests.cs (1)
55Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\SplitterPanelTests.cs (4)
57Assert.Equal(DockStyle.None, control.Dock); 114Assert.Equal(DockStyle.None, control.Dock); 120Assert.Equal(DockStyle.None, control.Dock); 404Dock = DockStyle.None
System\Windows\Forms\SplitterTests.cs (1)
724[InlineData(DockStyle.None)]
System\Windows\Forms\StatusStripTests.cs (6)
256yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, 1, Orientation.Horizontal, 1 }; 257yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, 1, Orientation.Horizontal, 0 }; 258yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, 1, Orientation.Horizontal, 1 }; 259yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, 1, Orientation.Horizontal, 1 }; 260yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, 1, Orientation.Vertical, 0 }; 348foreach (DockStyle dock in new DockStyle[] { DockStyle.None, DockStyle.Top, DockStyle.Bottom })
System\Windows\Forms\TabControlTests.cs (1)
57Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
66Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\TabPageTests.cs (7)
66Assert.Equal(DockStyle.None, control.Dock); 175Assert.Equal(DockStyle.None, control.Dock); 264Assert.Equal(DockStyle.None, control.Dock); 270Assert.Equal(DockStyle.None, control.Dock); 285Assert.Equal(DockStyle.None, control.Dock); 291Assert.Equal(DockStyle.None, control.Dock); 954Dock = DockStyle.None
System\Windows\Forms\ToolStripButtonTests.cs (6)
49Assert.Equal(DockStyle.None, item.Dock); 130Assert.Equal(DockStyle.None, item.Dock); 217Assert.Equal(DockStyle.None, item.Dock); 307Assert.Equal(DockStyle.None, item.Dock); 395Assert.Equal(DockStyle.None, item.Dock); 493Assert.Equal(DockStyle.None, item.Dock);
System\Windows\Forms\ToolStripContentPanelTests.cs (4)
63Assert.Equal(DockStyle.None, control.Dock); 133Assert.Equal(DockStyle.None, control.Dock); 139Assert.Equal(DockStyle.None, control.Dock); 858Dock = DockStyle.None
System\Windows\Forms\ToolStripControlHostTests.cs (1)
79Assert.Equal(DockStyle.None, item.Dock);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
45Assert.Equal(DockStyle.None, item.Dock); 134Assert.Equal(DockStyle.None, item.Dock); 233Assert.Equal(DockStyle.None, item.Dock); 333Assert.Equal(DockStyle.None, item.Dock);
System\Windows\Forms\ToolStripDropDownTests.cs (51)
57Assert.Equal(DockStyle.None, control.DefaultDock); 71Assert.Equal(DockStyle.None, control.Dock); 567yield return new object[] { AnchorStyles.Top, AnchorStyles.Top, DockStyle.None }; 568yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, DockStyle.None }; 569yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, DockStyle.None }; 570yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, DockStyle.None }; 571yield return new object[] { AnchorStyles.Top | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Left, DockStyle.None }; 572yield return new object[] { AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 573yield return new object[] { AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right, DockStyle.None }; 574yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 576yield return new object[] { AnchorStyles.Bottom, AnchorStyles.Bottom, DockStyle.None }; 577yield return new object[] { AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Bottom | AnchorStyles.Left, DockStyle.None }; 578yield return new object[] { AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Right, DockStyle.None }; 579yield return new object[] { AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 581yield return new object[] { AnchorStyles.Left, AnchorStyles.Left, DockStyle.None }; 582yield return new object[] { AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 584yield return new object[] { AnchorStyles.Right, AnchorStyles.Right, DockStyle.None }; 586yield return new object[] { AnchorStyles.None, AnchorStyles.None, DockStyle.None }; 587yield return new object[] { (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 588yield return new object[] { (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 1112yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1113yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.Right }; 1114yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1128yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1129yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.Right }; 1130yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1144yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1145yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.Right }; 1146yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1160yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1161yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.Right }; 1162yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1176yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1177yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.Right }; 1178yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1235foreach (DockStyle parentDock in new object[] { DockStyle.None, DockStyle.Left, DockStyle.Right, DockStyle.Top, DockStyle.Bottom }) 1237yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1238yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.Right }; 1239yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1253yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1254yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.Right }; 1255yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1269yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1270yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.Right }; 1271yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1285yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1286yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.Right }; 1287yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1301yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Left }; 1302yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.Right }; 1303yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right };
System\Windows\Forms\ToolStripItemTests.cs (3)
48Assert.Equal(DockStyle.None, item.Dock); 133Assert.Equal(DockStyle.None, item.Dock); 228Assert.Equal(DockStyle.None, item.Dock);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
46Assert.Equal(DockStyle.None, item.Dock);
System\Windows\Forms\ToolStripPanelTests.cs (1)
63Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
46Assert.Equal(DockStyle.None, item.Dock);
System\Windows\Forms\ToolStripTests.cs (104)
746yield return new object[] { AnchorStyles.Top, AnchorStyles.Top, DockStyle.None }; 747yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom, AnchorStyles.Top | AnchorStyles.Bottom, DockStyle.None }; 748yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left, DockStyle.None }; 749yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right, DockStyle.None }; 751yield return new object[] { AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 752yield return new object[] { AnchorStyles.Top | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Right, DockStyle.None }; 753yield return new object[] { AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 755yield return new object[] { AnchorStyles.Bottom, AnchorStyles.Bottom, DockStyle.None }; 756yield return new object[] { AnchorStyles.Bottom | AnchorStyles.Left, AnchorStyles.Bottom | AnchorStyles.Left, DockStyle.None }; 757yield return new object[] { AnchorStyles.Bottom | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Right, DockStyle.None }; 758yield return new object[] { AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 760yield return new object[] { AnchorStyles.Left, AnchorStyles.Left, DockStyle.None }; 761yield return new object[] { AnchorStyles.Left | AnchorStyles.Right, AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 763yield return new object[] { AnchorStyles.Right, AnchorStyles.Right, DockStyle.None }; 765yield return new object[] { AnchorStyles.None, AnchorStyles.None, DockStyle.None }; 766yield return new object[] { (AnchorStyles)(-1), AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 767yield return new object[] { (AnchorStyles)int.MaxValue, AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right, DockStyle.None }; 1663yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1664yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 1665yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1679yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1680yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 1681yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1695yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1696yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 1697yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1711yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1712yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 1713yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1727yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1728yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.Right }; 1729yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1786foreach (DockStyle parentDock in new object[] { DockStyle.None, DockStyle.Left, DockStyle.Right, DockStyle.Top, DockStyle.Bottom }) 1788yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1789yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 1790yield return new object[] { parentDock, ToolStripLayoutStyle.Flow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1804yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1805yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 1806yield return new object[] { parentDock, ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1820yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1821yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 1822yield return new object[] { parentDock, ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1836yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1837yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 1838yield return new object[] { parentDock, ToolStripLayoutStyle.Table, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1852yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1853yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.No, ToolStripDropDownDirection.Right }; 1854yield return new object[] { parentDock, ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 1922foreach (DockStyle childDock in new object[] { DockStyle.None, DockStyle.Left, DockStyle.Right, DockStyle.Top, DockStyle.Bottom }) 1924yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1925yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 1926yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1940yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1941yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 1942yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1956yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1957yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 1958yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1972yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 1973yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 1974yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 1988yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 1989yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.No, ToolStripDropDownDirection.Right }; 1990yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2026foreach (DockStyle childDock in new object[] { DockStyle.None, DockStyle.Left, DockStyle.Right, DockStyle.Top, DockStyle.Bottom }) 2028yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2029yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 2030yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2044yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2045yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 2046yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2060yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2061yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 2062yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2076yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Yes, ToolStripDropDownDirection.BelowLeft }; 2077yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.No, ToolStripDropDownDirection.BelowRight }; 2078yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.BelowRight }; 2092yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Yes, ToolStripDropDownDirection.Right }; 2093yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.No, ToolStripDropDownDirection.Right }; 2094yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, childDock, RightToLeft.Inherit, ToolStripDropDownDirection.Right }; 2349yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, 1, Orientation.Horizontal, 1 }; 2350yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, 1, Orientation.Horizontal, 0 }; 2351yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, 1, Orientation.Horizontal, 1 }; 2352yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, 1, Orientation.Horizontal, 1 }; 2353yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, 1, Orientation.Vertical, 0 }; 2432yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, Orientation.Horizontal, 0, 1, 1 }; 2433yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, Orientation.Horizontal, 1, 0, 1 }; 2434yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, Orientation.Horizontal, 0, 1, 1 }; 2435yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, Orientation.Horizontal, 0, 1, 1 }; 2436yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, Orientation.Vertical, 0, 0, 1 }; 2538yield return new object[] { ToolStripLayoutStyle.Flow, DockStyle.None, Orientation.Horizontal, 1 }; 2539yield return new object[] { ToolStripLayoutStyle.HorizontalStackWithOverflow, DockStyle.None, Orientation.Horizontal, 1 }; 2540yield return new object[] { ToolStripLayoutStyle.StackWithOverflow, DockStyle.None, Orientation.Horizontal, 1 }; 2541yield return new object[] { ToolStripLayoutStyle.Table, DockStyle.None, Orientation.Horizontal, 1 }; 2542yield return new object[] { ToolStripLayoutStyle.VerticalStackWithOverflow, DockStyle.None, Orientation.Horizontal, 1 }; 2629Dock = DockStyle.None 2869foreach (DockStyle dock in new DockStyle[] { DockStyle.None, DockStyle.Top, DockStyle.Bottom }) 2960foreach (DockStyle dock in new DockStyle[] { DockStyle.None, DockStyle.Top, DockStyle.Bottom }) 3024foreach (DockStyle dock in new DockStyle[] { DockStyle.None, DockStyle.Top, DockStyle.Bottom }) 3113yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Flow, ToolStripLayoutStyle.Flow, Orientation.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 }; 3114yield return new object[] { DockStyle.None, ToolStripLayoutStyle.HorizontalStackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow, Orientation.Horizontal, ToolStripGripDisplayStyle.Vertical, 1 }; 3115yield return new object[] { DockStyle.None, ToolStripLayoutStyle.StackWithOverflow, ToolStripLayoutStyle.HorizontalStackWithOverflow, Orientation.Horizontal, ToolStripGripDisplayStyle.Vertical, 0 }; 3116yield return new object[] { DockStyle.None, ToolStripLayoutStyle.Table, ToolStripLayoutStyle.Table, Orientation.Horizontal, ToolStripGripDisplayStyle.Horizontal, 1 }; 3117yield return new object[] { DockStyle.None, ToolStripLayoutStyle.VerticalStackWithOverflow, ToolStripLayoutStyle.VerticalStackWithOverflow, Orientation.Vertical, ToolStripGripDisplayStyle.Horizontal, 2 };
System\Windows\Forms\TreeViewTests.cs (1)
58Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\UpDownBaseTests.cs (1)
73Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\UserControlTests.cs (1)
67Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\VScrollBarTests.cs (1)
64Assert.Equal(DockStyle.None, control.Dock);
System\Windows\Forms\WebBrowserTests.cs (1)
55Assert.Equal(DockStyle.None, control.Dock);
TextBoxTests.cs (1)
64Assert.Equal(DockStyle.None, control.Dock);
TrackBarTests.cs (1)
57Assert.Equal(DockStyle.None, control.Dock);
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
338Child.Dock = DockStyle.None;