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)
12
public DockingAttribute() => DockingBehavior =
DockingBehavior
.Never;
14
public DockingAttribute(
DockingBehavior
dockingBehavior) => DockingBehavior = dockingBehavior;
18
public
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)
936
if (dockingAttribute is not null && dockingAttribute.DockingBehavior !=
DockingBehavior
.Never)
1162
if (dockingAttribute is not null && dockingAttribute.DockingBehavior !=
DockingBehavior
.Never
1163
&& dockingAttribute.DockingBehavior ==
DockingBehavior
.AutoDock)
System.Windows.Forms.Tests (9)
System\Windows\Forms\DockingAttributeTests.cs (9)
13
Assert.Equal(
DockingBehavior
.Never, attribute.DockingBehavior);
18
[EnumData<
DockingBehavior
>]
19
[InvalidEnumData<
DockingBehavior
>]
20
public void DockingAttribute_Ctor_DockingBehavior(
DockingBehavior
dockingBehavior)
24
Assert.Equal(dockingBehavior ==
DockingBehavior
.Never, attribute.IsDefaultAttribute());
32
Assert.Equal(
DockingBehavior
.Never, attribute.DockingBehavior);
38
DockingAttribute attribute = new(
DockingBehavior
.Ask);
40
yield return new object[] { attribute, new DockingAttribute(
DockingBehavior
.Ask), true };
41
yield return new object[] { attribute, new DockingAttribute(
DockingBehavior
.Never), false };