# LoadSettings.PageSize Property

> Gets the width and height of the loaded document's pages. If the document does not contain a page size the Width and Height is set to 0.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > LoadSettings.PageSize Property
- **355 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/loadsettings/pagesize-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/loadsettings/pagesize-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/loadsettings/pagesize-property/llms-full.txt

---

### Description

Gets the width and height of the loaded document's pages. If the document does not contain a page size the Width and Height is set to 0.

### Syntax

```csharp
public PageSize PageSize { get; }
```

```vbnet
Public ReadOnly Property PageSize As PageSize
```

### Examples

The following example reads `LoadSettings.PageSize` after the template has been loaded.

```csharp
LoadSettings loadSettings = new();
textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings);
Console.WriteLine($"Page Size: {loadSettings.PageSize}");
```

```vbnet
Dim loadSettings As New LoadSettings()
textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings)
Console.WriteLine($"Page Size: {loadSettings.PageSize}")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [LoadSettings.PageMargins Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/loadsettings/pagemargins-property/llms-full.txt)
- **Next:** [LoadSettings.PDFImportSettings Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/loadsettings/pdfimportsettings-property/llms-full.txt)
