DockingBehavior Enumeration

 

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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public enum class DockingBehavior

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.

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.

.NET Framework
Available since 2.0
Return to top
Show: