> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ITextEditor

> ITextEditor reference for FlexiCapture station scripting: controls the field editor — apply or reset changes, manage selections, and show suggestions.

## What it does

Represents a document field editor.

## Methods

| **Definition**                               | **Description**                                                                                                              |
| -------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| ApplyChanges() : bool                        | Applies made changes.                                                                                                        |
| GetSelection( startPos : int, endPos : int ) | Gets the beginning and the end of the selection. If no field is selected, assigns "0" to the startPos and endPos parameters. |
| ResetChanges()                               | Resets made changes.                                                                                                         |
| SetSelection( startPos : int, endPos : int ) | Sets a new selection.                                                                                                        |
| ShowSuggestList()                            | Shows the list of suggestions, if exists. Otherwise, nothing happens.                                                        |

## Properties

| **Name**   | **Type**                                                             | **Access** | **Description**                         |
| ---------- | -------------------------------------------------------------------- | ---------- | --------------------------------------- |
| Control    | [IFieldControl](/flexi-capture/appendix/scripts-shell/ifieldcontrol) | Read-only  | The field control                       |
| FormWindow | [IFormWindow](/flexi-capture/appendix/scripts-shell/iformwindow)     | Read-only  | The form window                         |
| Modified   | bool                                                                 | Read-only  | Specifies whether the field is modified |
| Text       | string                                                               | Read-only  | The text in the field                   |
