DockStyle Enumeration

List of enumerated values that specify the position and manner in which a control is docked.

Docking a control to the edge of a container allows the control to always remain positioned flush against that edge, even when the container is resized.

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.

Namespace: elsystem.windows.forms

Enumerated Values
  Name Value Description
Public property Bottom

2

The control's bottom edge is docked to the bottom of its containing control.
Public property Fill

5

All the control's edges are docked to the all edges of its containing control and sized appropriately.
Public property Left

3

The control's left edge is docked to the left edge of its containing control.
Public property None

0

The control is not docked.
Public property Right

4

The control's right edge is docked to the right edge of its containing control.
Public property Top

1

The control's top edge is docked to the top of its containing control.