# DockStyle Enumeration

> Specifies the manner in which a Web.TextControl is docked. The enumeration contains the following values:

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **Namespace:** `TXTextControl.Web`
- **Package:** `TXTextControl.Web` (assembly `TXTextControl.Web.DocumentEditor.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web > DockStyle Enumeration
- **467 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/dockstyle/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/dockstyle/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/dockstyle/enumeration/llms-full.txt

---

### Description

Specifies the manner in which a Web.TextControl is docked. The enumeration contains the following values:

### Syntax

```csharp
public enum DockStyle
```

```vbnet
Public Enum DockStyle
```

### Members

| Member | Value | Description |
|---|---|---|
| Fill | 1 | All the control's edges are docked to the all edges of its container and sized appropriately. |
| None | 0 | The control is not docked. |
| Window | 2 | The control fills the browser window. |

### Examples

The following example selects `Fill` and retains that choice for the related document-processing operation.

```csharp
TXTextControl.Web.DockStyle value = TXTextControl.Web.DockStyle.Fill;
Console.WriteLine($"Using Dock Style: {value}");
```

```vbnet
Dim value As TXTextControl.Web.DockStyle = TXTextControl.Web.DockStyle.Fill
Console.WriteLine($"Using Dock Style: {value}")
```

### See Also

[Web.TextControl.Dock](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/dock-property/llms-full.txt) Property.

---

## Nearby

- **Previous:** [BinaryStreamType Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/binarystreamtype/enumeration/llms-full.txt)
- **Next:** [EditMode Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/editmode/enumeration/llms-full.txt)
