# TextControlColors.DesktopColor Property

> Gets or sets the display color for the area around the pages.

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

---

### Description

Gets or sets the display color for the area around the pages.

### Syntax

```csharp
public Color DesktopColor { get; set; }
```

```vbnet
Public Property DesktopColor As Color
```

### Examples

The following example uses `TextControlColors.DesktopColor` to configure desktop color as part of the text control colors workflow. The configured value is checked before the workflow continues.

```csharp
textControlColors.DesktopColor = System.Windows.Media.Colors.CornflowerBlue;
Console.WriteLine($"Desktop Color used by Text Control Colors: {textControlColors.DesktopColor}");
```

```vbnet
textControlColors.DesktopColor = System.Windows.Media.Colors.CornflowerBlue
Console.WriteLine($"Desktop Color used by Text Control Colors: {textControlColors.DesktopColor}")
```

---

## Nearby

- **Previous:** [TextControlColors.DarkShadowColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/darkshadowcolor-property/llms-full.txt)
- **Next:** [TextControlColors.FormFieldColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/formfieldcolor-property/llms-full.txt)
