# ScaleUnits Property

> Returns or sets the scale units of a TXRulerBar as an Integer: 0 for millimeters, 1 for centimeters or 2 for inches shown on the ruler's measuring scale.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXRulerBar > ScaleUnits Property
- **94 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/scaleunits-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/scaleunits-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/scaleunits-property/llms-full.txt

---

Returns or sets the scale units for the ruler.

### Syntax

```vbscript
TXRulerBar.ScaleUnits [= value]
```

| Setting | Description |
|---|---|
| 0 | mm |
| 1 | cm |
| 2 | inch |

### Data Types

Integer.

### See Also

- [Programming Category: Tool Bars](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/toolbars/llms-full.txt)

---

## Nearby

- **Previous:** [RightToLeft Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/righttoleft-property/llms-full.txt)
- **Next:** [TXStatusBar Control](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/llms-full.txt)
