Assembly: System.Windows.Forms (in system.windows.forms.dll)
/** @property */ public DockStyle get_Dock () /** @property */ public void set_Dock (DockStyle value)
Property ValueOne of the DockStyle values. The default is None.
The value assigned is not one of the DockStyle values.
This property applies only to flow layouts.
Use the Dock property to define how a ToolStripItem is automatically resized as its parent control is resized. For example, setting Dock to Left causes the ToolStripItem to align itself with the left edges of its parent control and to resize as the parent control is resized. Controls are docked in their Z-order, which is the visual layering of controls on a form along the form's Z-axis (depth).
A control can be docked to one edge of its parent container or can be docked to all edges and fill the parent container.
The Anchor and Dock properties are mutually exclusive. Only one can be set at a time, and the last one set takes precedence.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.