20 instantiations of Docking
System.Windows.Forms (13)
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 (1)
16
public static readonly DockingAttribute Default =
new
();
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.Tests (2)
ControlDesignerTests.cs (2)
333
TypeDescriptor.AddAttributes(_designer._control, new
DockingAttribute
(dockingBehavior));
354
TypeDescriptor.AddAttributes(_designer._control, new
DockingAttribute
(DockingBehavior.AutoDock));
System.Windows.Forms.Tests (5)
System\Windows\Forms\DockingAttributeTests.cs (5)
12
DockingAttribute attribute =
new
();
22
DockingAttribute attribute =
new
(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 };
16 references to Docking
System.Windows.Forms (2)
System\Windows\Forms\Layout\DockingAttribute.cs (2)
16
public static readonly
DockingAttribute
Default = new();
27
return obj is
DockingAttribute
other && other.DockingBehavior == DockingBehavior;
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\ControlDesigner.cs (6)
935
DockingAttribute
? dockingAttribute = (
DockingAttribute
?)attributes[typeof(
DockingAttribute
)];
1160
DockingAttribute
? dockingAttribute = (
DockingAttribute
?)attributes[typeof(
DockingAttribute
)];
System.Windows.Forms.Tests (8)
System\Windows\Forms\DockingAttributeTests.cs (8)
12
DockingAttribute
attribute = new();
22
DockingAttribute
attribute = new(dockingBehavior);
30
DockingAttribute
attribute =
DockingAttribute
.Default;
31
Assert.Same(attribute,
DockingAttribute
.Default);
38
DockingAttribute
attribute = new(DockingBehavior.Ask);
49
public void DockingAttribute_Equals_Invoke_ReturnsExpected(
DockingAttribute
attribute, object other, bool expected)
52
if (other is
DockingAttribute
)