# maxLength

> Maximum number of characters for the field.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
[Delayed]
[UxmlAttribute(obsoleteNames = new string[] { "maxLength" })]
public int maxLength { get; set; }
```
