# DocumentViewerSettings.Dock Property

> Specifies how to dock the DocumentViewer.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl.Web.MVC.DocumentViewer`
- **Package:** `TXTextControl.Web.DocumentViewer` (assembly `TXTextControl.Web.MVC.DocumentViewer.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.Web.DocumentViewer.Classic` (assembly `TXTextControl.Web.MVC.DocumentViewer.dll`, from nuget.org)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC.DocumentViewer > DocumentViewerSettings.Dock Property
- **408 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/documentviewersettings/dock-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/documentviewersettings/dock-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/documentviewersettings/dock-property/llms-full.txt

---

### Description

Specifies how to dock the DocumentViewer.

### Syntax

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

```vbnet
Public Property Dock As DocumentViewerSettings.DockStyle
```

### Examples

The following example configures `DocumentViewerSettings.Dock` and checks the resulting web document component setting before it is used.

```csharp
documentViewerSettings.Dock = TXTextControl.Web.MVC.DocumentViewer.DocumentViewerSettings.DockStyle.Window;
var configuredValue = documentViewerSettings.Dock;
Console.WriteLine($"Dock used by Document Viewer Settings: {configuredValue}");
```

```vbnet
documentViewerSettings.Dock = TXTextControl.Web.MVC.DocumentViewer.DocumentViewerSettings.DockStyle.Window
Dim configuredValue = documentViewerSettings.Dock
Console.WriteLine($"Dock used by Document Viewer Settings: {configuredValue}")
```

---

## Nearby

- **Previous:** [DocumentViewerSettings.CustomQueryParams Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/documentviewersettings/customqueryparams-property/llms-full.txt)
- **Next:** [DocumentViewerSettings.DockStyle Enumerations](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/documentviewersettings-dockstyle/llms-full.txt)
