> For the complete documentation index, see [llms.txt](https://docs.overdare.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overdare.com/development/api-reference/classes/uitextsizeconstraint.md).

# UITextSizeConstraint

UITextSizeConstraint : `UIConstraint`

## Overview

A constraint that limits the text size of its parent text UI element to stay between a specified minimum value and maximum value.

It applies both to text sizes determined automatically by TextScaled and to text sizes specified directly with TextSize. If MinTextSize is set larger than MaxTextSize, MinTextSize takes precedence.

UITextSizeConstraint is used by placing it as a child of a UI element whose text size is to be limited, such as TextLabel or TextButton. If a UI element has multiple UITextSizeConstraints, only the first UITextSizeConstraint is applied.

## Properties

### MaxTextSize

`number`

Specifies the maximum size at which text can be displayed.

It uses integer values of 1 or greater, and the default is 100.

#### Code Samples

### MinTextSize

`number`

Specifies the minimum size at which text can be displayed.

It uses integer values of 1 or greater. If the range conflicts with MaxTextSize, MinTextSize takes precedence, in which case the text may overflow the area of the UI element. The default is 1.

#### Code Samples

## Methods

## Events
