---
title: "maxTextLength"
description: "Limits the number of characters that can be entered, e.g. in an editable text field. By default
this value is -1, signifying there is no maximum text length limit."
type: "property"
---

<div class='type'>Property</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
var SemanticsPropertyReceiver.maxTextLength
```


Limits the number of characters that can be entered, e.g. in an editable text field. By default
this value is -1, signifying there is no maximum text length limit.



