# SaveSettings.PageSize Property

> Sets the width and height saved for the document's pages.

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

---

### Description

Sets the width and height saved for the document's pages.

### Syntax

```csharp
public PageSize PageSize { set; }
```

```vbnet
Public WriteOnly Property PageSize As PageSize
```

### Examples

The following example configures how the current document is exported to WordprocessingML by using `SaveSettings.PageSize`.

```csharp
textControl.Text = "Quarterly results";
SaveSettings saveSettings = new();

saveSettings.PageSize = new PageSize();
Console.WriteLine("Page Size was supplied to the Save Settings workflow.");

textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings);
```

```vbnet
textControl.Text = "Quarterly results"
Dim saveSettings As New SaveSettings()

saveSettings.PageSize = New PageSize()
Console.WriteLine("Page Size was supplied to the Save Settings workflow.")

textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings)
```

---

## Nearby

- **Previous:** [SaveSettings.PageMargins Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/savesettings/pagemargins-property/llms-full.txt)
- **Next:** [SaveSettings.SavedFile Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/savesettings/savedfile-property/llms-full.txt)
