# TextArea class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[Handler(TextArea.IHandler)]
public class TextArea : TextControl
```

Control for multi-line text

**Remarks:** This differs from the [TextBox](https://eto.picoe.ca/api/type/eto.forms.textbox.md) in that it is used for multi-line text entry and can accept [Keys.Tab](https://eto.picoe.ca/api/type/eto.forms.keys.md) and [Keys.Enter](https://eto.picoe.ca/api/type/eto.forms.keys.md) input.

**Derived types:** [RichTextArea](https://eto.picoe.ca/api/type/eto.forms.richtextarea.md)

## Fields

- [CaretIndexChangedEvent](https://eto.picoe.ca/api/type/eto.forms.textarea/caretindexchangedevent.md): (static) Identifier for handlers when attaching the [TextArea.CaretIndexChanged](https://eto.picoe.ca/api/type/eto.forms.textarea/caretindexchanged.md) event.
- [SelectionChangedEvent](https://eto.picoe.ca/api/type/eto.forms.textarea/selectionchangedevent.md): (static) Identifier for handlers when attaching the [TextArea.SelectionChanged](https://eto.picoe.ca/api/type/eto.forms.textarea/selectionchanged.md) event.

## Properties

- [AcceptsReturn](https://eto.picoe.ca/api/type/eto.forms.textarea/acceptsreturn.md): Gets or sets a value indicating whether the return key is inserted into the text area, or if it should be ignored by this control.
- [AcceptsTab](https://eto.picoe.ca/api/type/eto.forms.textarea/acceptstab.md): Gets or sets a value indicating whether the tab key is inserted into the text area, or if it should be ignored by this control and used for navigating to the next control.
- [Border](https://eto.picoe.ca/api/type/eto.forms.textarea/border.md): Gets or sets the border type
- [CaretIndex](https://eto.picoe.ca/api/type/eto.forms.textarea/caretindex.md): Gets or sets the index of the insertion caret.
- [HorizontalAlign](https://eto.picoe.ca/api/type/eto.forms.textarea/horizontalalign.md): (obsolete) Gets or sets the horizontal alignment of the text.
- [ReadOnly](https://eto.picoe.ca/api/type/eto.forms.textarea/readonly.md): Gets or sets a value indicating whether this [TextArea](https://eto.picoe.ca/api/type/eto.forms.textarea.md) is read only.
- [SelectedText](https://eto.picoe.ca/api/type/eto.forms.textarea/selectedtext.md): Gets or sets the selected text.
- [Selection](https://eto.picoe.ca/api/type/eto.forms.textarea/selection.md): Gets or sets the range of selected text.
- [SpellCheck](https://eto.picoe.ca/api/type/eto.forms.textarea/spellcheck.md): Gets or sets a value indicating whether this [TextArea](https://eto.picoe.ca/api/type/eto.forms.textarea.md) will perform spell checking.
- [SpellCheckIsSupported](https://eto.picoe.ca/api/type/eto.forms.textarea/spellcheckissupported.md): Gets a value indicating whether the [TextArea.SpellCheck](https://eto.picoe.ca/api/type/eto.forms.textarea/spellcheck.md) property is supported on the control's platform.
- [SupportedTextReplacements](https://eto.picoe.ca/api/type/eto.forms.textarea/supportedtextreplacements.md): Gets the text replacements that this control supports on the current platform.
- [TextAlignment](https://eto.picoe.ca/api/type/eto.forms.textarea/textalignment.md): Gets or sets the horizontal alignment of the text.
- [TextLength](https://eto.picoe.ca/api/type/eto.forms.textarea/textlength.md): Gets the current length of the text
- [TextReplacements](https://eto.picoe.ca/api/type/eto.forms.textarea/textreplacements.md): Gets or sets a hint value indicating whether this [TextArea](https://eto.picoe.ca/api/type/eto.forms.textarea.md) will automatically correct text.
- [Wrap](https://eto.picoe.ca/api/type/eto.forms.textarea/wrap.md): Gets or sets a value indicating whether text will wrap if lines are longer than the width of the control.

## Methods

- [Append](https://eto.picoe.ca/api/type/eto.forms.textarea/append.md): Append the specified text to the control and optionally scrolls to make the inserted text visible.
- [GetCallback](https://eto.picoe.ca/api/type/eto.forms.textarea/getcallback.md): Gets an instance of an object used to perform callbacks to the widget from handler implementations
- [OnCaretIndexChanged](https://eto.picoe.ca/api/type/eto.forms.textarea/oncaretindexchanged.md): Raises the [TextArea.CaretIndexChanged](https://eto.picoe.ca/api/type/eto.forms.textarea/caretindexchanged.md) event.
- [OnSelectionChanged](https://eto.picoe.ca/api/type/eto.forms.textarea/onselectionchanged.md): Raises the [TextArea.SelectionChanged](https://eto.picoe.ca/api/type/eto.forms.textarea/selectionchanged.md) event.
- [ScrollTo](https://eto.picoe.ca/api/type/eto.forms.textarea/scrollto.md): Scrolls the specified range into view.
- [ScrollToEnd](https://eto.picoe.ca/api/type/eto.forms.textarea/scrolltoend.md): Scrolls to the end of the text aligned on the same horizontal side as [TextArea.TextAlignment](https://eto.picoe.ca/api/type/eto.forms.textarea/textalignment.md).
- [ScrollToStart](https://eto.picoe.ca/api/type/eto.forms.textarea/scrolltostart.md): Scrolls to the start of the text aligned on the same horizontal side as [TextArea.TextAlignment](https://eto.picoe.ca/api/type/eto.forms.textarea/textalignment.md).
- [SelectAll](https://eto.picoe.ca/api/type/eto.forms.textarea/selectall.md): Selects all text.

## Events

- [CaretIndexChanged](https://eto.picoe.ca/api/type/eto.forms.textarea/caretindexchanged.md): Occurs when the [TextArea.CaretIndex](https://eto.picoe.ca/api/type/eto.forms.textarea/caretindex.md) has changed.
- [SelectionChanged](https://eto.picoe.ca/api/type/eto.forms.textarea/selectionchanged.md): Occurs when the [TextArea.Selection](https://eto.picoe.ca/api/type/eto.forms.textarea/selection.md) is changed.

## Inherited Members

- From [TextControl](https://eto.picoe.ca/api/type/eto.forms.textcontrol.md): [Text](https://eto.picoe.ca/api/type/eto.forms.textcontrol/text.md), [TextBinding](https://eto.picoe.ca/api/type/eto.forms.textcontrol/textbinding.md), [TextColor](https://eto.picoe.ca/api/type/eto.forms.textcontrol/textcolor.md), [TextChanged](https://eto.picoe.ca/api/type/eto.forms.textcontrol/textchanged.md), [OnTextChanged](https://eto.picoe.ca/api/type/eto.forms.textcontrol/ontextchanged.md)
- From [CommonControl](https://eto.picoe.ca/api/type/eto.forms.commoncontrol.md): [Font](https://eto.picoe.ca/api/type/eto.forms.commoncontrol/font.md)
- From [Control](https://eto.picoe.ca/api/type/eto.forms.control.md): [AllowDrop](https://eto.picoe.ca/api/type/eto.forms.control/allowdrop.md), [BackgroundColor](https://eto.picoe.ca/api/type/eto.forms.control/backgroundcolor.md), [Bounds](https://eto.picoe.ca/api/type/eto.forms.control/bounds.md), [ContextMenu](https://eto.picoe.ca/api/type/eto.forms.control/contextmenu.md), [Cursor](https://eto.picoe.ca/api/type/eto.forms.control/cursor.md), [Enabled](https://eto.picoe.ca/api/type/eto.forms.control/enabled.md), [Gestures](https://eto.picoe.ca/api/type/eto.forms.control/gestures.md), [Handler](https://eto.picoe.ca/api/type/eto.forms.control/handler.md), [HasFocus](https://eto.picoe.ca/api/type/eto.forms.control/hasfocus.md), [Height](https://eto.picoe.ca/api/type/eto.forms.control/height.md), [IsAttached](https://eto.picoe.ca/api/type/eto.forms.control/isattached.md), [IsMouseCaptured](https://eto.picoe.ca/api/type/eto.forms.control/ismousecaptured.md), [IsSuspended](https://eto.picoe.ca/api/type/eto.forms.control/issuspended.md), [IsVisualControl](https://eto.picoe.ca/api/type/eto.forms.control/isvisualcontrol.md), [Loaded](https://eto.picoe.ca/api/type/eto.forms.control/loaded.md), [Location](https://eto.picoe.ca/api/type/eto.forms.control/location.md), [LogicalParent](https://eto.picoe.ca/api/type/eto.forms.control/logicalparent.md), [Parent](https://eto.picoe.ca/api/type/eto.forms.control/parent.md), [ParentWindow](https://eto.picoe.ca/api/type/eto.forms.control/parentwindow.md), [Size](https://eto.picoe.ca/api/type/eto.forms.control/size.md), [SupportedPlatformCommands](https://eto.picoe.ca/api/type/eto.forms.control/supportedplatformcommands.md), [TabIndex](https://eto.picoe.ca/api/type/eto.forms.control/tabindex.md), [TabStop](https://eto.picoe.ca/api/type/eto.forms.control/tabstop.md), [Tag](https://eto.picoe.ca/api/type/eto.forms.control/tag.md), [ToolTip](https://eto.picoe.ca/api/type/eto.forms.control/tooltip.md), [Visible](https://eto.picoe.ca/api/type/eto.forms.control/visible.md), [VisualControls](https://eto.picoe.ca/api/type/eto.forms.control/visualcontrols.md), [VisualParent](https://eto.picoe.ca/api/type/eto.forms.control/visualparent.md), [Width](https://eto.picoe.ca/api/type/eto.forms.control/width.md), [DragDrop](https://eto.picoe.ca/api/type/eto.forms.control/dragdrop.md), [DragEnd](https://eto.picoe.ca/api/type/eto.forms.control/dragend.md), [DragEnter](https://eto.picoe.ca/api/type/eto.forms.control/dragenter.md), [DragLeave](https://eto.picoe.ca/api/type/eto.forms.control/dragleave.md), [DragOver](https://eto.picoe.ca/api/type/eto.forms.control/dragover.md), [EnabledChanged](https://eto.picoe.ca/api/type/eto.forms.control/enabledchanged.md), [GotFocus](https://eto.picoe.ca/api/type/eto.forms.control/gotfocus.md), [KeyDown](https://eto.picoe.ca/api/type/eto.forms.control/keydown.md), [KeyUp](https://eto.picoe.ca/api/type/eto.forms.control/keyup.md), [Load](https://eto.picoe.ca/api/type/eto.forms.control/load.md), [LoadComplete](https://eto.picoe.ca/api/type/eto.forms.control/loadcomplete.md), [LostFocus](https://eto.picoe.ca/api/type/eto.forms.control/lostfocus.md), [MouseDoubleClick](https://eto.picoe.ca/api/type/eto.forms.control/mousedoubleclick.md), [MouseDown](https://eto.picoe.ca/api/type/eto.forms.control/mousedown.md), [MouseEnter](https://eto.picoe.ca/api/type/eto.forms.control/mouseenter.md), [MouseLeave](https://eto.picoe.ca/api/type/eto.forms.control/mouseleave.md), [MouseMove](https://eto.picoe.ca/api/type/eto.forms.control/mousemove.md), [MouseUp](https://eto.picoe.ca/api/type/eto.forms.control/mouseup.md), [MouseWheel](https://eto.picoe.ca/api/type/eto.forms.control/mousewheel.md), [PreLoad](https://eto.picoe.ca/api/type/eto.forms.control/preload.md), [Shown](https://eto.picoe.ca/api/type/eto.forms.control/shown.md), [SizeChanged](https://eto.picoe.ca/api/type/eto.forms.control/sizechanged.md), [TextInput](https://eto.picoe.ca/api/type/eto.forms.control/textinput.md), [ThemeChanged](https://eto.picoe.ca/api/type/eto.forms.control/themechanged.md), [UnLoad](https://eto.picoe.ca/api/type/eto.forms.control/unload.md), [ApplyStyles](https://eto.picoe.ca/api/type/eto.forms.control/applystyles.md), [AttachNative](https://eto.picoe.ca/api/type/eto.forms.control/attachnative.md), [CaptureMouse](https://eto.picoe.ca/api/type/eto.forms.control/capturemouse.md), [Detach](https://eto.picoe.ca/api/type/eto.forms.control/detach.md), [DetachNative](https://eto.picoe.ca/api/type/eto.forms.control/detachnative.md), [Dispose](https://eto.picoe.ca/api/type/eto.forms.control/dispose.md), [DoDragDrop](https://eto.picoe.ca/api/type/eto.forms.control/dodragdrop.md), [FindParent](https://eto.picoe.ca/api/type/eto.forms.control/findparent.md), [Focus](https://eto.picoe.ca/api/type/eto.forms.control/focus.md), [GetPreferredSize](https://eto.picoe.ca/api/type/eto.forms.control/getpreferredsize.md), [Invalidate](https://eto.picoe.ca/api/type/eto.forms.control/invalidate.md), [MapPlatformCommand](https://eto.picoe.ca/api/type/eto.forms.control/mapplatformcommand.md), [OnApplyCascadingStyles](https://eto.picoe.ca/api/type/eto.forms.control/onapplycascadingstyles.md), [OnDragDrop](https://eto.picoe.ca/api/type/eto.forms.control/ondragdrop.md), [OnDragEnd](https://eto.picoe.ca/api/type/eto.forms.control/ondragend.md), [OnDragEnter](https://eto.picoe.ca/api/type/eto.forms.control/ondragenter.md), [OnDragLeave](https://eto.picoe.ca/api/type/eto.forms.control/ondragleave.md), [OnDragOver](https://eto.picoe.ca/api/type/eto.forms.control/ondragover.md), [OnEnabledChanged](https://eto.picoe.ca/api/type/eto.forms.control/onenabledchanged.md), [OnGotFocus](https://eto.picoe.ca/api/type/eto.forms.control/ongotfocus.md), [OnKeyDown](https://eto.picoe.ca/api/type/eto.forms.control/onkeydown.md), [OnKeyUp](https://eto.picoe.ca/api/type/eto.forms.control/onkeyup.md), [OnLoad](https://eto.picoe.ca/api/type/eto.forms.control/onload.md), [OnLoadComplete](https://eto.picoe.ca/api/type/eto.forms.control/onloadcomplete.md), [OnLostFocus](https://eto.picoe.ca/api/type/eto.forms.control/onlostfocus.md), [OnMouseDoubleClick](https://eto.picoe.ca/api/type/eto.forms.control/onmousedoubleclick.md), [OnMouseDown](https://eto.picoe.ca/api/type/eto.forms.control/onmousedown.md), [OnMouseEnter](https://eto.picoe.ca/api/type/eto.forms.control/onmouseenter.md), [OnMouseLeave](https://eto.picoe.ca/api/type/eto.forms.control/onmouseleave.md), [OnMouseMove](https://eto.picoe.ca/api/type/eto.forms.control/onmousemove.md), [OnMouseUp](https://eto.picoe.ca/api/type/eto.forms.control/onmouseup.md), [OnMouseWheel](https://eto.picoe.ca/api/type/eto.forms.control/onmousewheel.md), [OnPreLoad](https://eto.picoe.ca/api/type/eto.forms.control/onpreload.md), [OnShown](https://eto.picoe.ca/api/type/eto.forms.control/onshown.md), [OnSizeChanged](https://eto.picoe.ca/api/type/eto.forms.control/onsizechanged.md), [OnStyleChanged](https://eto.picoe.ca/api/type/eto.forms.control/onstylechanged.md), [OnTextInput](https://eto.picoe.ca/api/type/eto.forms.control/ontextinput.md), [OnThemeChanged](https://eto.picoe.ca/api/type/eto.forms.control/onthemechanged.md), [OnUnLoad](https://eto.picoe.ca/api/type/eto.forms.control/onunload.md), [PointFromScreen](https://eto.picoe.ca/api/type/eto.forms.control/pointfromscreen.md), [PointToScreen](https://eto.picoe.ca/api/type/eto.forms.control/pointtoscreen.md), [Print](https://eto.picoe.ca/api/type/eto.forms.control/print.md), [RectangleFromScreen](https://eto.picoe.ca/api/type/eto.forms.control/rectanglefromscreen.md), [RectangleToScreen](https://eto.picoe.ca/api/type/eto.forms.control/rectangletoscreen.md), [ReleaseMouseCapture](https://eto.picoe.ca/api/type/eto.forms.control/releasemousecapture.md), [ResumeLayout](https://eto.picoe.ca/api/type/eto.forms.control/resumelayout.md), [SuspendLayout](https://eto.picoe.ca/api/type/eto.forms.control/suspendlayout.md), [TriggerStyleChanged](https://eto.picoe.ca/api/type/eto.forms.control/triggerstylechanged.md), [UpdateLayout](https://eto.picoe.ca/api/type/eto.forms.control/updatelayout.md)
- From [BindableWidget](https://eto.picoe.ca/api/type/eto.forms.bindablewidget.md): [Bindings](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/bindings.md), [DataContext](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/datacontext.md), [IsDataContextChanging](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/isdatacontextchanging.md), [Parents](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/parents.md), [DataContextChanged](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/datacontextchanged.md), [OnDataContextChanged](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/ondatacontextchanged.md), [Unbind](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/unbind.md), [UpdateBindings](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/updatebindings.md)
- From [Widget](https://eto.picoe.ca/api/type/eto.widget.md): [ControlObject](https://eto.picoe.ca/api/type/eto.widget/controlobject.md), [ID](https://eto.picoe.ca/api/type/eto.widget/id.md), [IsDisposed](https://eto.picoe.ca/api/type/eto.widget/isdisposed.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widget/nativehandle.md), [Platform](https://eto.picoe.ca/api/type/eto.widget/platform.md), [Properties](https://eto.picoe.ca/api/type/eto.widget/properties.md), [Style](https://eto.picoe.ca/api/type/eto.widget/style.md), [StyleChanged](https://eto.picoe.ca/api/type/eto.widget/stylechanged.md), [Dispose](https://eto.picoe.ca/api/type/eto.widget/dispose.md), [Initialize](https://eto.picoe.ca/api/type/eto.widget/initialize.md), [ToString](https://eto.picoe.ca/api/type/eto.widget/tostring.md)
