> ## 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

> FlexiCapture ステーションのスクリプト向け ITextEditor リファレンス: field エディターを制御し、変更の適用やリセット、選択範囲の管理、候補一覧の表示を行います。

<div id="what-it-does">
  ## 機能
</div>

ドキュメント field エディターを表します。

<div id="methods">
  ## メソッド
</div>

| **定義**                                       | **説明**                                                                               |
| -------------------------------------------- | ------------------------------------------------------------------------------------ |
| ApplyChanges() : bool                        | 加えた変更を適用します。                                                                         |
| GetSelection( startPos : int, endPos : int ) | 選択範囲の開始位置と終了位置を取得します。field が選択されていない場合は、startPos パラメーターと endPos パラメーターに "0" を割り当てます。 |
| ResetChanges()                               | 加えた変更をリセットします。                                                                       |
| SetSelection( startPos : int, endPos : int ) | 新しい選択範囲を設定します。                                                                       |
| ShowSuggestList()                            | 候補の一覧が存在する場合は表示します。存在しない場合は何も起こりません。                                                 |

<div id="properties">
  ## プロパティ
</div>

| **Name**   | **型**                                                                   | **アクセス** | **説明**                  |
| ---------- | ----------------------------------------------------------------------- | -------- | ----------------------- |
| Control    | [IFieldControl](/ja/flexi-capture/appendix/scripts-shell/ifieldcontrol) | 読み取り専用   | field コントロール            |
| FormWindow | [IFormWindow](/ja/flexi-capture/appendix/scripts-shell/iformwindow)     | 読み取り専用   | フォーム ウィンドウ              |
| Modified   | bool                                                                    | 読み取り専用   | field が変更されているかどうかを示します |
| Text       | string                                                                  | 読み取り専用   | field 内のテキスト            |
