# Distances Object

> Frame distances in twips.

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

---

### Description

Frame distances in twips.

### Syntax

```javascript
Distances
```

### Examples

The following example demonstrates `Distances` in a practical document-editing workflow. Frame distances in twips.

```javascript
function inspectDistances(distances) {
    console.log("Distances object:", distances);
}
```

---

## In This Section

- [Javascript: Distances.bottom Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/distances/bottom-property/llms-full.txt): The bottom distance in twips.
- [Javascript: Distances.left Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/distances/left-property/llms-full.txt): The left distance in twips.
- [Javascript: Distances.right Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/distances/right-property/llms-full.txt): The right distance in twips.
- [Javascript: Distances.top Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/distances/top-property/llms-full.txt): The top distance in twips.

---

## Nearby

- **Previous:** [Javascript: DictionaryInfo.isLoaded Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/dictionaryinfo/isloaded-property/llms-full.txt)
- **Next:** [Javascript: Distances.bottom Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/distances/bottom-property/llms-full.txt)
