Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
This property applies only to flow layouts.
Use the property to define how a ToolStripItem is automatically resized as its parent control is resized. For example, setting 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 properties are mutually exclusive. Only one can be set at a time, and the last one set takes precedence.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.