DockingBehavior Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies how a control should be docked by default when added through a designer.
public enum class DockingBehavior
public enum DockingBehavior
type DockingBehavior =
Public Enum DockingBehavior
- Inheritance
Name | Value | Description |
---|---|---|
Never | 0 | Do not prompt the user for the desired docking behavior. |
Ask | 1 | Prompt the user for the desired docking behavior. |
AutoDock | 2 | Set the control's Dock property to Fill when it is dropped into a container with no other child controls. |
The DockingBehavior enumeration is used by the System.Windows.Forms.DockingAttribute class.
The SplitContainer and WebBrowser controls are set to AutoDock. The DataGridView control is set to Ask.
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: