27 references to DockingBehavior
System.Windows.Forms (15)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
14[Docking(DockingBehavior.Ask)]
System\Windows\Forms\Controls\ListView\ListView.cs (1)
26[Docking(DockingBehavior.Ask)]
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
20[Docking(DockingBehavior.Ask)]
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
21[Docking(DockingBehavior.Ask)]
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
12[Docking(DockingBehavior.Never)]
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
24[Docking(DockingBehavior.Ask)]
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
21[Docking(DockingBehavior.AutoDock)]
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
20[Docking(DockingBehavior.AutoDock)]
System\Windows\Forms\Layout\DockingAttribute.cs (3)
12public DockingAttribute() => DockingBehavior = DockingBehavior.Never; 14public DockingAttribute(DockingBehavior dockingBehavior) => DockingBehavior = dockingBehavior; 18public DockingBehavior DockingBehavior { get; }
System\Windows\Forms\Panels\FlowLayoutPanel.cs (1)
12[Docking(DockingBehavior.Ask)]
System\Windows\Forms\Panels\Panel.cs (1)
16[Docking(DockingBehavior.Ask)]
System\Windows\Forms\Panels\SplitterPanel.cs (1)
9[Docking(DockingBehavior.Never)]
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
19[Docking(DockingBehavior.Never)]
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ControlDesigner.cs (3)
936if (dockingAttribute is not null && dockingAttribute.DockingBehavior != DockingBehavior.Never) 1162if (dockingAttribute is not null && dockingAttribute.DockingBehavior != DockingBehavior.Never 1163&& dockingAttribute.DockingBehavior == DockingBehavior.AutoDock)
System.Windows.Forms.Tests (9)
System\Windows\Forms\DockingAttributeTests.cs (9)
13Assert.Equal(DockingBehavior.Never, attribute.DockingBehavior); 18[EnumData<DockingBehavior>] 19[InvalidEnumData<DockingBehavior>] 20public void DockingAttribute_Ctor_DockingBehavior(DockingBehavior dockingBehavior) 24Assert.Equal(dockingBehavior == DockingBehavior.Never, attribute.IsDefaultAttribute()); 32Assert.Equal(DockingBehavior.Never, attribute.DockingBehavior); 38DockingAttribute attribute = new(DockingBehavior.Ask); 40yield return new object[] { attribute, new DockingAttribute(DockingBehavior.Ask), true }; 41yield return new object[] { attribute, new DockingAttribute(DockingBehavior.Never), false };