DockingBehavior DockingBehavior DockingBehavior DockingBehavior Enum

定义

指定默认情况下通过设计器添加控件时应如何停靠此控件。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
继承
DockingBehaviorDockingBehaviorDockingBehaviorDockingBehavior

字段

Ask Ask Ask Ask 1

提示用户提供所需的停靠行为。Prompt the user for the desired docking behavior.

AutoDock AutoDock AutoDock AutoDock 2

如果一个控件要放入一个没有其他子控件的容器,则将该控件的 Dock 属性设置为 FillSet the control's Dock property to Fill when it is dropped into a container with no other child controls.

Never Never Never Never 0

不提示用户提供所需的停靠行为。Do not prompt the user for the desired docking behavior.

注解

DockingBehavior 枚举由 System.Windows.Forms.DockingAttribute 类使用。The DockingBehavior enumeration is used by the System.Windows.Forms.DockingAttribute class.

SplitContainerWebBrowser控件设置为 AutoDock。The SplitContainer and WebBrowser controls are set to AutoDock. DataGridView控件设置为 Ask。The DataGridView control is set to Ask.

适用于

另请参阅