Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

DockStyle Enumeration

Specifies the position and manner in which a control is docked.

[Visual Basic]
<Serializable>
Public Enum DockStyle
[C#]
[Serializable]
public enum DockStyle
[C++]
[Serializable]
__value public enum DockStyle
[JScript]
public
   Serializable
enum DockStyle

Remarks

When a control is docked to an edge of its container, it is always positioned flush against that edge when the container is resized. If more than one control is docked to an edge, the controls appear side by side according to their z-order; controls higher in the z-order are positioned farther from the container's edge.

If Left, Right, Top, or Bottom is selected, the specified and opposite edges of the control are resized to the size of the containing control's corresponding edges. If Fill is selected, all four sides of the control are resized to match the containing control's edges.

Members

Member name Description
Bottom The control's bottom edge is docked to the bottom of its containing control.
Fill All the control's edges are docked to the all edges of its containing control and sized appropriately.
Left The control's left edge is docked to the left edge of its containing control.
None The control is not docked.
Right The control's right edge is docked to the right edge of its containing control.
Top The control's top edge is docked to the top of its containing control.

Requirements

Namespace: System.Windows.Forms

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

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

See Also

System.Windows.Forms Namespace | Dock

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.