# FrameDistance Property

> Returns or sets the distance between the text and the frame of the selected paragraphs in the TXTextControl; returns -1 for differing settings. Run time only.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > FrameDistance Property
- **97 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framedistance-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framedistance-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framedistance-property/llms-full.txt

---

Returns or sets the distance between text and paragraph frame for the currently selected paragraph(s).

### Syntax

```vbscript
TXTextControl.FrameDistance [= value]
```

### Data Types

Integer.

### Limitations

Run time only.

### Remarks

The property returns -1 if the user selects two or more paragraphs which have different frame distance settings.

### See Also

- [Programming Category: Paragraph Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/paragraph-formatting/llms-full.txt)

---

## Nearby

- **Previous:** [FrameColor Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framecolor-property/llms-full.txt)
- **Next:** [FrameLineColor Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/framelinecolor-property/llms-full.txt)
