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

# Remove Method of the Text Object

This method removes a range of text specified by the positions of paragraphs and symbols.

## Syntax

### C++

```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
);
```

### Visual Basic .NET

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

## Parameters

FromParagraph

\[in] Variable specifying the index of the paragraph for the starting point of the range to be removed.

FromPos

\[in] Variable specifying the index of character in the starting paragraph, for the starting point of the range to be removed.

ToParagraph

\[in] Variable specifying the index of the paragraph for the ending point of the range to be removed.

ToPos

\[in] Variable specifying the index of character in the ending paragraph, for the ending point of the range to be removed. This character itself is not removed from the text.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

The ending position for the text to be removed should be farther in the text than the starting one; otherwise, an error code is returned. The symbol in (FromParagraph;FromPos) position is removed from the text, while the character in (ToParagraph;ToPos) position is not removed.

## See also

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

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