# PaperSize.Width Property

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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > PaperSize.Width Property
- **451 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/papersize/width-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/papersize/width-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/papersize/width-property/llms-full.txt

---

### Description

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

### Syntax

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

```vbnet
Public ReadOnly Property Width As Integer
```

### Examples

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

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

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

### Limitations

Read only.

---

## Nearby

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