# Javascript: Distances.top Property

> The top distance in twips.

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

---

### Description

The top distance in twips.

### Syntax

```javascript
<number> Distances.top
```

### Examples

The following example demonstrates `Distances.top` in a practical document-editing workflow. The top distance in twips.

```javascript
function inspectTop(distances) {
    const top = distances.top;
    console.log("top:", top);
}
```

---

## Nearby

- **Previous:** [Javascript: Distances.right Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/distances/right-property/llms-full.txt)
- **Next:** [DocumentEditorSettings Object](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documenteditorsettings/llms-full.txt)
