# TextControl.PageColorDialog Method

> Invokes the built-in dialog box for setting the page color.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 24.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.PageColorDialog Method
- **286 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/pagecolordialog-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/pagecolordialog-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/pagecolordialog-method/llms-full.txt

---

### Description

Invokes the built-in dialog box for setting the page color.

### Syntax

```csharp
public DialogResult PageColorDialog();
```

```vbnet
Public Function PageColorDialog() As DialogResult
```

### Return Value

If the dialog has been left with the Cancel button the return value is DialogResult.Cancel. Otherwise, it is DialogResult.OK.

### Examples

The following example opens the page color dialog for the text control.

```csharp
var result = textControl.PageColorDialog();
Console.WriteLine($"Page Color Dialog result: {result}");
```

```vbnet
Dim result = textControl.PageColorDialog()
Console.WriteLine($"Page Color Dialog result: {result}")
```

---

## Nearby

- **Previous:** [TextControl.PageChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/pagechanged-event/llms-full.txt)
- **Next:** [TextControl.PageFormatChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/pageformatchanged-event/llms-full.txt)
