# DockStyle

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

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

{% tabs %}
{% tab title="C#" %}

```csharp
public enum DockStyle : Enum
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Enum DockStyle As [Enum]
```

{% endtab %}
{% endtabs %}

## Fields

| 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.                                 |

## Used By

| Name                                                                                                                                          | Description                                                                                                                                          |
| --------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Control.Dock](https://docs.wisej.com/api/general/control#dock)                                                                               | Returns or sets which control borders are docked to its parent control and determines how a control is resized with its parent.                      |
| [Control.LayoutChildren](https://docs.wisej.com/api/general/control#layoutchildren-dock-spacing-usemargins-halign-valign)                     | Arranges all the child [Control](https://docs.wisej.com/api/wisej.web/general/control) using the specified *dock* style, spaced by *spacing* pixels. |
| [Label.Dock](https://docs.wisej.com/api/content/wisej.web.label#dock)                                                                         | Returns or sets which control borders are docked to its parent control and determines how a control is resized with its parent.                      |
| [Desktop.Dock](https://docs.wisej.com/api/containers/desktop#dock)                                                                            | Returns or sets which control borders are docked to its parent control and determines how a control is resized with its parent.                      |
| [MenuBar.Dock](https://docs.wisej.com/api/menus/wisej.web.menubar#dock)                                                                       |                                                                                                                                                      |
| [StatusBar.Dock](https://docs.wisej.com/api/containers/statusbar#dock)                                                                        | Returns or sets the docking behavior of the [StatusBar](https://docs.wisej.com/api/wisej.web/containers/statusbar) control.                          |
| [ToolBar.Dock](https://docs.wisej.com/api/containers/toolbar#dock)                                                                            |                                                                                                                                                      |
| [ControlExtensions.Dock](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.controlextensions#dock-control-dockposition) | Sets the dock style for the specified control.                                                                                                       |
