Name
DockStyle
Synopsis
This enumeration is used to specify how the default layout manager
should treat a particular control. You can set the
Control.Dock
property to one of these values, to
ensure that the control is attached to the specified edge of the
parent, expanded to the full width and/or height, or resized as the
parent changes its layout.
public enum DockStyle { None = 0, Top = 1, Bottom = 2, Left = 3, Right = 4, Fill = 5 }
Hierarchy
System.Object
→ System.ValueType → System.Enum(System.IComparabl,
System.IFormattable
,
System.IConvertible)
→ DockStyle
Returned By
Control.Dock
Passed To
Control.Dock
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.