# Contents.ContentLine.Width Property

> Returns the width of the line in Points.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Namespace:** `TXTextControl.DocumentServer.PDF.Contents`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer.PDF > Contents.ContentLine.Width Property
- **289 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/contents-contentline/width-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/contents-contentline/width-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/contents-contentline/width-property/llms-full.txt

---

### Description

Returns the width of the line in Points.

### Syntax

```csharp
public float Width { get; set; }
```

```vbnet
Public Property Width As Single
```

### Examples

The following example uses `ContentLine.Width` to configure width as part of the content line workflow. The configured value is checked before the workflow continues.

```csharp
contentLine.Width = 1.0f;
Console.WriteLine($"Width used by Content Line: {contentLine.Width}");
```

```vbnet
contentLine.Width = 1.0
Console.WriteLine($"Width used by Content Line: {contentLine.Width}")
```

---

## Nearby

- **Previous:** [Contents.ContentLine.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/contents-contentline/text-property/llms-full.txt)
- **Next:** [Contents.ContentLine.X Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/contents-contentline/x-property/llms-full.txt)
