# PaperSize.Height Property

> Gets the height of the paper size, in twips. The value of this property is the height (y-dimension) of the paper size as if the paper were in the portrait orientation.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **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 > PaperSize.Height Property
- **452 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/papersize/height-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/papersize/height-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/papersize/height-property/llms-full.txt

---

### Description

Gets the height of the paper size, in twips. The value of this property is the height (y-dimension) of the paper size as if the paper were in the portrait orientation.

### Syntax

```csharp
public int Height { get; }
```

```vbnet
Public ReadOnly Property Height As Integer
```

### Examples

The following example uses the A4 paper height when configuring the first document section.

```csharp
PaperSize paperSize = textControl.GetSupportedPaperSizes()
    .First(size => size.Name.Contains("A4", StringComparison.OrdinalIgnoreCase));
textControl.Sections[1].Format.PageSize.Height = paperSize.Height;
```

```vbnet
Dim paperSize As PaperSize = textControl.GetSupportedPaperSizes().
    First(Function(size) size.Name.IndexOf("A4", StringComparison.OrdinalIgnoreCase) >= 0)
textControl.Sections(1).Format.PageSize.Height = paperSize.Height
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [PaperSize Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/papersize/llms-full.txt)
- **Next:** [PaperSize.Name Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/papersize/name-property/llms-full.txt)
