---
name: "ctrlTextHeight"
type: command
status: ok
groups: ["GUI Control"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ctrlTextHeight
revid: 377912
updated: 2026-01-09T17:38:24Z
---

# ctrlTextHeight

*Command · GUI Control · Arma 3 v0.50*

## Description

Returns the text control's height. Supported control [types](../commands/ctrlType.md):
- CT_STATIC
- CT_STRUCTURED_TEXT
- CT_EDIT
- Arma 3 v2.06 CT_XKEYDESC
- Arma 3 v2.06 CT_XBUTTON
- Arma 3 v2.06 CT_SHORTCUTBUTTON
- Arma 3 v2.06 CT_BUTTON
- Arma 3 v2.06 CT_ACTIVETEXT

## Syntax

```sqf
ctrlTextHeight control
```

**Parameters:**

- `control`: [Control](../topics/Control.md)

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
_h = ctrlTextHeight _ctrl;
```

## See also

[ctrlFontHeight](../commands/ctrlFontHeight.md) · [ctrlTextWidth](../commands/ctrlTextWidth.md) · [ctrlSetText](../commands/ctrlSetText.md) · [ctrlType](../commands/ctrlType.md) · Arma: GUI Configuration

## Community notes

**Nelis75733126** — 2017-05-24

In Arma 3 v1.70, this command always returns 0 if the definition for width of the control ( inside .hpp or .cpp file ) is missing.

<sub>Source: [BI Community Wiki — ctrlTextHeight](https://community.bistudio.com/wiki/ctrlTextHeight) (revision 377912).</sub>
