<div class="meta" robots="noindex">

</div>

Property

# GroupBox.TextUnit

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `GroupBox.FontUnit<groupbox.fontunit>` as a replacement.

</div>

## Description

The unit in which TextSize is measured.

## Notes

Use the folowing FontUnit class constants. The choices are:

| Description |
|-------------|
| Default     |
| Pixel       |
| Point       |
| Inch        |
| Millimeter  |

## Sample code

The following sets the font units to Millimeter.

``` xojo
Me.TextUnit = FontUnits.Millimeter
```

## Compatibility

All project types on all supported operating systems.
