# DocumentViewerSettings.DockStyle Enumeration

> Enumeration for the Dock property.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **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.DockStyle Enumeration
- **494 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/documentviewersettings-dockstyle/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/documentviewersettings-dockstyle/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/documentviewersettings-dockstyle/enumeration/llms-full.txt

---

### Description

Enumeration for the Dock property.

### Syntax

```csharp
public enum DocumentViewerSettings.DockStyle
```

```vbnet
Public Enum DocumentViewerSettings.DockStyle
```

### Members

| Member | Value | Description |
|---|---|---|
| Window | 0 | Fills the complete browser Window and is on top of other elements |
| Fill | 1 | Fills the container with width and height equals 100% |

### Examples

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

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

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

---

## Nearby

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