# TextControl.ViewMode Property

> Gets or sets the mode how Text Control displays a document.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.ViewMode Property
- **507 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/viewmode-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/viewmode-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/viewmode-property/llms-full.txt

---

### Description

Gets or sets the mode how Text Control displays a document.

### Syntax

```csharp
public ViewMode ViewMode { get; set; }
```

```vbnet
Public Property ViewMode As ViewMode
```

### Members

| Value | Description |
|---|---|
| FloatingText | The Text Control has a vertical scrollbar to enable unlimited text content. The maximum horizontal text extent is the horizontal size of the control. The values of the PageSize and PageMargins properties are ignored. Headers and footers are not displayed. |
| Normal | The Text Control has scrollbars and text is formatted according to the settings of the PageSize and the PageMargins properties. Headers and footers can be inserted but they are not displayed. |
| PageView | Text is formatted like in Normal view mode, and additionally the Text Control displays the pages in 3D view with gaps and a desktop background. Headers and footers are displayed in WYSIWYG mode. |
| SimpleControl | Text is formatted according to the horizontal and vertical extent of the control. If the control is 'full', no further text can be inserted. |

### Examples

The following example uses `TextControl.ViewMode` to configure view mode as part of the text control workflow. The configured value is checked before the workflow continues.

```csharp
textControl.ViewMode = ViewMode.PageView;
Console.WriteLine($"View Mode used by Text Control: {textControl.ViewMode}");
```

```vbnet
textControl.ViewMode = ViewMode.PageView
Console.WriteLine($"View Mode used by Text Control: {textControl.ViewMode}")
```

---

## Nearby

- **Previous:** [TextControl.VExpanded Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/vexpanded-event/llms-full.txt)
- **Next:** [TextControl.VScroll Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/vscroll-event/llms-full.txt)
