# Javascript: Size.width Property

> The width.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: Size.width Property
- **130 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/size/width-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/size/width-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/size/width-property/llms-full.txt

---

### Description

The width.

### Syntax

```javascript
<number> Size.width
```

### Examples

The following example demonstrates `Size.width` in a practical document-editing workflow. The width.

```javascript
function inspectWidth(size) {
    const width = size.width;
    console.log("width:", width);
}
```

---

## Nearby

- **Previous:** [Javascript: Size.height Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/size/height-property/llms-full.txt)
- **Next:** [SpellCheckTextCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/spellchecktextcallback/llms-full.txt)
