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

# Text オブジェクトの Remove メソッド

> ABBYY FineReader Engine API の Text オブジェクトの Remove メソッド — from-paragraph/from-symbol および to-paragraph/to-symbol の位置で指定したテキスト範囲を削除します。

このメソッドは、段落とシンボルの位置で指定したテキスト範囲を削除します。

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

```cpp theme={null}
HRESULT Remove(
  int FromParagraph,
  int FromPos,
  int ToParagraph,
  int ToPos
);
```

### C\#

```csharp theme={null}
void Remove(
  int FromParagraph,
  int FromPos,
  int ToParagraph,
  int ToPos
);
```

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

```vb theme={null}
Sub Remove( _
  FromParagraph As Integer, _
  FromPos As Integer, _
  ToParagraph As Integer, _
  ToPos As Integer _
)
```

<div id="parameters">
  ## パラメーター
</div>

FromParagraph

\[in] 削除する範囲の開始位置となる段落のインデックスを指定する変数です。

FromPos

\[in] 削除する範囲の開始位置となる、開始段落内の文字のインデックスを指定する変数です。

ToParagraph

\[in] 削除する範囲の終了位置となる段落のインデックスを指定する変数です。

ToPos

\[in] 削除する範囲の終了位置となる、終了段落内の文字のインデックスを指定する変数です。この文字自体はテキストから削除されません。

<div id="return-values">
  ## 戻り値
</div>

このメソッドに固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準的な戻り値](/ja/fine-reader/engine/api-reference/return-codes)が返されます。

<div id="remarks">
  ## 注記
</div>

削除するテキストの終了位置は開始位置より後である必要があります。そうでない場合は、エラーコードが返されます。(FromParagraph;FromPos) の位置にある記号はテキストから削除されますが、(ToParagraph;ToPos) の位置にある文字は削除されません。

<div id="see-also">
  ## 関連項目
</div>

[Text](/ja/fine-reader/engine/api-reference/text-related-objects/text)

[RemoveAll](/ja/fine-reader/engine/api-reference/text-related-objects/text/removeall-method)
