# TextControl.Landscape Property

> Gets or sets a value indicating whether the page orientation is landscape or portrait.

- **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.Landscape Property
- **352 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/landscape-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/landscape-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/landscape-property/llms-full.txt

---

### Description

Gets or sets a value indicating whether the page orientation is landscape or portrait.

### Syntax

```csharp
public bool Landscape { get; set; }
```

```vbnet
Public Property Landscape As Boolean
```

### Examples

The following example uses `TextControl.Landscape` to switch the section to landscape orientation. The configured value is checked before the workflow continues.

```csharp
textControl.Landscape = true;
if (textControl.Landscape)
{
    Console.WriteLine("Text Control: Landscape is enabled.");
}
```

```vbnet
textControl.Landscape = True
If textControl.Landscape Then
    Console.WriteLine("Text Control: Landscape is enabled.")
End If
```

---

## Nearby

- **Previous:** [TextControl.IsUndoEnabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/isundoenabled-property/llms-full.txt)
- **Next:** [TextControl.LanguageDialog Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/languagedialog-method/llms-full.txt)
