# TextControl.Dock Property

> Gets or sets a value how the control is docked to its container or web site.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.Web`
- **Assembly:** `TXTextControl.Web.dll`, which the TX Text Control .NET Server setup installs, for .NET Framework; in no NuGet package
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web > TextControl.Dock Property
- **398 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/dock-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/dock-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/dock-property/llms-full.txt

---

### Description

Gets or sets a value how the control is docked to its container or web site.

### Syntax

```csharp
public Web.DockStyle Dock { get; set; }
```

```vbnet
Public Property Dock() As Web.DockStyle
```

### Examples

In the current ASP.NET Core integration, `Dock` is configured through `TextControlSettings`. The following example sets it while creating the editor configuration.

```csharp
textControlSettings.Dock = TXTextControl.Web.DockStyle.Fill;
var configuredValue = textControlSettings.Dock;
Console.WriteLine($"Dock used by Text Control Settings: {configuredValue}");
```

```vbnet
textControlSettings.Dock = TXTextControl.Web.DockStyle.Fill
Dim configuredValue = textControlSettings.Dock
Console.WriteLine($"Dock used by Text Control Settings: {configuredValue}")
```

### See Also

[Web.DockStyle](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/dockstyle/enumeration/llms-full.txt) Enumeration.

---

## Nearby

- **Previous:** [TextControl.Culture Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/culture-property/llms-full.txt)
- **Next:** [TextControl.DocumentTargetMarkers Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/documenttargetmarkers-property/llms-full.txt)
