System.Windows.Forms.DockingBehavior Enumeration

Specifies how a control should be docked by default when added through a designer.

Syntax

public enum DockingBehavior

Remarks

The System.Windows.Forms.DockingBehavior enumeration is used by the System.Windows.Forms.DockingAttribute class.

The System.Windows.Forms.SplitContainer and System.Windows.Forms.WebBrowser controls are set to DockingBehavior.AutoDock. The System.Windows.Forms.DataGridView control is set to DockingBehavior.Ask.

Members

Member NameDescription
Ask

Prompt the user for the desired docking behavior.

AutoDock

Set the control's Control.Dock property to DockStyle.Fill when it is dropped into a container with no other child controls.

Never

Do not prompt the user for the desired docking behavior.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0