# AsTextArea(int, int)

> Configures the option to use the TextAreaAttribute.

## Definition

* **Type:** Method
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.6/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

```csharp
IOptionBuilder<in TData> AsTextArea(int minLines = 3, int maxLines = 3)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The maximum amount of lines the text area can show before it starts using a scrollbar. Defaults to 3.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The minimum amount of lines the text area will use. Defaults to 3.

### Returns

| Type                                                                                               | Description                                       |
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| [IOptionBuilder\<T>](/engine/6000.6/script-reference/unity/graphtoolkit/editor/ioptionbuilder1.md) | The current builder instance for method chaining. |

### Remarks

Applies only to string input ports. Use this setting to make the port value a Text Area. A Text Area is a multi-line input field that allows users to enter large amounts of text. Its height automatically adjusts between specified minimum and maximum lines, and a scrollbar appears if the content exceeds the visible area.
